I have bought this cheap USB sound card http://www.play.com/PC/PCs/4-/33367926/Portable-USB-2-0-3D-Virtual-5-1Channel-Pc-Sound-Card/Product.html to give my Pi a microphone input, it appears as expected in the list of USB devices:
- Code: Select all
$ lsusb
Bus 001 Device 028: ID 0d8c:000e C-Media Electronics, Inc. Audio Adapter (Planet UP-100, Genius G-Talk)
the microphone appears in the alsamixer as device 1: Card: Generic USB Audio Device, and I have increased the gain to just before it goes red. I have pugged a microphone into the mic socket and it appears on the list of capture devices in arecord:
- Code: Select all
$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: Device [Generic USB Audio Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
however, when I try to record something, I get errors:
- Code: Select all
arecord -f S16_LE -d 20 -r 44100 -D hw:1,0 test.wav
Recording WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono
arecord: set_params:1145: Unable to install hw params:
ACCESS: RW_INTERLEAVED
FORMAT: S16_LE
SUBFORMAT: STD
SAMPLE_BITS: 16
FRAME_BITS: 16
CHANNELS: 1
RATE: 44100
PERIOD_TIME: (125011 125012)
PERIOD_SIZE: 5513
PERIOD_BYTES: 11026
PERIODS: (3 4)
BUFFER_TIME: 500000
BUFFER_SIZE: 22050
BUFFER_BYTES: 44100
TICK_TIME: 0
trying other methods from searching google also produces errors:
- Code: Select all
$ arecord --duration=30 -vvvv -f S16_LE --file-type wav beggin.wav
arecord: main:682: audio open error: No such file or directory
Any ideas? thanks
Karl.