Android 语音识别的自定义语法
我正在尝试将自定义语法应用于语音识别。我找到了很多关于 android.speech.recognition 包的文档,它似乎是一个很好的起点,但它似乎在 Android SDK 中不存在。
有没有一种方法可以应用自定义语法规则Android 语音识别到底..?
I am trying to apply the custom grammar for speech recognition. I have found a lot of documentation about android.speech.recognition package, it seams as the good place to start, but it seams that it doesn't exist in the Android SDK..
Is there a way to apply a custom grammar rules to the android speech recognition at all..?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不,Android 的识别器意图仅支持两种语言模型。它们是“自由形式”模型和“网络搜索”模型。它不支持自定义语法。
看
http://developer.android.com/reference/android/speech/RecognizerIntent .html#EXTRA_LANGUAGE_MODEL
No, Android's recognizer intent only supports two language models. These are the "Free Form" model and the "web search" model. It does not support custom grammars.
See
http://developer.android.com/reference/android/speech/RecognizerIntent.html#EXTRA_LANGUAGE_MODEL
您可以使用以下库之一来完成此操作:
Pocket Sphinx:
http://cmusphinx.sourceforge.net/2011/05/building- pocketsphinx-on-android/
或
http://jvoicexml.sourceforge.net/
You may be able to use one of these libraries to do it:
Pocket Sphinx:
http://cmusphinx.sourceforge.net/2011/05/building-pocketsphinx-on-android/
or
http://jvoicexml.sourceforge.net/