I'm making an app that allows people to speak and select between a few options (Strings). I'm having a little problem making the Android Speech Recognizer fit my idea.
Is there a way to just pass to the SpeechRecognizer the parameters that are "valid" and having it select between those the "best" match?
I don't need the code, I just need some guidance as my google-fu seems to be failing me today.
Our solution to this problem is described at http://kaljurand.github.io/Grammars/, e.g. check out the paper linked from this page:
Kaarel Kaljurand, Tanel Alumäe. Controlled Natural Language in Speech Recognition Based User Interfaces (CNL 2012)
The basic idea is:
All this might be an overkill in your case. Post-processing of Google's results (as @gregm suggests) is certainly easier to implement. But if you want to scale to more complex and/or multilingual language models then our approach certainly provides the required modularity and expressive power.
No, there are no such parameters, google speech recognition is not flexible enough. You can use external speech recognition toolkit like CMUSphinx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With