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 of Hotwords and Sensitivity does not match when using jarvis.umdl #455

Closed
BarryAlle opened this issue Jul 26, 2018 · 13 comments

Comments

Projects
None yet
2 participants
@BarryAlle
Copy link

commented Jul 26, 2018

Describe the bug:

Hi,Shiva, i have a problem about custom wakeword.When i add a Path of my model wakeworld in config.yaml,its return this:
ERROR:__main__:number of hotwords in decoder_model (4) and sensitivity (3) does not match
Traceback (most recent call last):
  File "/home/pi/GassistPi/src/main.py", line 560, in <module>
    Myassistant().main()
  File "/home/pi/GassistPi/src/main.py", line 153, in __init__
    self.detector = snowboydecoder.HotwordDetector(models, sensitivity=self.sensitivity)
  File "/home/pi/GassistPi/src/snowboydecoder.py", line 100, in __init__
    "(%d) does not match" % (self.num_hotwords, len(sensitivity))
AssertionError: number of hotwords in decoder_model (4) and sensitivity (3) does not match

Please help me.

Did you go through or search the issues section to check if your issue was already discussed (either currently open issues or closed issues).

Yes/No

2. Is the issue related to assistant installation ?

Yes/No

If answer to question 2 is Yes, then paste the contents of the terminal below.


If answer to question 2 is No, then proceed further.

3. Does the assistant service start normally?

Yes/No

4. Is the assistant service restarting automatically?

Yes/No

If answer to question 4 is Yes, then paste the contents of the terminal below.


If answer to question 4 is No, then proceed further.

Manually start the assistant. For guidelines to start the assistant manually refer this

Paste the command below, that crashed the assistant


Paste the contents of the terminal below


Attach the log file. Log file can be found in /tmp directory. Remeber to copy your log file before shutting down or restarting the Pi.

@shivasiddharth shivasiddharth changed the title Wakeword problem Number of Hotwords and Sensitivity does not match Jul 26, 2018

@shivasiddharth

This comment has been minimized.

Copy link
Owner

commented Jul 26, 2018

Can you please attach your config.yaml file?

@BarryAlle

This comment has been minimized.

Copy link
Author

commented Jul 26, 2018

#Config file for declaring custom actions'parameters. The parameters have been listed here in alphabetical order (A-Z).

#Custom wakeword On/Off.
#To enable custom wakeword, change status to Enabled and restart the assistant.
Custom_wakeword:
status: 'Enabled'
models:
- '/home/pi/GassistPi/src/resources/alexa.umdl'
- '/home/pi/GassistPi/src/resources/snowboy.umdl'
- '/home/pi/GassistPi/src/resources/jarvis.umdl'
#ESP control declarations. Follow a similar pattern to add your own list.
ESP:
IP: 'xxxxxxxxxxxx' #Enter your ESP's IP here.
devicename:
- 'Device 1'
- 'Device 2'
- 'Device 3'
deviceid:

This is my config.yaml
p/s: Thnks for spending your time to help me

@shivasiddharth

This comment has been minimized.

Copy link
Owner

commented Jul 26, 2018

Right now, the assistant can take in max 2 wakewords. You have given 3.

@BarryAlle

This comment has been minimized.

Copy link
Author

commented Jul 26, 2018

but i gave it 2 wakewords still not working

@shivasiddharth

This comment has been minimized.

Copy link
Owner

commented Jul 26, 2018

Please post the output of terminal when you use two wakewords.

@BarryAlle

This comment has been minimized.

Copy link
Author

commented Jul 26, 2018

My Terminal output:
ERROR:main:number of hotwords in decoder_model (3) and sensitivity (2) does not match
Traceback (most recent call last):
File "/home/pi/GassistPi/src/main.py", line 560, in
Myassistant().main()
File "/home/pi/GassistPi/src/main.py", line 153, in init
self.detector = snowboydecoder.HotwordDetector(models, sensitivity=self.sensitivity)
File "/home/pi/GassistPi/src/snowboydecoder.py", line 100, in init
"(%d) does not match" % (self.num_hotwords, len(sensitivity))
AssertionError: number of hotwords in decoder_model (3) and sensitivity (2) does not match

I think its still the same

@BarryAlle

This comment has been minimized.

Copy link
Author

commented Jul 26, 2018

Thats only work with alexa and snowboy but the other its not

@shivasiddharth

This comment has been minimized.

Copy link
Owner

commented Jul 26, 2018

There is an issue with the jarvis.umdl hotword. Please refer to this Kitt-AI/snowboy#447 one jarvis.umdl is being taken as two models.
If you want to use jarvis.umdl then make the following change in main.py in lines 151 and 152 in main.py

change len(models) to (len(models)+1) this is if you are using jarvis.umdl only.

@shivasiddharth shivasiddharth changed the title Number of Hotwords and Sensitivity does not match Number of Hotwords and Sensitivity does not match when using jarvis.umdl Jul 26, 2018

@BarryAlle

This comment has been minimized.

Copy link
Author

commented Jul 27, 2018

How about i want to use 2 model of wakeword?
I think its much be easy for my family to use

@BarryAlle

This comment has been minimized.

Copy link
Author

commented Jul 27, 2018

i have train myself a model call friday but is not working when i use 2 model in config.yaml
p/s I put every thing back to default

@shivasiddharth

This comment has been minimized.

Copy link
Owner

commented Jul 27, 2018

what are the two models you are using ?

@BarryAlle

This comment has been minimized.

Copy link
Author

commented Jul 27, 2018

nevermind, now its working perfectly.Thanks for spending your time to help me

@shivasiddharth

This comment has been minimized.

Copy link
Owner

commented Jul 27, 2018

Closing this issue then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.