Skype hack for Mac: restore Auto Gain Control and Echo Cancellation
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:
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:
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.









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
Posted by: Anton P. Nym | April 24, 2007 at 03:25 PM
Steve, this is totally different issue that is well known on MacBook Pros.
Posted by: James Kendrick | April 24, 2007 at 04:53 PM
Thanks Kevin - this has been a real issue for me. Good detective work!
Posted by: Marc Orchant | April 25, 2007 at 07:21 AM
Oh. Drat. Well, I'll keep looking then.
-- Steve
Posted by: Anton P. Nym | April 25, 2007 at 08:56 AM
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
Posted by: John | May 10, 2007 at 09:45 PM
i have the same problem with windows messenger, could this solution also work in that?
Posted by: steph | May 20, 2007 at 07:41 PM
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!
Posted by: Ben | August 12, 2007 at 06:27 PM
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?
Posted by: Andy Merrett | October 20, 2007 at 11:14 AM
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.
Posted by: Adam | January 10, 2008 at 12:18 AM