USB Micro not working on raspberry pi 2
Posted: Tue May 12, 2015 12:07 pm
Hi,
I have just bought an USB microphone to interact vocaly with my raspberry. I test the microphone on windows and it works like a charm. My raspberry is under raspbian. I plug the microphone on the raspberry and in the file "/etc/modprobe.d/alsa-base.conf" I add the lines
I restarted my raspberry.
My microphone is well recognized by the system
My USB microphone is before the "bcm2835" card
BUT
and
When I record a sound with the command "arecord test.wav" a file is well recorded but when I play it there is no sound...
I don't understand why "aplay -l" or "aplay -L" does not proive me a reference to my USB microphone.
Someone can help me please ?
I have just bought an USB microphone to interact vocaly with my raspberry. I test the microphone on windows and it works like a charm. My raspberry is under raspbian. I plug the microphone on the raspberry and in the file "/etc/modprobe.d/alsa-base.conf" I add the lines
Code: Select all
options snd-usb-audio index=0
options snd-bcm2835 index=1
My microphone is well recognized by the system
Code: Select all
pi@raspberrypi ~ $ lsusb
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 0d8c:013c C-Media Electronics, Inc. CM108 Audio Controller
Code: Select all
pi@raspberrypi ~ $ cat /proc/asound/cards
0 [Device ]: USB-Audio - USB PnP Sound Device
C-Media Electronics Inc. USB PnP Sound Device at usb-bcm2708_usb-1.3, full spee
1 [ALSA ]: bcm2835 - bcm2835 ALSA
bcm2835 ALSA
Code: Select all
**** List of PLAYBACK Hardware Devices ****
card 1: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 1: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
Code: Select all
pi@raspberrypi ~ $ aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
default:CARD=ALSA
bcm2835 ALSA, bcm2835 ALSA
Default Audio Device
sysdefault:CARD=ALSA
bcm2835 ALSA, bcm2835 ALSA
Default Audio Device
I don't understand why "aplay -l" or "aplay -L" does not proive me a reference to my USB microphone.
Someone can help me please ?