Alexa WakeWord ALSA Error


#1

I followed these Instructables and I’m getting this error when running the command
$ cd wakeWordAgent/src && ./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-avs.4 | model file: …/ext/resources/spot-alexa-rpi.snsr
WARNING:Library expires on: License expires on 28 Jun 2017 00:00:00 GMT
INFO:SensoryWakeWordEngine: mainLoop thread started
ERROR:An error happened in the mainLoop of SensoryWakeWord snsrRun(): task: Input channel audio-pcm: ALSA error: No such file or directory
INFO:SensoryWakeWordEngine: mainLoop thread ended
INFO:WakeWordIPCSocket::mainLoop thread started
INFO:WakeWordIPCSocket: init socket on port:5123
INFO:WakeWordAgent: thread started
INFO:===> Connected to AVS client <===

I don’t get this error when running kittai but neither of them work.

I have changed the ~/.asoundrc and have everything up and running except for when I run the wake word.


#2

Hi @architek1,

You should have our MALOS service running . Please check that its runing using :
ps -ax | grep malos

Yoel


#3

Thanks. I got this when I ran the command:
432 ? Ssl 0:04 /usr/bin/malos_eye
434 ? Ssl 20:59 /usr/bin/malos
7690 pts/5 S+ 0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn malos


#4

Hey @yoelrc88!

Is that what I should be seeing? As it still isn’t working on my end unfortunately.


#5

I ran the command
malos

It said it was already running.

All demos and apps work perfect except for the this one. Anyone have any suggestions?


#6

Hey @yoelrc88.

Are there any suggestions you might have in regards to this problem?

Thanks.


#7

I would recommend re-run the installation script and also maybe uninstall pulse audio. Please check this thread and then let us know how did it go.

Sorry about the delay in the response, Please keep us updated

Thanks


#8

jack -v
This is jack 3.1.1 ©2004 Arne Zellentin zarne@users.sf.net
warning You have no standard location set, putting files into the current
directory. Please consider setting base_dir in ~/.jack3rc.
warning Default CD device /dev/cdrom does not exist.
error Device /dev/cdrom does not exist!

Re: automated_install.sh


PortAudio was successfully installed.

On some systems (e.g. Linux) you should run ‘ldconfig’ now
to make the shared object available. You may also need to
modify your LD_LIBRARY_PATH environment variable to include
the directory /home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/install/lib

