2017年3月30日 星期四

[RPi] USB MIC

大概就這樣做

sudo apt-get install alsa-utils mpg123

http://www.maninblack.org/demos.html

$ cat /proc/asound/modules
 0 snd_bcm2835
 1 snd_usb_audio


$ sudo vim /etc/modprobe.d/alsa-base.conf
# This sets the index value of the cards but doesn't reorder.
options snd_usb_audio index=0
options snd_bcm2835 index=1

# Does the reordering.
options snd slots=snd_usb_audio,snd_bcm2835

$ arecord temp.wav
$ aplay -D plughw:1,0 temp.wav


參考:
* http://raspberrypi.stackexchange.com/questions/40831/how-do-i-configure-my-sound-for-jasper-on-raspbian-jessie


沒有留言: