PDA

View Full Version : -=Instructions on Using a USB Mic or Linux TS in General=-


unconnected
25-09-2008, 21:03
http://blog.netflowdevelopments.com/2009/02/25/setting-up-a-usb-mic-to-work-with-ubuntu-and-specifically-teamspeak/

The first step to successfully using TS linux from my experience is DON'T. Using the Windows version of TS via Wine seems to work infinitely better than the 'beating-your-head-against-a-wall' experience that is Linux Teamspeak. This thread will mainly detail setting up a USB mic for Teamspeak but I imagine the theory in there could help anyone in their situation. I've posted it in a reply but I feel this deserves it's own thread as it was the culmination of days of trial and error attempts at geting TeamSpeak to work. A warning that I am using Ubuntu 8.04 Hardy Heron at the time of this posting and will make no claims that this will work 100% for the other distro's but hopefully it does.

The first order of business before doing anything is to make sure that your PulseAudio is the latest version, so head over to http://ubuntuforums.org/showpost.php?p=5587712&postcount=472 and follow those directions to the T.. This may seem a bit unrelated as we will be messing with ALSA a lot to set up TS properly however these new and blessed updates for Pulse allow you to have Wine TS running while playing music/games and all that other stuff.. It also will allow you to have flash fullscreen and just solve 90% of your linux(ubuntu in particular) problems. After you have that installed go into system/preferences/sound and change everything to to either autodetect of PulseAudio except if your input device is a USB mic then you should keep it at that. I also have the Mixer Tracks set to Alsa(as I don't have a choice)

Now that that is taken care of lets get down to setting up Team Speak in Wine. I am going on the general assumption that you know how to the Synaptic Package Manager works, if not then perhaps a few more weeks playing with linux might be in order before you proceed.

First of all you need to run the windows version of TS through WINE as the linux version doesn't allow for easy selection of input devices and you may as well give up now before wasting the days that I have.

So get WINE installed if you haven't already
then go and download the windows version of TS2(http://www.teamspeak.com/?page=downloads) and install it through Wine

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.

So:

go into your home directory (cd ~) and create a file called ".asoundrc" minus the quotations of course with your favorite editor ( vi ./.asoundrc )
The .asoundrc file in your home directory acts as kind of a configuration file that is used to override default settings
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:

pcm.!default {
type asym
playback.pcm {
type plug
slave.pcm "hw:0,0"
}
capture.pcm {
type plug
slave.pcm "hw:2,0"
}
}


***Something to note: "hw:0,0" and "hw:2,0" are MY card locations for my soundblaster and my usb mic. Yours might be different. ***

In order to find out what your desired output device is you type the following in terminal:

"aplay -l" and you should receive and output something like this:


**** List of PLAYBACK Hardware Devices ****
card 0: CA0106 [CA0106], device 0: ca0106 [CA0106]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: CA0106 [CA0106], device 1: ca0106 [CA0106]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: CA0106 [CA0106], device 2: ca0106 [CA0106]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: CA0106 [CA0106], device 3: ca0106 [CA0106]
Subdevices: 1/1
Subdevice #0: subdevice #0


Obviously My card is 0 as that is the only one that shows up, so I use "hw:0,0" you need to make extra sure what yours is and use that.

now to find my capture device I type:
"arecord -l" and my output should be something like this:

**** List of CAPTURE Hardware Devices ****
card 0: CA0106 [CA0106], device 0: ca0106 [CA0106]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: CA0106 [CA0106], device 1: ca0106 [CA0106]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: CA0106 [CA0106], device 2: ca0106 [CA0106]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: CA0106 [CA0106], device 3: ca0106 [CA0106]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: default [AK5370 ], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0

Now we already know that Card 0 is my soundblaster, which I don'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 "hw:2,0" . Yours could be different so edit your .asoundrc file accodingly.

I quickly check to make sure WINE was seeing my usb mic by running the command 'winecfg' and going into Audio and making sure that the ALSA WAVE IN device show up as USB Audio.

I have Hardware Acceleration set to Emulation as well as Driver Emulation checked on, not sure if it matters but it is on for me and works.

Now this is literally all I needed to do. Much to my complete shock I can now run TS2 (windows version) through WINE just fine and dandy. I hope this helps someone else out there and saves them the time and energy.

maman
01-10-2008, 08:30
i have USB Phone Corega CG-USBPH01
http://www.corega-asia.com/products/peripherals/USBPH01.php

USB Phone Corega CG-USBPH01 work fine in TeamSpeak 2 Client for Linux
my Linux Distro is Simply Mepis 7.0 64bit

my config Sound Devices on TeamSpeak Client is
set to /dev/dsp1
on Settings - Options
Sound Devices
select Other
and type /dev/dsp1

thx

| m | a | m | a | n |