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.
No, you cannot pass parameters that restrict the recognition or help it make the best match. You have to implement that yourself.
What you want to do is use some algorithms to help you match what Android's Speech recognizer returns with your desired options. This is especially important when your app has to recognize words that Android's recognizer cannot recognize, like Cumin.
For this you can use phonetic matching algorithms like the ones here
For some implementations and sample code on Android check out this open source project: GAST.
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