I'm setting up alexa-pi and everything was going smoothly until the final step which is running a wake word engine. I'm keep getting " 'pcm' failed." error. I've read somewhere that in order to this to work first I need to make sure that arecord -d 10 -f S16_LE -r 16000 test.wav
command would record my voice input, however when I try to run it I get
arecord: main:722: audio open error: No such file or directory
Here's some of my outputs
~$ cat /proc/asound/modules
0 snd_bcm2835
1 snd_usb_audio
~$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: Mic122033996 [Wireless Mic #122033996], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
Also I had to put this .conf file in /etc/modprobe.d/
so alsa can see my microphone (it couldn't before)
# This sets the index value of the cards but doesn't reorder.
options snd_usb_audio index=1
options snd_bcm2835 index=0
# Does the reordering.
options snd slots=snd_bcm2835,snd_usb_audio
and here's whats wake word engine throws:
$ ./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.1 | model file: ../ext/resources/spot-alexa-rpi.snsr
WARNING:Library expires on: License expires on 28 Apr 2017 00:00:00 GMT
wakeWordAgent: pcm.c:694: snd_pcm_close: Assertion `pcm' failed.