如何检测谷歌云平台机器学习语音api中所说的语言 [英] how to detect language spoken in google cloud platform machine learning speech api
问题描述
是否可以选择使用 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 表示支持的语言列表和用户需要手动设置此参数以执行语音到文本.
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.
谢谢马赫什
推荐答案
从上个月开始,Google 在其语音转文本 API 中添加了对口语检测的支持.谷歌云语音 v1p1beta1
As of last month, Google added support for detection of spoken languages into its speech-to-text API. Google Cloud Speech v1p1beta1
虽然有点限制 - 您必须提供可能的语言代码列表,最多只能提供 3 个,而且据说仅支持语音命令和语音搜索模式.如果您知道音频中可能包含哪些其他语言,这将很有用.
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.
来自他们的文档:
alternative_language_codes[]:字符串
可选 最多 3 个附加 BCP-47 语言标签的列表,列表所提供音频的可能替代语言.查看语言支持当前支持的语言代码列表.如果列出了替代语言,识别结果将包含检测到的最有可能的语言的识别,包括主要的语言代码.识别结果将包含以下语言标签在音频中检测到的语言.注意:此功能仅支持语音命令和语音搜索用例和性能其他用例可能会有所不同(例如,电话转录)."
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)."
这篇关于如何检测谷歌云平台机器学习语音api中所说的语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!