开发者

Android: Speech Recognition Append Dictionary?

I'm using the Speech Recognizer Intent in Android. Is th开发者_StackOverflowere a way to add your own customized words or phrases to Android's Speech recognition 'dictionary'


No. You can only use the two language models supported. The built in speech recognition provided by google only supports the dictation and search language models. See http://developer.android.com/reference/android/speech/RecognizerIntent.html and LANGUAGE_MODEL_FREE_FORM or LANGUAGE_MODEL_WEB_SEARCH.

http://developer.android.com/resources/articles/speech-input.html says:

You can make sure your users have the best experience possible by requesting the appropriate language model: free_form for dictation, or web_search for shorter, search-like phrases. We developed the "free form" model to improve dictation accuracy for the voice keyboard, while the "web search" model is used when users want to search by voice


Michael is correct, you cannot change the Language Model.

However, you can use "sounds like" algorithms to process the results from Android and match words it doesn't know.

See my answer here:

speech recognition reduce possible search results

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