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.


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

Run, mmsys.cpl
ControlSend,SysListView321,{Down 4}
ControlClick,&Set Default

Run, mmsys.cpl
ControlSend,SysListView321,{Down 3}
ControlClick,&Set Default

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.


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.


Step 7

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


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

  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 neronix17
    • Posted by Brian Jackson
  16. Posted by Guigur
    • Posted by Brian Jackson
  17. Posted by Dan Whettam
    • Posted by Brian Jackson
  18. Posted by Paulo
  19. Posted by misiektoja
    • Posted by Brian Jackson
  20. Posted by jfflee
    • Posted by Brian Jackson
  21. Posted by Yakko
  22. Posted by InsanePorcupine
  23. Posted by Adam
  24. Posted by Pudergeek
  25. Posted by Donaven Snowden
  26. Posted by dizbwill
  27. Posted by Christian
  28. Posted by Aaron Throckmorton
  29. Posted by Max
  30. Posted by Max

Add Your Comment