[ 35%] Linking CXX executable wakeWordAgentTest
…/ext/lib/libportaudio.a(pa_jack.o): In function GetStreamTime': /home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:1738: undefined reference tojack_frame_time’
/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:1738: undefined reference to jack_get_sample_rate' ../ext/lib/libportaudio.a(pa_jack.o): In functionUpdateQueue’:
/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:1427: undefined reference to jack_get_sample_rate' ../ext/lib/libportaudio.a(pa_jack.o): In functionJackCallback’:
/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:1562: undefined reference to jack_port_get_buffer' ../ext/lib/libportaudio.a(pa_jack.o): In functionRealProcess’:
/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:1349: undefined reference to jack_get_sample_rate' /home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:1365: undefined reference tojack_frame_time’
/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:1367: undefined reference to jack_port_get_latency' /home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:1370: undefined reference tojack_port_get_latency’
/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:1391: undefined reference to jack_port_get_buffer' /home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:1402: undefined reference tojack_port_get_buffer’
…/ext/lib/libportaudio.a(pa_jack.o): In function RealStop': /home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:1688: undefined reference tojack_port_connected’
/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:1690: undefined reference to jack_port_disconnect' /home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:1696: undefined reference tojack_port_connected’
/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:1698: undefined reference to jack_port_disconnect' ../ext/lib/libportaudio.a(pa_jack.o): In functionStartStream’:
/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:1609: undefined reference to jack_port_name' /home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:1609: undefined reference tojack_port_name’
/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:1609: undefined reference to jack_connect' /home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:1619: undefined reference tojack_port_name’
/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:1619: undefined reference to jack_port_name' /home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:1619: undefined reference tojack_connect’
…/ext/lib/libportaudio.a(pa_jack.o): In function CleanUpStream': /home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:983: undefined reference tojack_port_unregister’
/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:988: undefined reference to jack_port_unregister' ../ext/lib/libportaudio.a(pa_jack.o): In functionOpenStream’:
/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:1080: undefined reference to jack_port_name_size' /home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:1081: undefined reference tojack_client_name_size’
/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:1087: undefined reference to jack_get_sample_rate' /home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:1181: undefined reference tojack_get_sample_rate’
/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:1214: undefined reference to jack_port_name_size' /home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:1215: undefined reference tojack_port_register’
/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:1224: undefined reference to jack_port_name_size' /home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:1225: undefined reference tojack_port_register’
/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:1241: undefined reference to jack_get_ports' /home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:1245: undefined reference tojack_port_by_name’
/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:1265: undefined reference to jack_get_ports' /home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:1269: undefined reference tojack_port_by_name’
/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:1301: undefined reference to jack_port_get_latency' /home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:1302: undefined reference tojack_get_buffer_size’
/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:1305: undefined reference to jack_port_get_latency' /home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:1306: undefined reference tojack_get_buffer_size’
/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:1310: undefined reference to jack_frame_time' ../ext/lib/libportaudio.a(pa_jack.o): In functionTerminate’:
/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:820: undefined reference to jack_deactivate' /home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:825: undefined reference tojack_client_close’
…/ext/lib/libportaudio.a(pa_jack.o): In function IsFormatSupported': /home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:918: undefined reference tojack_get_sample_rate’
/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:918: undefined reference to jack_get_sample_rate' /home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:918: undefined reference tojack_get_sample_rate’
…/ext/lib/libportaudio.a(pa_jack.o): In function PaJack_Initialize': /home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:733: undefined reference tojack_client_open’
…/ext/lib/libportaudio.a(pa_jack.o): In function BuildDeviceList': /home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:491: undefined reference tojack_client_name_size’
/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:492: undefined reference to jack_client_name_size' /home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:499: undefined reference tojack_get_ports’
/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:517: undefined reference to jack_client_name_size' /home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:558: undefined reference tojack_get_sample_rate’
/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:589: undefined reference to jack_get_ports' /home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:596: undefined reference tojack_port_by_name’
/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:598: undefined reference to jack_port_get_latency' /home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:610: undefined reference tojack_get_ports’
/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:617: undefined reference to jack_port_by_name' /home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:619: undefined reference tojack_port_get_latency’
…/ext/lib/libportaudio.a(pa_jack.o): In function PaJack_Initialize': /home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:781: undefined reference tojack_on_shutdown’
/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:782: undefined reference to jack_set_error_function' /home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:783: undefined reference tojack_get_buffer_size’
/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:785: undefined reference to jack_set_sample_rate_callback' /home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:786: undefined reference tojack_set_xrun_callback’
/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:800: undefined reference to jack_client_close' /home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:787: undefined reference tojack_set_process_callback’
/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:788: undefined reference to jack_activate' ../ext/lib/libportaudio.a(pa_jack.o): In functionPaJack_SetClientName’:
/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:1750: undefined reference to jack_client_name_size' ../ext/lib/libportaudio.a(pa_jack.o): In functionPaJack_GetClientName’:
/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/kitt_ai/snowboy/examples/C++/portaudio/src/hostapi/jack/pa_jack.c:1765: undefined reference to `jack_get_client_name’
collect2: error: ld returned 1 exit status
CMakeFiles/wakeWordAgentTest.dir/build.make:565: recipe for target ‘wakeWordAgentTest’ failed
make[2]: *** [wakeWordAgentTest] Error 1
CMakeFiles/Makefile2:67: recipe for target ‘CMakeFiles/wakeWordAgentTest.dir/all’ failed
make[1]: *** [CMakeFiles/wakeWordAgentTest.dir/all] Error 2
Makefile:83: recipe for target ‘all’ failed
make: *** [all] Error 2