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

Number sequence slot not working #37

Closed
djschwab opened this issue Apr 8, 2021 · 2 comments
Closed

Number sequence slot not working #37

djschwab opened this issue Apr 8, 2021 · 2 comments

Comments

@djschwab
Copy link

djschwab commented Apr 8, 2021

Installed voice2json on Ubuntu 20.04 and tried to run [SetTimer] example. I get the following error message when I try to train:
dave@inspiron:~/python$ voice2json train-profile
WARNING:rhasspynlu.slots:Failed to load file/program for slot rhasspy/number,1,59,1 (tried: [PosixPath('/home/dave/.config/voice2json/slots')], [PosixPath('/home/dave/.config/voice2json/slot_programs')])
WARNING:rhasspynlu.slots:Failed to load file/program for slot rhasspy/number,1,9,1 (tried: [PosixPath('/home/dave/.config/voice2json/slots')], [Poto trainsixPath('/home/dave/.config/voice2json/slot_programs')])
Traceback (most recent call last):
File "main.py", line 6, in
File "asyncio/runners.py", line 43, in run
File "asyncio/base_events.py", line 587, in run_until_complete
File "voice2json/main.py", line 73, in main
File "voice2json/main.py", line 745, in train
File "voice2json/core.py", line 65, in train_profile
File "voice2json/train.py", line 231, in train_profile
File "rhasspynlu/jsgf_graph.py", line 426, in sentences_to_graph
File "rhasspynlu/jsgf_graph.py", line 124, in expression_to_graph
File "rhasspynlu/jsgf_graph.py", line 194, in expression_to_graph
File "rhasspynlu/jsgf_graph.py", line 124, in expression_to_graph
File "rhasspynlu/jsgf_graph.py", line 124, in expression_to_graph
File "rhasspynlu/jsgf_graph.py", line 124, in expression_to_graph
File "rhasspynlu/jsgf_graph.py", line 100, in expression_to_graph
File "rhasspynlu/jsgf_graph.py", line 124, in expression_to_graph
File "rhasspynlu/jsgf_graph.py", line 194, in expression_to_graph
File "rhasspynlu/jsgf_graph.py", line 124, in expression_to_graph
File "rhasspynlu/jsgf_graph.py", line 124, in expression_to_graph
File "rhasspynlu/jsgf_graph.py", line 124, in expression_to_graph
File "rhasspynlu/jsgf_graph.py", line 206, in expression_to_graph
AssertionError: Missing slot $rhasspy/number,1,9,1
[12215] Failed to execute script main

Any advice?

@synesthesiam
Copy link
Owner

Which profile did you download? The slot program is available here: https://github.com/synesthesiam/en-us_kaldi-zamia/tree/master/slot_programs/rhasspy

Just make sure to copy number to /home/dave/.config/voice2json/slot_programs

@djschwab
Copy link
Author

Thanks!

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

2 participants