On 12/01/2010 04:47 PM, Camaleón wrote:
On Wed, 01 Dec 2010 14:58:37 +0800, Bob wrote:
Hi I'm trying to get the inbuilt mic on my USB webcam to be the default
mike so it works in pidgin, empathy, sound recorder& other
applications.
8< snip
Maybe your best chance is by editing your "~/.asoundrc" file.
You can use these samples as start point:
http://wiki.audacityteam.org/index.php?title=USB_mic_on_Linux#Setting_default_recording_device
https://wiki.archlinux.org/index.php/Advanced_Linux_Sound_Architecture#Setting_the_default_Microphone.2FCapture_Device
Despite my previous experiences that was actually pretty easy.
I did
cat /proc/asound/cards
0 [Live ]: EMU10K1 - SB Live! Value [CT4832]
SB Live! Value [CT4832] (rev.8,
serial:0x80271102) at 0xec00, irq 21
1 [U0x46d0x8ce ]: USB-Audio - USB Device 0x46d:0x8ce
USB Device 0x46d:0x8ce at usb-0000:00:12.1-3.2,
full speed
to identify my USB sound device
arecord -D hw:U0x46d0x8ce -d 20 test1.wav
Recording WAVE 'test1.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono
arecord: set_params:1053: Sample format non available
Available formats:
- S16_LE
that error message says U8 format isn't available from my webcam but
S16_LE is, so
arecord -f S16_LE -D hw:U0x46d0x8ce -d 20 test1.wav
arecord -f S16_LE -D hw:1,0 -d 20 test2.wav
mplayer ./test1.wav
mplayer ./test2.wav
both worked, the later is to check the mic can be referenced more
generally so it should continue to work even if I change webcams.
then I just put the text into ~/.asoundrc exactly as they said
pcm.!default {
type asym
playback.pcm {
type plug
slave.pcm "hw:0,0"
}
capture.pcm {
type plug
slave.pcm "hw:1,0"
}
}
then as root
/etc/init.d/alsa-utils restart
I already have
options snd-usb-audio index=-2
at the bottom of /etc/modprobe.d/alsa-base.conf to stop USB sound
devices becoming default.
So bingo, thanks for the help.
--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4cf71ed5.2020...@homeurl.co.uk