I tried to set my hotword for deepspeech on my raspberry pi and got a really long error when I sent this in terminal:
python3 /home/pi/DeepSpeech_RaspberryPi4_Hotword/mic_streaming.py --keywords jarvis
I don't know how to fix this and didn't find anything anywhere else.
these errors are not related to DeepSpeech
, they're related to ALSA
, which is the sound subsystem for Linux. By the looks of the error, your system is having trouble accessing the microphone.
I would recommend running several ALSA
tests, such as;
arecord -l
This should give you a list of recording devices that are detected, such as:
$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 2: Generic_1 [HD-Audio Generic], device 0: ALC294 Analog [ALC294 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
If this is not what you expected, you can use the command alsamixer
to select another sound card and/or microphone.