I am working on Google Cloud Speech to Text API using node js client. I found the project here https://github.com/googleapis/nodejs-speech and tried out the samples from it. Everything was working ok but i could not find a sample for alternativeLanguageCodes. I found that it is supported in version V1P1Beta1 as mentioned here: https://cloud.google.com/speech-to-text/docs/reference/rest/v1p1beta1/RecognitionConfig , if we proivde alternativeLanguageCodes, api will try to transcribe the audio to the most relevant language. What i have observed is it always transcribes to the language specified in languageCode only.
Did anyone get a chance to try this API? If so, can you explain how you were able to detect alternativeLanguage.