Android: Speech Recognition Append Dictionary?

2019-05-04 12:40发布

问题:

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

回答1:

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



回答2:

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