A tool built by Rust that can switch default audio playback device on windows.
Execute it directly will list the active audio playback devices and you can input an index to switch to a the specified device. PS D:\code\AudioSwitch\target\debug> .\audio_switch.exe
* 0 - Speakers (High Definition Audio Device)
1 - Headset Earphone (Sennheiser BTD 800 USB)
Please input the index of above devices which you want to switch to:
1
Switched to your selected device:
0 - Speakers (High Definition Audio Device)
* 1 - Headset Earphone (Sennheiser BTD 800 USB)
Execute it with a argument switch
. It will switch to next device.
PS D:\code\AudioSwitch\target\debug> .\audio_switch.exe switch
0 - Speakers (High Definition Audio Device)
* 1 - Headset Earphone (Sennheiser BTD 800 USB)
PS D:\code\AudioSwitch\target\debug> .\audio_switch.exe switch
* 0 - Speakers (High Definition Audio Device)
1 - Headset Earphone (Sennheiser BTD 800 USB)
Execute with an addition argument showmsg
. It will popup a windows message box to show which device is currently in use after switching.
Example:
PS D:\code\AudioSwitch\target\debug> .\audio_switch.exe showmsg
PS D:\code\AudioSwitch\target\debug> .\audio_switch.exe switch showmsg
You can also create a shortcut to the command and pin it to your start menu or taskbar for easily switch. Or bind the command to some hotkey tool.