I’ve been banging my head against the wall trying to solve this problem for days now.
I am setting up a base and satellite Rhasspy setup.
- On my 8GB HomeAssistant RPi 4, I’m running supervised HA with the Rhasspy v2.5.11 (full, not junior) addon, configured perfectly with the Anker S330. I’ve got audio and wakeword detection working solidly there.
- On my 1GB RPi 4 running Raspberry Pi OS Lite v5.15, I have Rhasspy v2.5.11 installed in a Docker container. In both the host and inside the Docker container, I can see the device listed as both playback and capture in
null Discard all samples (playback) or generate zero samples (capture) output input default hw:CARD=S330,DEV=0 Anker PowerConf S330, USB Audio Direct hardware device without any conversions plughw:CARD=S330,DEV=0 Anker PowerConf S330, USB Audio Hardware device with all software conversions sysdefault:CARD=S330 Anker PowerConf S330, USB Audio Default Audio Device front:CARD=S330,DEV=0 Anker PowerConf S330, USB Audio Front output / input dsnoop:CARD=S330,DEV=0 Anker PowerConf S330, USB Audio Direct sample snooping device
All audio playback works great on both the host and from the Docker container (via Rhasspy’s audio output); however, for the life of me, I cannot get
arecord to record a test wav file on the host. I’m constantly met with the
arecord: main:830: audio open error: No such file or directory error, about which I’ve scoured the net for more info to no avail. All I can surmise is somehow, the capture device isn’t being properly started.
Furthermore, I can change audio levels for playback and capture for the S330 in
alsamixer with no issues on both the host and from the Docker container, so it appears that the host audio devices are properly passing through to the Docker container. I’m not sure if it makes a difference since the capture device shows in
arecord -L, but in
/proc/asound/devices, I see entries for
digital audio playback, but nothing for capture at all.
I’m also unsure if the fact that the Anker S330 is a combined speaker/mic combo unit is causing issues at the OS level on the satellite RPi. It just seems very peculiar that all playback and capture audio works perfectly from the Rhasspy HomeAssistant addon.
Any help would be immensely appreciated. Thank you.