Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with RuntimeError: new_Decoder returned -1 #2

Open
priyablue opened this issue Apr 17, 2021 · 2 comments
Open

Issue with RuntimeError: new_Decoder returned -1 #2

priyablue opened this issue Apr 17, 2021 · 2 comments

Comments

@priyablue
Copy link

while running python file ros_voice_control.py. Can you please let me know if there is any i have missed.

Pasting the error message

ERROR: "dict.c", line 195: Line 1: Phone 'B' is mising in the acoustic model; word 'BACK' ignored
ERROR: "dict.c", line 195: Line 2: Phone 'F' is mising in the acoustic model; word 'FORWARD' ignored
ERROR: "dict.c", line 195: Line 3: Phone 'F' is mising in the acoustic model; word 'FULL' ignored
ERROR: "dict.c", line 195: Line 4: Phone 'HH' is mising in the acoustic model; word 'HALF' ignored
ERROR: "dict.c", line 195: Line 5: Phone 'L' is mising in the acoustic model; word 'LEFT' ignored
ERROR: "dict.c", line 195: Line 6: Phone 'M' is mising in the acoustic model; word 'MOVE' ignored
ERROR: "dict.c", line 195: Line 7: Phone 'R' is mising in the acoustic model; word 'RIGHT' ignored
ERROR: "dict.c", line 195: Line 8: Phone 'S' is mising in the acoustic model; word 'SPEED' ignored
ERROR: "dict.c", line 195: Line 9: Phone 'S' is mising in the acoustic model; word 'STOP' ignored
INFO: dict.c(213): Allocated 0 KiB for strings, 0 KiB for phones
INFO: dict.c(336): 0 words read
INFO: dict2pid.c(396): Building PID tables for dictionary
INFO: dict2pid.c(406): Allocating 34^3 * 2 bytes (76 KiB) for word-initial triphones
INFO: dict2pid.c(132): Allocated 28016 bytes (27 KiB) for word-final triphones
INFO: dict2pid.c(196): Allocated 28016 bytes (27 KiB) for single-phone word triphones
INFO: kws_search.c(423): KWS(beam: -1080, plp: -23, default threshold 0, delay 10)
ERROR: "kws_search.c", line 174: The word 'BACK' is missing in the dictionary
ERROR: "kws_search.c", line 174: The word 'FORWARD' is missing in the dictionary
ERROR: "kws_search.c", line 174: The word 'FULL' is missing in the dictionary
ERROR: "kws_search.c", line 174: The word 'HALF' is missing in the dictionary
ERROR: "kws_search.c", line 174: The word 'LEFT' is missing in the dictionary
ERROR: "kws_search.c", line 174: The word 'MOVE' is missing in the dictionary
ERROR: "kws_search.c", line 174: The word 'RIGHT' is missing in the dictionary
ERROR: "kws_search.c", line 174: The word 'STOP' is missing in the dictionary
Traceback (most recent call last):
File "voice_control.py", line 134, in
ASRControl(args.model, args.lexicon, args.kwlist, args.rospub)
File "voice_control.py", line 49, in init
self.decoder = Decoder(config)
File "/usr/lib/python2.7/dist-packages/pocketsphinx/pocketsphinx.py", line 332, in init
this = _pocketsphinx.new_Decoder(*args)
RuntimeError: new_Decoder returned -1

@vivekagra
Copy link

Hi, Did you find a solution to this issue?

@gorinars
Copy link
Owner

Sorry folks, this project was quite abandoned recently. Unless you want to stick to sphinx decoder, I would suggest looking at https://github.com/alphacep/ros-vosk
It should be more accurate and overall better maintained

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants