Search code examples
javaandroidgoogle-cloud-platformgoogle-translategoogle-speech-api

Language code detection of spoken language in Google Speech API


Is there an option to automatically detect the spoken language using Google Cloud Platform Machine Learning's Speech API?

https://cloud.google.com/speech/docs/languages indicates the list of the languages supported. However, the user needs to manually set this parameter to perform speech-to-text. I'd like to do this automatically.


Solution

  • No, I believe you (at least currently) have to specify the input language. (Unlike the Translation API where you can let it auto-detect, for example.)