Menu

Pocket sphinx error new decoder returns -1

Help
Graham
2017-01-30
2017-01-30
  • Graham

    Graham - 2017-01-30

    I have installed pocketsphinx for python 3 on my raspberry pi and im trying to copy this example code

    https://github.com/cmusphinx/pocketsphinx/blob/master/swig/python/test/kws_test.py

    an error is raised on the line decoder = Decoder(config) it says something along the lines of new_decoder returned -1 on line 228, (i will edit with the exact error when i can).

    can anyone shed any light on why this function would return -1?

    cheers,
    Graham.

     
    • Nickolay V. Shmyrev

      can anyone shed any light on why this function would return -1?

      You can simply read the output of pocketsphinx.

       
  • Graham

    Graham - 2017-01-30

    Excuse the noobness of this but where would i find the output of pocketsphinx?

     
    • Nickolay V. Shmyrev

      Printed in terminal.

       
  • Graham

    Graham - 2017-02-10

    Finally Found the issue to this using the following comment you made on someone elses post Nickolay.

    https://sourceforge.net/p/cmusphinx/discussion/sphinx4/thread/82e4e4a2/#1222/b70b

    The filepaths had an extra en-us folder compared to my instillation, I took them out and it worked.

     

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.