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

offline example doesn't recognise speech #6

Open
hamishfagg opened this issue Jan 10, 2017 · 3 comments
Open

offline example doesn't recognise speech #6

hamishfagg opened this issue Jan 10, 2017 · 3 comments

Comments

@hamishfagg
Copy link

Hi there,

I have just received my respeaker and I am testing the example offline_voice_assistant.py script here.
I have set the wake up word to alexa as a test but the same thing happens regardless. I have turned the mic volume up in alsa and I am still unable to get this script to recognise a single word - I've tried saying things ranging from "hello" to full scentences. Below is the output from the script:

root@ReSpeaker:~/respeaker_python_library/examples# python ./offline_voice_assistant.py
INFO:mic:Start detecting
INFO:mic:Detected alexa
Wake up
INFO:mic:Start listening
INFO:mic:Stop listening
1111+111111100000000-1111+11100000000-0000000000000000000000000000000000001111+11111111111111111111111111111111100000000-000000000000000000000000000000000000000000000000000
INFO:mic:Start detecting
INFO:mic:Too many delays, 17 in queue
INFO:mic:Too many delays, 16 in queue
INFO:mic:Too many delays, 15 in queue
INFO:mic:Too many delays, 14 in queue
INFO:mic:Too many delays, 13 in queue
INFO:mic:Too many delays, 12 in queue
INFO:mic:Too many delays, 11 in queue
INFO:mic:Too many delays, 10 in queue
INFO:mic:Too many delays, 9 in queue
INFO:mic:Too many delays, 8 in queue
INFO:mic:Too many delays, 7 in queue
INFO:mic:Too many delays, 6 in queue
INFO:mic:Too many delays, 5 in queue
INFO:mic:Too many delays, 6 in queue
INFO:mic:Too many delays, 5 in queue

Any ideas? Thanks

@xiongyihui
Copy link
Contributor

The offline example only recognizes three keyword. It's in https://github.com/respeaker/respeaker_python_library/blob/master/respeaker/pocketsphinx-data/keywords.txt

You can add new words to keywords.txt and dictionary.txt. You can find the words in https://github.com/respeaker/pocketsphinx-data/blob/master/dictionary.txt

@hamishfagg
Copy link
Author

Hi,

Are we able to get some documentation on exactly what is required for respeaker to recognise new words using microphone.recognise() ?

I have replaced the dictionary file with the one that comes with pocketphinx and mic.recognise() will still only recognise "play music".

@jayavanth
Copy link

@IVData you just have to install the package again

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