Custom grammar for Android speech recognition

↘锁芯ラ 提交于 2019-12-18 08:47:38

问题


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..?


回答1:


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




回答2:


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/



来源:https://stackoverflow.com/questions/4170154/custom-grammar-for-android-speech-recognition

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!