Logitech USB Desktop Microphone in Linux
May 6th, 2006So you decided to go with the logitech usb mic, and now it’s being a pain in linux. Sure, you plugged it in and it was recognized, things aren’t as bad as they used to be for us, but half of your apps aren’t using it!
First off, this guide only fixes the problem for an application that uses ALSA. OSS has its problems, and I would rather leave them behind when possible. If you are using OSS, the mic shows up as the next available /dev/dsp device, and your application may let you specificy a device for input and output seperately. With Gizmo this is done using the -x -m and -s arguments.
-x, --mixer[=/dev/?] Set the mixer audio device
-m, --mic[=/dev/?] Set the mic audio device
-s, --speaker[=/dev/?] Set the speaker audio device
If you are using Skype, their Linux Sound FAQ - ALSA may be of some help. It seems more picky about things from what i’ve seen, although I haven’t actually used it. Their forums state that ALSA support is being developed, though I didn’t noticed any progress since October.
Now, I opted to use ALSA, and things don’t seem to be quite as easy as passing a device parameter. I first tried specifying hw:1,0 as the device, but it didn’t help. A lot of snooping around to figure out how to “link” devices in my asoundrc file (which i’ve played with before, trying to get spdif out working when I first upgraded from OSS on slackware) and I’ve found this:
pcm.!default {
type plug
slave.pcm "combined"
}pcm.combined {
type asym
playback.pcm "playback"
capture.pcm "hw:1,0"
}pcm.playback {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0"
period_time 0
period_size 1024
buffer_size 4096
rate 44100
}
bindings {
0 0
1 1
}
}ctl.dmixer {
type hw
card 0
}
Put that into your ~/.asoundrc file and any applications using ALSA should pick up your mic as the default capture device, while still using your first card for playback. This of course requires that your system has two “cards”, with the microphone being second. If you have a different setup, change the device numbers.
cat /proc/asound/devices
This will list your options. The mic will only have entries for audio capture and ctl.
Now that it is working, you will most likely also want to record audio files. Podcasting has become popular, and I’ve seen Audacity reccommended multiple times. I’ve used it on numerous occasions for odd jobs, however the current situation is less than ideal. Audacity doesn’t natively support ALSA, and doesn’t let me change the default dsp device. Even if it did, I would have to choose - recording, or playback. Not both.
Things are looking forward though, it is being developed and if you need it right now just compile with
./configure --with-portaudio=v19 --without-portmixer
More information at their wiki
Since I was forced to use something new to record, I ended up finding mhWaveEdit. I am impressed with it, and love the pause recording button. I did use Audacity to edit the wave and export as ogg and mp3, however you may want to check out Rosegarden if you also do MIDI, as it is possible to record audio. I had no luck with krec and krecord, they seem to be stuck on OSS, however that may be my distribution. Kwave looked interesting, but I Haven’t had a chance to use it so far, as it was giving me buffer errors. It does see the device though!
Lastly, if you want to play with your asoundrc some more, check out the alsa documentation. There is plenty to read, And this is a good place to start. If you need oss the page mentions this method combined with aoss. I hope you’ve found this useful, and if you have anything to add feel free to email me or leave a comment.
Is your microphone a AK5370 Usb ??
I have also similar problem …
Not working with audacity neither skype …
you found out now ??
Greetz
Yes, that is the microphone I am writing about. Audacity can be made to work if you recompile, as detailed in the link to their wiki.
You can get skype to work with the alsa setup with methods such as using arts to pipe it. This is detailed at their Linux Sound Faq, also linked above.
Great post, thank you. At first, after following your indications, the microphone did not work for recording. It was interesting to find that alsamixer has an option (-c) that allows you to configure the different sound cards (0 is the default, 1 is the microphone). It was only by doing that I could correctly activate input from the USB microphone (the alsa GUI seemed to work but wasn’t in fact working). Cheers, Cosmin
Really really great solution, Josh! I’d been wrestling with this problem for a few days and all the other solutions, like Skype Hijack, didn’t work. On the other side after entering your code, I was a bit sceptic at first, everything suddenly works *perfectly*! Thanks a lot!
I’ve followed your instructions in Ubuntu 6.06, but with no luck. I can get mhwaveedit to record, when I set it to use ‘Open System’, and then use /dev/dsp1 as the sound device file, but then I can’t playback sound, and using Skype (1.3beta latest) doesn’t record any sound :(
I’ve edited the asoundrc file the way you stated. I am at a loss here- normal 3.5mm logitech headset works fine. cat prob. thing sees my AK5370, etc…
Let me also add that if I select ALSA in mhwaveedit, and have default (or hw:0,0) for playback, and hw:1,0 for recording, it says “This format is not supported by the input driver!” …. :(
Never mind. I feel like an idiot- I was editing the ROOT asoundrc file, rather than editing my normal user file with ROOt permissions.
Thanks for the awesome guide. Finally got Skype working, hurrah! :)
[…] First of all, I downloaded the (beta) source for Audacity 1.3.2 and following the helpful advice SB mics in Ubuntu here, compiled the source with: […]
Thanks, this was the article that started me on the road to getting the problem fixed.
great - I look forward to trying this out.
Would your solution work on PCLinuxOS?
Great post…I have found it very helpful. Unfortunately, I am still having problems getting my Logitech mic to work on SuSe 10.2. I have the second sound card set up, and based on /proc/asound/devices it appears to be correct. The drivers are loaded properly when I plug the mic in. However, when I try to record a .wav file with arecord using the “combined” pcm that is defined in the .asoundrc file, I get the following error: arecord: set_params:904: Sample format non available. Any thoughts? Thanks again for the great post, and any further advice that you have would be greatly appreciated.
zlgxne ldkqgtzxi aygx mctr pcqsiza xrvklo symblkd
I’ve got an Amazon gift certificate burning holes in my pocket,
and I want to get the most bang for my buck.
Enter the Secret Amazon Web Pages:
http://tinyurl.com/38sojf
This is where you’re going to find the “latest sales, rebates, and limited-time offers” from
Amazon, and you can score some pretty deep discounts if you’re a savvy shopper.
Next, there’s the special Sale link. This is open every Friday, and ONLY on Fridays.
You can find the same good discounts here as you would in hidden Deals, although some
Fridays you can really get lucky and make off like an Amazon bandit - I’ve seen discounts
there as low as 75% off sticker price.
There’s one special secret Sale link on Amazon:
http://tinyurl.com/2r7ldr
[b]This is open every Friday and ONLY on Fridays! [/b]
You can find very good discounts here, although some Fridays you can really get
lucky and make off like an Amazon bandit - I´ve seen discounts there as low as 75%
off sticker Price.
Greetings
I shall do posts and to read this forum
Nice!
Cool!
Cool…
Hi
Please prompt where it is possible to buy online viagra
Hi.
Good design, who make it?
Cool!
Welcome to my site - Myusenet-pics
drug know maker need xanax
drug know maker need xanax
Hello, I’m Googlebot
amateur sex story san amateur sex
Nice
[url=http://seo-miheeff.ru]продвижение туристических сайтов[/url] Раскрутка и управление. С момента поступления продукта в продажу и до тех пор, пока он присутствует на рынке, компания-производитель должна управлять его производством и сбытом. И в этом случае главной целью производителя является удовлетворение потребностей покупателей. Однако рынок постоянно меняется, поэтому для того, чтобы продукт продолжал пользоваться спросом, он со временем также должен меняться в соответствии с тре
бованиями рынка
subj
?
nqtMUJ hi great site thx http://peace.com
pre teen pageant gown
Sterminato archivio hard per adulti:
http://vsex.hard-core-xxx.com/n23/
no blue/clear phentermine prescription phentermine no prescription 30mg
Hello!
It is my site http://pepsik.150m.com
You call and wait your comments :)
Eat a third and drink a third and leave the remaining third of your stomach empty. Then, when you get angry, there will be sufficient room for your rage.
Hey, I’m thinking of buying this Anal Eaze lube, the cherry flavored one. Has anybody tried it? It is any good? Or let me thrown it out there, anybody have a better one to reccomend, preferably flavored. Any ideas would be great. Thanks!
thanks for the great information…
I find this blog very interesting, i will be here everyday till now. Greetings
online casino guide casino winner guide
Доброго времени суток, форумчане сайта crache.net ;)
Ответьте мне, пожалуйста, на несколько вопросов…
- какая программа умеет [b]автоматически за НЕСКОЛЬКО СЕКУНД регистрировать ящики на mail.ru[/b] и многих других почтовиках?
- какая программа умеет автоматом [b]рассылать по mamba.ru и loveplanet.ru[/b] по заданным параметрам, при этом еще поддерживая функции автоответчика?
- а также сможет разослать по форумам текст (например) “где купить валенки?”, а потом в ответ на этот текст ОТ ДРУГОГО имени и IP написать (например) “только на сайте megavalenki.ru!”?
- плюс [b]распознаёт картинки и вопросы а-ля “что написано на этой картинке?”[/b], “сколько будет 2+2?” и “какой сейчас год?” и умеет корректно на них отвечать?
- какая программа сможет разослать топики по форумам, попутно автоматически регистрироваться на них и создавая подробный отчет о проделанной работе?
- и при этом работает с разнообразными движками - [b]phpBB, VBulletin, IPB, ExBB, Icon Board, YaBB, UltimateBB[/b], множеством различных гостевых, досок и блогов?
- какую программу [b]вы МОЖЕТЕ переделать под свой вкус[/b]?
- какая программа автоматически обновляет прокси / SOCKS, обеспечивая вам полную анонимность? (достаточно просто нажать ОДНУ кнопку)
- какая программа умеет рассылать персональные сообщения всем пользователям форумов phpBB, IPB, VBulletin?
- какая программа отсортирует Вашу базу ссылок по Google PageRank?
- какая программа МАССОВО отредактирует все Ваши ранее разосланные объявления по форумам?
- и при этом еще регулярно обновляется и совершенствуется.
[u]Ответ ОДИН:[/u] всё это и многое другое под силу программному комплексу [b][u]XRumer 4.085 Platinum Edition + Hrefer 2.85[/u][/b]
Данный комплекс имеет множество отзывов на авторитетных источниках (Washington Post, Wikipedia и т.п.), имеет историю активного развития более 3-х лет.
Just Google! ;)
См. также: [b]белое СЕО, хрумер 2.9 устарел, софт для СЕО, ППЦ, XRumer 3.0 устарел, XRumer, white SEO, рефспам, постинг, PPC, мощная спамилка, doorways, массовые рассылки, XRumer forever, рассылка по форумам, программы для СЕО, распознавание графической защиты, софт для SEO, хрумер 3.0 устарел, постинг по блогам, XRumer 2.9 устарел, программы для SEO, распознавание текстовой защиты, black SEO, SEO, хрумер, чёрное СЕО, XRumer Platinum, дорвеи, линкспам, суперсофт для SEO, СЕО[/b]
icontech lab hydracephalic-brain
lesbian isle pussy fisher isle lesbian