I have bought this cheap USB sound card http://www.play.com/PC/PCs/4-/33367926/ ... oduct.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)
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
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
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
Karl.