hotkey-switch-audio-devices

Hotkey to Switch Audio Devices on Windows


Standard Windows switching between active audio devices methods are inconvenient. You need to open “Playback Devices”, select an audio device from the list and make it as default or you can also switch the device in the volume mixer window.

I switch back and forth between my headphones and computer speakers at work a lot. So I decided it was time to figure out a hotkey to do this. My coworker told me about a program called AutoHotkey, and combined with a small file it does everything I want it to. In this example below I am using F6 to switch to my computers and F7 to switch to my Logitech headphones. Also, I am running Windows 7 x64. The following tutorial should work fine on Windows 7 x32 and Windows 7 x64.

Audio Devices Hotkey

Step 1

Download and install AutoHotkey.

Step 2

During the installation, there is a x32 and x64 bit version. In this example, I am using the x64 bit version. The x32 should work fine as well. The new few screens just accept the default and click Next.

autohotkey x32 and x64

Step 3

Before launching the program you will need to download our customized AutoHotkey file. Right click and choose “Save Link As” on this file: AutoHotkey.ahk. Save the file in the root of your “My Document” folder. This is where AutoHotkey will look when it launches.

autohotkey.ahk

You can also copy the contents of the .ahk file below:

[vb]
*F6::
Run, mmsys.cpl
WinWait,Sound
ControlSend,SysListView321,{Down 4}
ControlClick,&Set Default
ControlClick,OK
return

*F7::
Run, mmsys.cpl
WinWait,Sound
ControlSend,SysListView321,{Down 3}
ControlClick,&Set Default
ControlClick,OK
return
[/vb]

Step 4

Now you need to find what order your audio devices are in. On the bottom right of your taskbar, right click on the speaker icon and click “Playback devices.”

Playback Devices

Step 5

You need to make a note of which order they are in before we go edit the AutoHotkey.ahk file. Notice that in my example, my computer speakers are 3 down from the top and my Logitech headphones are 4 down from the top.

Speakers

Step 6

Now go and open the AutoHotkey.ahk file, that is in your My Documents folder, with Notepad. You will notice I set the down number in the file to match the order of my audio device. Also, you can change the function key to something else if you like.

autohotkey

Step 7

Now launch AutoHotkey from your program files, and it will run on your taskbar.

autohotkey

Step 8

I recommend reloading the script. Right click on AutoHotKey running in your taskbar and select “Reload this script.”

autohotkey - reload script

Now you can test your hotkey by pressing your function keys. If you have everything setup correctly this will now toggle between your audio devices with one press of a button! 🙂

How to Switch Between Audio Devices in Windows 10?

To switch between audio devices in Windows 10, you can use a newer and simpler program – Audio Switcher. It’s a freeware app for audio devices, focused on the speed and ease of use. It supports both types of audio devices – playback and recording.

Download Audio Switcher from the official site. After the download is complete, open the zip archive and extract the single AudioSwitcher.exe file to a convenient location. Installation completed!

Run the executable file. The program icon will appear in the system tray. Click on the icon with the right mouse button, select Open Preferences and setup some settings.

audio switcher windows

We recommend you to tick the Start when Windows starts option. This function allows the program to automatically start when you log on to Windows. To always display the icon of the active device in the tray, check Show Default Playback Device icon in tray. Select Start minimized so that the program does not unfold at startup.

audio switcher

When you have finished configuration, open the Playback tab and specify which device will work by default. Now you can switch between headphones and speakers in just two clicks:

  • Right-click on the Audio Switcher icon in the notification area
  • Select the desired playback device from the pop-up list.

audio switcher windows 10

Audio Switcher supports the use of hot keys. Each device can be assigned its own combination or select the general one to switch between them. To assign a hotkey, just right-click the desired device and select Set Hot Key. In new window you need to specify the hotkey that you want to assign to this device.

audio switcher hotkey

Comments
  1. Posted by Fred P.
    • Posted by Brian Jackson
  2. Posted by Hannes
    • Posted by Hannes
      • Posted by Hannes
        • Posted by Dawid Dahl
          • Posted by Brian Jackson
  3. Posted by Necromas
    • Posted by McNeo
    • Posted by Zude
  4. Posted by Daan
  5. Posted by UNKNOWN TO MAN
  6. Posted by Nils
    • Posted by Nils
  7. Posted by Hazel
  8. Posted by shajith
  9. Posted by Dylan
  10. Posted by inhumanist
    • Posted by p01i
  11. Posted by Dan
  12. Posted by Asura23
  13. Posted by Gabe
  14. Posted by George
    • Posted by George
  15. Posted by dajolt
    • Posted by Brian Jackson
  16. Posted by neronix17
    • Posted by Brian Jackson
  17. Posted by Guigur
    • Posted by Brian Jackson
  18. Posted by Dan Whettam
    • Posted by Brian Jackson
  19. Posted by French noob
    • Posted by Brian Jackson
    • Posted by Paulo
  20. Posted by Paulo
  21. Posted by misiektoja
    • Posted by Brian Jackson
  22. Posted by jfflee
  23. Posted by Yakko
  24. Posted by InsanePorcupine
  25. Posted by Adam
  26. Posted by Pudergeek
  27. Posted by Donaven Snowden
  28. Posted by dizbwill
  29. Posted by Christian
  30. Posted by Aaron Throckmorton
  31. Posted by Max
  32. Posted by Max

Add Your Comment