I'm using a USB sound device to connect a couple small speakers (https://a.co/d/05CPIVYZ) and a USB microphone, mostly due to the long cord (https://a.co/d/00JrdQhD) and for the life of me I can't get the microphone to pick up.
I'm able to hear sound with aplay on both the host and in the container, and can record using arecord. I've had to modify my /etc/asound.conf to get to this point. This is currently what I have:
# Output device (hw:1)
pcm.!default {
type plug
slave.pcm {
type hw
card 1
}
}
ctl.!default {
type hw
card 1
}
# Input device (hw:2)
pcm.input {
type plug
slave.pcm {
type hw
card 2
}
}
ctl.input {
type hw
card 2
}
Here's the output of aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 1: Device [USB PnP Audio Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
And the output of arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: Device [USB PnP Audio Device], device 0: USB Audio [USB Audio]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 2: Microphone [USB Lavalier Microphone], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
I've tried modifying common.py line:
engine.setProperty('alsa_device', 'hw:Headphones,0')
to a few different things. I'ved tried hw:Microphone,0 and plughw:2,0. Neither have worked.
The logs repeat over and over
INFO:common:Could not understand audio, waiting for a new phrase...
I'm hitting up against a brick wall at this point. I'm not sure what to try next. Any ideas?