Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to detect language spoken in google cloud platform machine learning 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 and user needs to be manually set this parameter to perform speech-to-text.

Thanks Mahesh

like image 258
Mahesh Kumar Avatar asked May 23 '17 08:05

Mahesh Kumar


1 Answers

As of last month, Google added support for detection of spoken languages into its speech-to-text API. Google Cloud Speech v1p1beta1

It’s a bit limited though - you have to provide a list of probable language codes, up to 3 of them only, and it’s said to be supported only for voice command and voice search modes. It’s useful if you have a clue what other languages may be in your audio.

From their docs:

alternative_language_codes[]: string

Optional A list of up to 3 additional BCP-47 language tags, listing possible alternative languages of the supplied audio. See Language Support for a list of the currently supported language codes. If alternative languages are listed, recognition result will contain recognition in the most likely language detected including the main language_code. The recognition result will include the language tag of the language detected in the audio. NOTE: This feature is only supported for Voice Command and Voice Search use cases and performance may vary for other use cases (e.g., phone call transcription).”

like image 167
john316 Avatar answered Oct 27 '22 07:10

john316