- 论坛徽章:
- 0
|
本帖最后由 ighack 于 2017-05-04 11:00 编辑
在树莓派上pyaudio录音提示cannot find card '0'
pi@raspberrypi:/proc/asound $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 1: Device [USB Audio Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
pi@raspberrypi:/proc/asound $ ls
card1 cards Device devices hwdep modules oss pcm seq timers version
pi@raspberrypi:/proc/asound $ cat cards
1 [Device ]: USB-Audio - USB Audio Device
GeneralPlus USB Audio Device at usb-3f980000.usb-1.3, full speed
pi@raspberrypi:/proc/asound $ cat modules
1 snd_usb_audio
pi@raspberrypi:/proc/asound $ ls /etc/modprobe.d/
blacklist-rtl8192cu.conf blacklist-rtl8xxxu.conf fbdev-blacklist.conf ipv6.conf libpisock9.conf raspi-blacklist.conf
pi@raspberrypi:/proc/asound $
网上的教程很多都说修改/etc/modprobe.d/alsa-base.conf
但我没有这个文件啊
而且arecord -D "plughw:1,0" -d 60 /tmp/test.wav
是可以正常录音的
|
|