quinta-feira, 9 de dezembro de 2010

Twinkle: USB Headset Microphone (Fedora/Linux)

My usb heaset (Halfmman Cobra HS-87, which are the same as the ozone oxid) worked perfectly in my Fedora Core 13 (2.6.34.7-63.fc13.x86_64) KDE 4.5.3, both output(speakers) as well as the input(microphone). That was until I've tried to use it with twinkle.
Didn't have any problems getting it to work in skype, just plugged it in and it was automatically detected and added to the system.
Went to System Settings -> Multimedia -> Phono and could see it there. Gave it higher priority over the other devices, and after that it worked perfectly in my system.

The problem appeared when I tried to use it in twinkle, though I could ear perfectly, it wasn't using my headset's microphone, instead it was using my laptop's.

Since I use pulse audio (default in Fedora) I noticed that twinkle uses directly alsa. So after a litle search (not so little) I came across this thread, and it saved me =)

Since I only needed the micro to work, I created the following .asoundrc in my home directory:


pcm.usb_in {
type pulse
device alsa_input.usb-04d9_0020_832R-00-U0x4d90x20.analog-mono
hint {
description "halfmman Cobra Micro"
}
}


To find the device value use:
pactl list
And search for the device you want, which in my case was: alsa_input.usb-04d9_0020_832R-00-U0x4d90x20.analog-mono.

After that open twinkle -> Edit -> System Settings -> Audio

On the Microphone select ALSA: other device
and on the other device field put: usb_in

It should be working now!