Google Cloud Speech API requests require the following configuration options: encoding , sampleRateHertz and languageCode . https://cloud.google.com/speech/reference/rest/v1/RecognitionConfig
Therefore, the Google Cloud Speech API cannot automatically determine the language used. The service will be configured with this parameter ( languageCode ) to start speech recognition in that particular language.
If you had in mind a parallel with the Google Cloud Translation API, where the input language is automatically detected, keep in mind that automatic detection of the language used in the audio file requires much more bandwidth, storage space and processing power than in the text file. In addition, the Google Cloud Speech API offers Streaming Speech Recognition, a real-time text-based voice service where languageCode especially needed.
Tudormi
source share