0

Is there any way to listen to "specific" set of words in android? Which means, there is a list of voice commands like "Go", "Stop", "Up", "Down" etc. Android app should listen to only these words, not to anything else. All the tutorials I visited are teaching how to create an android app which listens to all the words.

Since this feature can be implemented in most of the other speech engines (for example in a PC using MS Voice API) I am sure this can be done in Android as well. But how can I do it?

halfer
  • 19,824
  • 17
  • 99
  • 186
PeakGen
  • 21,894
  • 86
  • 261
  • 463
  • 2
    The obvious thing is to just throw out any inputs that aren't in your list of approved words. If it's not on the list, just don't do anything. – Geobits Oct 04 '13 at 14:20
  • @Geobits: I am sure there will be a problem. When the same trick is implemented in other engines, they misunderstand words a lot, because the dictation is wide. When specific dictation is added, this is not going to happen. – PeakGen Oct 04 '13 at 14:25
  • Assuming you're using the default voice recognition, it should return a list of possible words, not just one specific output. Check your list against each of these, and decided whether to accept it based on confidence level. I don't believe there's a way to say "only listen for `{"go", "stop", "up"}`". – Geobits Oct 04 '13 at 14:28
  • Sorry, how do you suggest to `listen(listOfWords)`? Can you - a human being with natural intelligence - listen to only particular words without listening to all of them? I think that you can ignore the ones that you don't want to act on, but you can't stop listening (hearing) them... – Germann Arlington Oct 04 '13 at 14:56
  • @GermannArlington: Yes, they listen but they ignore. This method is implemented in natural language processing for "boost" the engine to hear to the "exact" voice commands. This is possible with PC engines, I have already done it – PeakGen Oct 04 '13 at 14:59
  • That's basically what my first comment said. Listen, ignore. The difference is with the Android recognizer, you have to implement the ignore part yourself. It's not built in. – Geobits Oct 04 '13 at 15:50

0 Answers0