-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Multiple hotwords for Android #283
Comments
I've looked into the .cc files of the Python and Android implementations and they look exactly the same as per what they are doing before sending the model string to the .so file. For reference, my model string look like this:
As soon as I pass this model string in the JNI, I have a fatal crash:
|
Any help available? |
You have to change the sensitivity. If you have two models, provide the sensitivity as something like "0.5,0.6", where the sensitivity of the first model is 0.5, and that of the second is 0.6 |
Thanks a bunch, it's working! |
"0.6,0.5" doesn't seem to work in SnowboyAlexaDemo app for two models, detector.SetSensitivity("0.6,0.5") in RecordingThread.java. It crashed, so I used this in SnowboyDetect.java wrapper : snowboyJNI.SnowboyDetect_SetSensitivity(swigCPtr, this, "0.8, 0.5"); this too crashed. :( (I'm new to java, so forgive me for stupidity ;) |
Looking at the documentation, we have an example to use multiple models for detection in python. I'm currently working on an Android application that uses your library and it's working great with one model. If I initialise the SnowboyDetect with two models using "file/path/1.pmdl,file/path/2.pmdl", it crashes directly.
http://docs.kitt.ai/snowboy/#multiple-models-and-callbacks
Is it not supported on Android even if it's only a wrapper?
The text was updated successfully, but these errors were encountered: