Okay, so this device wouldn't work for me: http://www.amazon.com/dp/B001MSS6CS/ref ... tringer-20
After a lot of trouble shooting, I found the issue. ALSA requires specific settings for each device. This specific device requires the format to be signed 16-bit little endian. of -f S16_LE.
First the setup: I have the USB adapter plugged directly into the pi for the least static. I have my config setup as observing states in #1 http://www.raspberrypi.org/phpBB3/viewt ... 11#p314611
Then I had to run alsamixer and set my mic volume to about 50. Anything lower seems to not pick up and much high maxes out the card(hit F5 to see the capture device) and run:
Code: Select all
sudo alsactl store
Then to use arecord with the setting -D plughw:0. Why? Well, using the plug interface seems to autoconfig the device as needed. This device seems to require specific setting, the S16_LE part. plughw set that for me.
And here is my full command:
Code: Select all
arecord -D plughw:0 -r 16000 test.wav
I cannot for the life of me get arecord to actually record audio with a C-Media USB adapter. The recorded sound is either static or completely silent. I know the mic works because when I turn on the mic playback in alsamixer I can hear everything just fine and it actually is really good quality.
I have set up the USB device as hw0
I've tried this and many variations of it. It complains without the -f S16_LE
Code: Select all
arecord -f S16_LE -D hw:0,0 -r 48000 test.wav
And when I run it through aplay, it's full of static or completely silent.
Does anyone see what I'm missing? Or has anyone gotten it to work?
Thanks,
Ian