Kitt-AI / snowboy

Future versions with model training module will be maintained through a forked version here: https://github.com/seasalt-ai/snowboy
Other
3.08k stars 997 forks source link

Need update on the line we asked to change in regards to SENSITIVITY in the alexa-avs-sample code #217

Open surajhes opened 7 years ago

surajhes commented 7 years ago

HI I was going through the procedures which describes regarding the way to change the Alexa wake word. In that it was mentioned that we have to make a change in file KittAISnowboyWakeWordEngine.cpp. (I have attached image along with the issue for reference.)It says update the variable SENSITIVITY. But i dont see any variable in this name. Can you help me if its referring to right place in the file? I have attached the code snippet snapshot too . (The place where it asks to make changes)

image image

chenguoguo commented 7 years ago

Looks like they've updated it.

Let's do this, after this line: https://github.com/alexa/alexa-avs-sample-app/blob/master/samples/wakeWordAgent/src/KittAiSnowboyWakeWordEngine.cpp#L107

Add one more line:

m_detector->SetSensitivity(YOUR_SENSITIVITY);

Then you can set your sensitivity properly.

surajhes commented 7 years ago

what exactly should be the value set in sensitivity?

chenguoguo commented 7 years ago

You have to play with it. It depends on the hotword itself as well as your use case. Larger sensitivity means it's easier to wake up, but it will also give you more false triggers.

surajhes commented 7 years ago

So i can start and playing around values between 1 to 100? will the units of it be in db? (decibles)

chenguoguo commented 7 years ago

It's between 0 and 1, you can start with 0.5

surajhes commented 7 years ago

thank you :)