I got the AVS sample stack up and running, but matrix voice does not seem to respond to my voice commands, and I’m suspecting its because of the mic energy demo? So… maybe I need to reset the software?
I installed matrix os but to be honest I’m not entirely sure what to do next.
You are right, it is just for x86/x64. In our MATRIX Voice ESP32 guide, all the development should happen in a x86/x64 computer. After building the app, the deployment script copies the binaries to the Raspberry Pi and then we program the ESP32 using UART. The steps show you have to do it.
$ npm start
> alexa-voice-service-sample-companion-service@1.0.0 start /home/pi/matrix/alexa-avs-sample-app/samples/companionService
> node ./bin/www
This node service needs to be running to store token information memory and vend them for the AVS app.
Listening on port 3000
Successfully retrieved registration code for my_device / 123456789
javaClient
$ mvn exec:exec
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Alexa Voice Service Sample Java Client 20160207.7
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- exec-maven-plugin:1.2.1:exec (default-cli) @ sample-java-client ---
Device: my_device, DSN: 123456789
Alexa Voice Service - v20160207.7
LOGIN TO REGISTER/AUTHENTICATE YOUR DEVICE: Please register your device by visiting the following URL in a web browser and follow the instructions:
https://localhost:3000/provision/8298c90376dd1f58f099eea5Continue only once you've authenticated with AVS.
And after logging in with my browser, I get redirected back to localhost with a message “device tokens ready”
wakeWord
$ ./wakeWordAgent -e sensory
INFO:main: Starting Wake Word Agent
INFO:WakeWordAgent: State set to IDLE(2)
INFO:Initializing Sensory library | library name: TrulyHandsfree | library version: 5.0.0-beta.10.2 | model file: ../ext/resources/spot-alexa-rpi.snsr
WARNING:Library expires on: License expires on 28 Apr 2018 00:00:00 GMT
INFO:SensoryWakeWordEngine: mainLoop thread started
INFO:WakeWordIPCSocket::mainLoop thread started
INFO:WakeWordIPCSocket: init socket on port:5123
INFO:WakeWordAgent: thread started
INFO:===> Connected to AVS client <===
After all this, I can shout “Alexa” at my Voice as much as I like, but it just keeps pulsating with red leds from the mic energy thingy I installed previously.
I’m running raspbian Jessie.
Edit: I just realised that the javaClient should actually open some sort of a GUI. It does not. I’m connected to my Pi with real vnc (headless mode).
So my first problem was that I did not actually get the java client up and running properly using VNC in headless mode. I booted my raspberry to the GUI and connected to that with VNC and got the java client up and running.
If I use the “push-to-talk” button from the GUI, I can hear the notification sound that prompts me to start speaking and after a few seconds I hear another sound which I guess indicates that my command has been processed? No matter what I say or do, I get no response from alexa. I only get stuff in the wakeWord log if I press the push-to-talk -button. Here are some new logs:
companion
$ npm start
> alexa-voice-service-sample-companion-service@1.0.0 start /home/pi/matrix/alexa-avs-sample-app/samples/companionService
> node ./bin/www
This node service needs to be running to store token information memory and vend them for the AVS app.
Listening on port 3000
Successfully retrieved registration code for my_device / 123456789
Successfully retrieved access token for session id: ca264da0-2006-478f-8c7c-ab53d8d46976
javaClient
$ mvn exec:exec
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Alexa Voice Service Sample Java Client 20160207.7
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- exec-maven-plugin:1.2.1:exec (default-cli) @ sample-java-client ---
wakeWord
$ ./wakeWordAgent -e sensory
INFO:main: Starting Wake Word Agent
INFO:WakeWordAgent: State set to IDLE(2)
INFO:Initializing Sensory library | library name: TrulyHandsfree | library version: 5.0.0-beta.10.2 | model file: ../ext/resources/spot-alexa-rpi.snsr
WARNING:Library expires on: License expires on 28 Apr 2018 00:00:00 GMT
INFO:SensoryWakeWordEngine: mainLoop thread started
INFO:WakeWordIPCSocket::mainLoop thread started
INFO:WakeWordIPCSocket: init socket on port:5123
INFO:===> Connected to AVS client <===
INFO:WakeWordAgent: thread started
INFO:WakeWordAgent: IPC Command received:3
INFO:WakeWordAgent: State set to WAKE_WORD_PAUSE_REQUESTED(5)
INFO:SensoryWakeWordEngine: handling pause
INFO: *** THREAD JOINING: Sensory ***
INFO:SensoryWakeWordEngine: mainLoop thread ended
INFO:WakeWordAgent: State set to WAKE_WORD_PAUSED(6)
INFO:WakeWordAgent: IPC Command received:4
INFO:WakeWordAgent: State set to WAKE_WORD_RESUME_REQUESTED(7)
INFO:SensoryWakeWordEngine: handling resume
INFO:SensoryWakeWordEngine: mainLoop thread started
INFO:WakeWordAgent: State set to IDLE(2)
INFO:WakeWordAgent: IPC Command received:3
INFO:WakeWordAgent: State set to WAKE_WORD_PAUSE_REQUESTED(5)
INFO:SensoryWakeWordEngine: handling pause
Yeah I did stop MALOS before running it, but I don’t mind the quality in that demo at the moment. What I’d like to know is what else can I provide for you that might get me closer to get the Alexa demo working?
Thanks Kevin,
I ran voice_esp32_reset, did the update/upgrade, git pull’d, and rebuilt/installed hal from source. still same issues.
anything I may have missed? e.g. there used to be a script you had to run on the creator for resetting the fpga or something? do I need to do something like that? I’ve done very little initialization stuff, don’t have malos installed etc.
pi@raspberrypi:~ $ /usr/share/matrixlabs/matrixio-devices/fpga_info
IDENTIFY = 6032bad2
VERSION = 10004
looks good. I had NOT rebooted. O_o did so, and now the mic_energy seems to react to sounds, but it’s still very strange. it stays on medium intensity, and when I clap my hands, it pulses/strobes a few times brightly, slows down and goes darker, and then goes back to being on medium intensity.