Sam van Lieshout

AudioSwitcher




AudioSwitcher allows the user to programmatically control the default audio device of the PC. Please note that it has only been tested on Windows 8 & 10.

Download link - 76kB
9eabb60728d81969446d343f1e81c449 (md5)
3cd518d454656020430754e9a035aa43b88abbed (sha1)


Using AudioSwitcher
> ./AudioSwitcher.exe
Listing Devices...
{0.0.0.00000000}.{0f4f2e3e-04bb-438a-a055-ef3a0047c364} - Speakers (Realtek High Definition Audio)
{0.0.0.00000000}.{c50530ba-9377-4e80-b854-fe4e3bf1f904} - Speakers (ASUS Xonar Essence ST Audio Device) (default)
{0.0.0.00000000}.{cf11da7d-5d01-4b47-80b2-d325dcd05b7f} - NVIDIA HDMI Output (Port 0) (NVIDIA High Definition Audio)

To set device to default identify the guid e.g. '{...}.{......}'
Execute with guid as first argument (AudioSwitcher.exe {...}.{......})
Or specify two guids and AudioSwitcher.exe will toggle between them.

The audio devices are listed with their guid and friendly name, and the current default audio device is annotated.

An audio device can either be explicitly set, or two devices can be specified and AudioSwitcher will toggle between them.
> ./AudioSwitcher.exe {0.0.0.00000000}.{0f4f2e3e-04bb-438a-a055-ef3a0047c364}
Updating default playback device...
Set Speakers (Realtek High Definition Audio) as the default output.

For two devices
> ./AudioSwitcher.exe {0.0.0.00000000}.{0f4f2e3e-04bb-438a-a055-ef3a0047c364} {0.0.0.00000000}.{c50530ba-9377-4e80-b854-fe4e3bf1f904}
Updating default playback device...
Set Speakers (Realtek High Definition Audio) as the default output.

If neither audio device is the default, the first one will be selected.