I just received Matrix Voice, it works quite well, I have two questions:
1.Matrix - Pocketsphinx -
the DEMO works charm, and the light does change from what I command.
Is it possible to create a command from Sphinx Knowledge Base Tool and make this command to play an audio file I put in the asset? (meaning - when user say this voice command, the voice file will play from Matrix + Pi)
it works quite well, but when I run the demo of “node test_wakeword.js” it did show “WakeWord Reached: voice recognition ready” on my terminal, and it did show “WakeWord Reached: MIA RING RED” when I say MIA RING RED, but didn’t make any change on lights or anything or show any errors, do I need to make any change to make the lights works?
Hi @zepets. The Pocket Sphinx demo can be edited to use other commands if you choose to do so. You could then tie those commands to call upon a separate script that plays an audio file.
In regard to your second question, the wake word demo was originally made for the MATRIX Creator and has the number of LEDs set to 35 which is higher than what the MATRIX Voice has. If you edit the number 35 to 18, in this line, the demo should now be able to change the LEDs on your MATRIX Voice.
Thanks a lot for the update, I followed your instruction create a js file and update all the file name (audio and Pocket Spinx files ) to my file name, but got error message when execute the js file as below, would you mind let me know how should I fix it? thanks!
Error: Cannot find module ‘zeromq’
at Function.Module._resolveFilename (module.js:455:15)
at Function.Module._load (module.js:403:25)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object. (/home/pi/matrix-malos-wakeword/src/js_test/audio_test.js:5:11)
at Module._compile (module.js:556:32)
at Object.Module._extensions…js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
for solving this issue I tried two ways to install zeromq and zmq -