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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
You can simply read the output of pocketsphinx.
Excuse the noobness of this but where would i find the output of pocketsphinx?
Printed in terminal.
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.