We’ve moved!

You will be redirected to our new home in five seconds. If not, click here.

GigaOM Network: GigaOM | Earth2Tech | jkOnTheRun | NewTeeVee | OStatic | TheAppleBlog | WebWorkerDaily | Jobs Live Events | About | Contact

April 24, 2007

Skype hack for Mac: restore Auto Gain Control and Echo Cancellation

Shared_xml_pre_2 The rumors are true; I'm now addicted to reading through Skype forums. After last week's nugget on how to enable VGA res on an integrated iSight for Skype video calls, I decided to tackle another issue. Ever since I started Skyping on a Mac, I've had a terrible problem that basically will not allow me to use the integrated microphone for Skype calls. The issue revolves around the input levels for the mic: on a Skype call, the levels would quickly jump up on their own. The result: a constant feedback echo or loop on the call because the higher mic levels pick up the audio from the speakers; the conversation just cycles until I mute the mic. After poring through the forums, it turns out I wasn't alone. Even better yet, I found a potential fix and got it to work after a little more XML tweaking....

It appears that the root cause of the problem is directly related to audio features in Skype: Automatic Gain Control and Echo Cancellation. The main issue is due to the AGC, since that's the mechanism that's overriding the mic levels in the system sound settings. The problem is: these two functions are nowhere to be found in the Skype GUI! I've checked both versions 2.5 and the 2.6 beta for Mac, but they somehow got overlooked.

Luckily, even though the configuration options aren't in the GUI, the functionality is still there if you know how to use it. First up: close your Skype application. Next, you'll need to find your "shared.xml" file for Skype, which typically resides at /Users/Your Account/Library/Application Support/Skype. I used TextEdit to open the XML file and went to the "VoiceEng" tags. Here's how this section would typically appear:

Shared_xml_pre

The number in the MicVolume tag will vary and will be a number between 0 (muted) and 255 (highest input level). Even though there's no reference here to either the Automatic Gain Control or the Echo Cancellation, both are apparently on by default, which is causing my issue. The fix is to add these tags for both, along with an element value of zero:

Shared_xml_post

Once you've made these changes and saved the .xml file, you're good to go with Skype again. At this point, you can fully control the microphone input levels through the System Preferences, Sound system settings. Why these functions were dropped from the Skype GUI is beyond me, but I'm thrilled that I don't have to use my USB headset for each and every Skype call.

As info: this fix was originally devised for Windows Skype clients, so if you're running the Windows version and don't see these two configuration options, this should work for you as well.

Enjoy this post? Receive more jkOnTheRun content for FREE by subscribing to the RSS feed!

Comments

I have run into "echo" problems on my Q1's mic array in the past; my workaround was to plug in headphones when it was cropping up, cutting the speakers out of the issue, which works but is hardly elegant.

I'll have to have a look at that later.

-- Steve

Steve, this is totally different issue that is well known on MacBook Pros.

Thanks Kevin - this has been a real issue for me. Good detective work!

Oh. Drat. Well, I'll keep looking then.

-- Steve

Hi - I just bought a new 20" IMac and have been trying to use Skype. My friends can see the video but can't hear me. I tried adjusting the volume for the built in Mic several times --but had no luck. I even tried your "echo" fix noted above with the shared.xml but still they can't hear me. I suspect its something very basic that I am missing. Hoping that I do not have to buy a headset.

Any thoughts?

I am running skype version 2.5.0.85...

Thanks - John

i have the same problem with windows messenger, could this solution also work in that?

Awesome tip! Totally worked for me. When calling land lines or cell phones using the built in mic on my macbook, people would always say they couldn't hear me, etc. So I resorted to getting an external USB mic, used your tip, now people are saying it sounds much better. Thanks!

Thanks for this, will try it.

As a request, could you put code snippets in as real text (maybe using the code HTML) rather than an image?

Great work. Just purchased a USB mic after trying every other type of USB phone with intel based mac mini and had all sorts of dramas with the volume and AGC. Tried this tip and 'hey presto' Skype is now perfect on the Mac. Great work Thanks.

Comments are temporarily disabled for site maintenance and will return at 6 PM PDT.

 

RSS and Mobile-Friendly View

Contributors

Kevin C. Tofel

James Kendrick

Kevin's gear   JK's gear

Awards

Microsoft MVP Awardees

CNET100 2004Weblog Awards
2004ReadersChoice 2004_BoardOfExperts
Powered by TypePad
Member since 05/2004

Copyright Notice


  • Copyright 2008 The GigaOM Network. All rights reserved. The content in this RSS feed, as well as the content presented on the web pages of the blog, is provided for your personal non-commercial use only and may not be republished in whole or in part without the express written or verbal consent of the publisher. All rights are reserved.
StatCounter