D
D
Develop99992019-10-17 11:38:57
Android
Develop9999, 2019-10-17 11:38:57

How to configure pocketsphinx in android so that it does not react to words that are not in the dictionary?

I did speech recognition on android using sphinx, everything works, but when I say those words that are not in the dictionary, it still recognizes them, gives out all sorts of nonsense, stupidly sorting through the words in the dictionary, I use pocketsphinx-android-5prealpha-release.
How can I make the sphinx not recognize those words that do not exist?

mRecognizer = SpeechRecognizerSetup.defaultSetup()
                            .setAcousticModel(hmmDir)
                            .setDictionary(dict)
                            .setKeywordThreshold(1e-7f)
                            .getRecognizer();

Here is the speech recognition setup code, of course, not all of it.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question