I simply want to see if a string exists in a dictionary file. (Dictionary file at bottom of question)
I want to check if the voice recognizer can recogn
In C there is ps_lookup_word function which allows you to lookup for the word:
if (ps_lookup_word(ps, "abc") == NULL) {
// do something
}
In Java wrapper it's a method Decoder.lookupWord
:
if(decoder.lookupWord("abc") == null) {
// do something
}
In Android, you can access decoder from Recognizer
:
if(recognizer.getDecoder().lookupWord("abc") == null) {
// do something
}