after trying to run those lines:
Decoder decoder = recognizer.getDecoder();
decoder.addWord("volip", "V AA L AH P",1);
i got this error:Caused by: java.lang.RuntimeException: Decoder_addWord returned -1
i am trying adding a word to the dictionay i was able to add it directly to the cmudict-en-us.dict file
the problem was the app reconized every possible sound as the word "volip" when i used it as Keyphrase
using the method addKeyphraseSearch()
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
after trying to run those lines:
Decoder decoder = recognizer.getDecoder();
decoder.addWord("volip", "V AA L AH P",1);
i got this error:Caused by: java.lang.RuntimeException: Decoder_addWord returned -1
i am trying adding a word to the dictionay i was able to add it directly to the cmudict-en-us.dict file
the problem was the app reconized every possible sound as the word "volip" when i used it as Keyphrase
using the method addKeyphraseSearch()
Most likely the word is already in the dictionary, thats why it fails.