shivasiddharth / headless-alexa-avs-sample-app

Autostart the Amazon alexa-avs-sample-app on boot on a headless Raspberry Pi
GNU General Public License v3.0
14 stars 11 forks source link

ALSA error when starting wake word engine (sensory) with sudo #5

Open guushub opened 6 years ago

guushub commented 6 years ago

First of all, great work on these services en scripts! They helped me a lot starting the sample app on boot.

I had an issue where the alexa sample app did not respond after using this headless-alexa-avs-sample-app. I logged the output of the wake word agent script and noticed this: ERROR:An error happened in the mainLoop of SensoryWakeWord snsrRun(): task: Input channel audio-pcm: ALSA error: No such file or directory

I solved this by changing this line in headless-alexa-avs-sample-app/scripts/wakeword.sh: cd wakeWordAgent/src && sudo ./wakeWordAgent -e sensory to cd wakeWordAgent/src && ./wakeWordAgent -e sensory

So for me this issue is solved by running the agent without sudo. Not sure if this belongs in this repo, but I thought I'd report it here for anyone looking for it here.