Custom grammar for Android speech recognition

余生长醉 提交于 2019-11-29 14:40:44

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

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/

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