I’ve found that if I add the certain words, such as “CLOSE” or “RESUME” to the array passed to generateLanguageModelFromArray or the dictionary passed to generateGrammarFromDictionary, when Pocketshpinx starts listening, I get this:
2016-02-06 13:42:30.115 myapp[1048:661228] Project has these words or phrases in its dictionary:
CLOSE
CLOSE(2)
or
2016-02-06 13:45:00.021 myapp[1060:662742] Project has these words or phrases in its dictionary:
RESUME
RESUME(2)
RESUME(3)
Even tested it just adding the single word with no other words, and still get the duplicates. Not all words trigger this, but some others that I’ve found that do are “FAVORITES”, “TV”, “ENTER” and “EXIT”, but I’m guessing there are probably others. Don’t know what I’m doing that is causing this. I can give you the complete logs if you need, but thought you might know off the top of your head what was causing this, and if it is a problem or just something I should ignore. Trying to keep the language model as small as possible, so would like to figure out how to keep the duplicates out.
Thanks!