<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Netflow Developments &#187; microphone</title>
	<atom:link href="http://blog.netflowdevelopments.com/tag/microphone/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.netflowdevelopments.com</link>
	<description>The latest and greatest happenings in the world of Science, Technology and everything else Geek</description>
	<lastBuildDate>Tue, 24 Aug 2010 03:28:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Setting up a USB mic to work with Ubuntu, and specifically Teamspeak</title>
		<link>http://blog.netflowdevelopments.com/2009/02/25/setting-up-a-usb-mic-to-work-with-ubuntu-and-specifically-teamspeak/</link>
		<comments>http://blog.netflowdevelopments.com/2009/02/25/setting-up-a-usb-mic-to-work-with-ubuntu-and-specifically-teamspeak/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 01:12:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Random Musings]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[alsa]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[microphone]]></category>
		<category><![CDATA[pulseaudio]]></category>
		<category><![CDATA[teamspeak]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[usb]]></category>
		<category><![CDATA[usb mic]]></category>

		<guid isPermaLink="false">http://blog.netflowdevelopments.com/2009/02/25/setting-up-a-usb-mic-to-work-with-ubuntu-and-specifically-teamspeak/</guid>
		<description><![CDATA[Alright so you have a USB mic and Ubuntu is being a bitch about it.  Meaning it probably is thinking that your primary input device is in your soudn card somewhere as apposed to a USB port.. How on earth do we tell get Ubuntu to use the USB port instead of the Soundcard?  We&#8217;ll [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" title="ubuntu" src="http://i.iinfo.cz/urs/UbuntuLogo-114916011278920.png" alt="" width="287" height="289" />Alright so you have a USB mic and Ubuntu is being a bitch about it.  Meaning it probably is thinking that your primary input device is in your soudn card somewhere as apposed to a USB port.. How on earth do we tell get Ubuntu to use the USB port instead of the Soundcard?  We&#8217;ll I&#8217;m glad you asked because coincidentally that is what I&#8217;ll be going over today <img src='http://blog.netflowdevelopments.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>First thing first, for most all applications with the exception of those running in WINE, you can to get your butt over to this thread: <a href="http://ubuntuforums.org/showthread.php?t=789578">http://ubuntuforums.org/showthread.php?t=789578</a> and get PulseAudio installed.. Pulse is the key to running a proper sound server in Ubuntu(as long as you can get it running properly &#8211; something that took me weeks)</p>
<p>The key I found to making sure that pulse works properly in skype with multiple options for inputs is to make sure that in /system/preferences/sound you have everything on auto detect except for the Sound Capture &#8211; which is set to Pulse and that your Mixer track is set to ALSA PCM on dmix via DMA PulseAudio Mixer.</p>
<p>The other thing I found was that you NEED to make sure that your ~/.asoundrc file is blank.  This will become key as in the latter part of this post I will show you that you need to fill that same file with a bunch of good stuff if you want to run a USB mic in WINE appz.</p>
<p>So for a lot of you that probably does it for USB mics and Ubuntu.</p>
<p>Now for the rest of you running games and appz in WINE the story is a little different.  This is where my struggles with learning how to get audio properly working in a linux environment when from taxing to hellish.  First a word of advice to all of you wanting to use TeamSpeak and ubuntu with a USB mic or headset &#8211; USE WINE and the Windows version.  don&#8217;t even bother with the linux version as you will have days and weeks of your life sucked away.  It just doesn&#8217;t work</p>
<p>For some reason, at least for me WINE and pulse do NOT mix very well when it comes to the input side of things.  So when I want to use an ingame chat or Teamspeak the first thing I need to do is to shut down Pulse and rely soley on ALSA.  Now this means that a lot of the nice convenient mixer stuff that pulse does needs to be done manually. I posted all this up in the<a href="http://forum.teamspeak.com/showthread.php?t=43236" target="_blank"> Teamspeak discussion forums</a> and but I&#8217;ll save you the trouble of going there and copy it here as well</p>
<p>Now from this point onwards I am going to assume you are using ALSA , if not then you have your own google adventure to go on.</p>
<p>So:</p>
<p>go into your home directory (cd ~) and create a file called &#8220;.asoundrc&#8221; minus the quotations of course with your favorite editor ( vi ./.asoundrc ) if it doesn&#8217;t exist already.. If it does you need to make a backup of it and clear it all to start fresh<br />
The .asoundrc file in your home directory acts as kind of a configuration file that is used to override default settings<br />
Our goal here is to make our default capture device our USB mic and NOT our sound card, this is accomplished by inserting the following text into the .asoundrc file:</p>
<pre>pcm.!default {
        type asym
        playback.pcm {
                type plug
                slave.pcm "hw:0,0"
        }
        capture.pcm {
                type plug
                slave.pcm "hw:1,0"
        }
}</pre>
<p>***Something to note: &#8220;hw:0,0&#8243; and &#8220;hw:2,0&#8243; are MY card locations for my soundblaster and my usb mic.  <strong>Yours might be different.</strong> ***</p>
<p>In order to find out what your desired output device is you type the following in terminal:</p>
<p><strong>&#8220;aplay -l&#8221;</strong> and you should receive and output something like this:</p>
<p>**** List of PLAYBACK Hardware Devices ****<br />
card 0: CA0106 [CA0106], device 0: ca0106 [CA0106]<br />
Subdevices: 1/1<br />
Subdevice #0: subdevice #0<br />
card 0: CA0106 [CA0106], device 1: ca0106 [CA0106]<br />
Subdevices: 1/1<br />
Subdevice #0: subdevice #0<br />
card 0: CA0106 [CA0106], device 2: ca0106 [CA0106]<br />
Subdevices: 1/1<br />
Subdevice #0: subdevice #0<br />
card 0: CA0106 [CA0106], device 3: ca0106 [CA0106]<br />
Subdevices: 1/1<br />
Subdevice #0: subdevice #0</p>
<p>Obviously My card is 0 as that is the only one that shows up, so I use <strong>&#8220;hw:0,0&#8243;</strong> you need to make extra sure what yours is and use that.</p>
<p>now to find my capture device I type:<br />
<strong>&#8220;arecord -l&#8221;</strong> and my output should be something like this:</p>
<p>**** List of CAPTURE Hardware Devices ****<br />
card 0: CA0106 [CA0106], device 0: ca0106 [CA0106]<br />
Subdevices: 1/1<br />
Subdevice #0: subdevice #0<br />
card 0: CA0106 [CA0106], device 1: ca0106 [CA0106]<br />
Subdevices: 1/1<br />
Subdevice #0: subdevice #0<br />
card 0: CA0106 [CA0106], device 2: ca0106 [CA0106]<br />
Subdevices: 1/1<br />
Subdevice #0: subdevice #0<br />
card 0: CA0106 [CA0106], device 3: ca0106 [CA0106]<br />
Subdevices: 1/1<br />
Subdevice #0: subdevice #0<br />
card 2: default [AK5370 ], device 0: USB Audio [USB Audio]<br />
Subdevices: 1/1<br />
Subdevice #0: subdevice #0</p>
<p>Now we already know that Card 0 is my soundblaster, which I don&#8217;t want to use, so we can rule that out.. The only other option(which is conveniently labeled USB Audio) is Card 2 so that means I used <strong>&#8220;hw:2,0&#8243;</strong> . <strong>Yours could be different</strong> so edit your .asoundrc file accodingly.</p>
<p>I quickly check to make sure WINE was seeing my usb mic by running the command <strong>&#8216;winecfg&#8217;</strong> and going into Audio and making sure that the <strong>ALSA WAVE IN</strong> device show up as <strong>USB Audio.</strong></p>
<p>I have Hardware Acceleration set to <strong>Emulation</strong> as well as <strong>Driver Emulation checked on</strong>, not sure if it matters but it is on for me and works.</p>
<p>So there you have it, easy peasy!  Well it is easy to do but figuring this out with next to no documentation on this specific subject was a bitch..Hope this helped <img src='http://blog.netflowdevelopments.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>After going through the same problem again and the above solution wasn&#8217;t working all that hot for whatever reason.</p>
<p>pcm.!default {<br />
type plug<br />
slave.pcm &#8220;combined&#8221;<br />
}</p>
<p>pcm.combined {<br />
type asym<br />
playback.pcm &#8220;playback&#8221;<br />
capture.pcm &#8220;hw:1,0&#8243;<br />
}</p>
<p>pcm.playback {<br />
type dmix<br />
ipc_key 1024<br />
slave {<br />
pcm &#8220;hw:1,0&#8243;<br />
period_time 0<br />
period_size 1024<br />
buffer_size 4096<br />
rate 44100<br />
}<br />
bindings {<br />
0 0<br />
1 1<br />
}<br />
}</p>
<p>ctl.dmixer {<br />
type hw<br />
card 1<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.netflowdevelopments.com/2009/02/25/setting-up-a-usb-mic-to-work-with-ubuntu-and-specifically-teamspeak/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
