O'Reilly logo

Skype Hacks by Andrew Sheppard

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hack #91. Hot-Switch Among Sound Devices

By attaching a script to a hotkey sequence, you can hot-switch among the sound devices used by Skype—even during a call!

Works with: Windows, Linux, and Mac OS X versions of Skype.

You might want to switch from one sound device to another for many reasons. For instance, you might want to switch from a microphone and speaker to a handset for privacy from eavesdroppers during a call, or you might have a handset but you like to play your voicemail over a speaker. The scripts in this hack will show you how to hot-switch among sound devices with fast and easy hotkey sequences.

There are two ways of switching sound devices in Skype by means of scripts. First, you can drive its GUI interface to do the job, which is often ugly but avoids having to deal with the Skype API. The second method is to drive the Skype API from a script, which, when possible, is a little cleaner and less error prone. I'll present both methods in this hack. It's your choice as to what works best for your setup.

In the case of scripts that drive the Skype GUI, in effect you will simply have the script drive those interactions with Skype that you would otherwise do by hand. You will save yourself a world of frustration if, when writing these types of script, you have a notepad and pencil close at hand. Jot down your steps, no matter how small, so that when it comes time to replay them in a script, no steps are missed. Missing a single step in a script may mean that your script ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required