Windows – Quicker way to swap microphones & speakers in Windows 7

audiomicrophonespeakerswindows 7

I have a headset with a built-in microphone, and a set of speakers with a Blue Yeti microphone, all connected to a Windows 7 PC.

I'd like to be able to switch between the headset mic/speakers and the Yeti mic & speakers without having to go into the Sound options and manually swap out the default audio device and default communications device.

I've Googled for software to do this, but haven't found any results that work for microphones/recording devices. Is there software that'll do this, or is this something I'll have to look into writing for myself?

Best Answer

Nircmd's setdefaultsounddevice command should help you:

nircmd setdefaultsounddevice [Device Name] {Role}

Set the default sound device on Windows 7/Vista/2008. The [Device Name] is the name of the device, as it appears in the sound devices list of Windows, for example: Speakers, Line In, Microphone, and so on...

The {Role} parameter is optional and may countain one of the following values: 0 for Console (the default value), 1 for Multimedia, and 2 for Communications.

Examples:

setdefaultsounddevice "Line In"
setdefaultsounddevice "Microphone" 2

You can easily create a shortcut for this manually or using either cmdshortcut or cmdshortcutkey.

This AutoHotkey forum thread also contains scripts that you might find useful.

Finally, Set Sound Device is a compiled AutoIt script that helps you do the same thing:

SSD enables you to change the default Sound Device for Win7 (works maybe for Vista too, but this is untested) via the commandline. To call SSD from the commandline, the syntax is ‘SSD.exe #’ (where # is the number of the Sound Device to select from the list,’Select Default’ dropdown box must be enabled to make device selectable).

1

Related Question