Menu

using addWord method of the Decoder

Help
adi
2017-09-13
2017-09-13
  • adi

    adi - 2017-09-13

    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()

     
    • Nickolay V. Shmyrev

      Most likely the word is already in the dictionary, thats why it fails.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.