Custom grammar for Android speech recognition

2019-01-28 03:48发布

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

2条回答
走好不送
2楼-- · 2019-01-28 04:41

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

查看更多
▲ chillily
3楼-- · 2019-01-28 04:42
登录 后发表回答