synesthesiam / rhasspy

Rhasspy voice assistant for offline home automation
https://rhasspy.readthedocs.io
MIT License
950 stars 101 forks source link

arecord: device_list: no soundcards found... #219

Open krawa opened 4 years ago

krawa commented 4 years ago

Hello! I tried to setup a PS3 Eye camera with custom asoundrc. But I didn’t succeed. The error is that there is no such card.

This terminal screenshot with empty asoundrc Screenshot from 2020-05-05 16-21-05

arecord -D hw:CameraB409241 -d 5 -r 16000 /tmp/test.wav
ALSA lib pcm_hw.c:1826:(_snd_pcm_hw_open) Invalid value for card
arecord: main:828: audio open error: No such device

Screenshot from 2020-05-06 09-49-18

Screenshot from 2020-05-06 09-46-14

Rhasspy Assistant V2.4.20.3 Home Assistant 0.109.3 HassOS 3.13 Raspberry pi 3b+ arch | armv7l dev | false docker | true hassio | true os_name | Linux os_version | 4.19.114-v7 python_version | 3.7.7

basnijholt commented 4 years ago

I have the exact same issue.

It seems like the Docker image doesn't see the PS3 Eye:

➜  ~ export DOCKER=`sudo docker container ls | grep rhasspy | awk '{print $1}'`
sudo docker exec $DOCKER arecord -l

arecord: device_list:272: no soundcards found...
➜  ~ arecord -l

**** List of CAPTURE Hardware Devices ****
card 0: CameraB409241 [USB Camera-B4.09.24.1], device 0: USB Audio [USB Audio]
  Subdevices: 0/1
  Subdevice #0: subdevice #0