Hotkey to swap between default speakers and usb headset


  1. Posts : 142
    Windows 10
       #1

    Hotkey to swap between default speakers and usb headset


    Win10 playback devices will not let me use both devices to hear thru. Only the device selected as 'default' will push sound out. So, I am looking for a way to simply switch devices, a hotkey, shortcut, or even a Powershell script. It would be cool to have it on the context menu ( right click) as well.

    At this point I'll take anything other than a 3rd party program, but wont rule it out as a very last resort.


    So I found this > GitHub - frgnca/AudioDeviceCmdlets: AudioDeviceCmdlets is a suite of PowerShell Cmdlets to control audio devices on Windows

    it works but I have no idea how to make a desktop shortcut.

    I need 2 shortcuts one for Set-AudioDevice 1 and Set-AudioDevice 2
    to swap outputs
    Last edited by DTG1; 05 Jun 2020 at 18:16.
      My Computer

  2.   My Computers


  3. HeM
    Posts : 378
    Win 10 Pro x64 v.21Η1
       #3

    DTG1 said:
    Win10 playback devices will not let me use both devices to hear thru. Only the device selected as 'default' will push sound out...
    Go to Control panel / Sound / Recording tab, select "Stereo mix" (if exists) as default device, then open its Properties / Listen tab, check "Listen to this device" and select desired output. On Playback tab set your speakers as default. By this way, you should listen to both devices together, perhaps with a delay.

    Another, complicated but better way is to use Virtual Audio Cable (paid, Lite=free) with its utilities that let you have as many devices as you like, playing together with no delay but you have to set them up everytime you want to listen to them.

    ...So, I am looking for a way to simply switch devices, a hotkey, shortcut, or even a Powershell script. It would be cool to have it on the context menu ( right click) as well. ...I need 2 shortcuts one for Set-AudioDevice 1 and Set-AudioDevice 2 to swap outputs
    I think, it's not so difficult to click on Taskbar speaker icon and select the desired output device (2 clicks) avoiding scripts, shortcuts or 3rd party apps but you know better...
    Last edited by HeM; 06 Jun 2020 at 09:43.
      My Computer


  4. Posts : 142
    Windows 10
    Thread Starter
       #4

    Sorry @HeM , you misunderstand what is wanted, but thanks for the canned style reply.

    @dalchina yep figured out Powershell is the easiest method for this. I havent had enough time yet to research how to make a POSH shortcut yet.
      My Computer


  5. HeM
    Posts : 378
    Win 10 Pro x64 v.21Η1
       #5

    DTG1 said:
    Sorry @HeM , you misunderstand what is wanted, but thanks for the canned style reply. ...
    You're very welcome and sorry for misunderstanding(?)..!

    I love 'POSH' style, too. I've got a 10 meters long German machine where in one edge I drop a nut and from the other edge, I take it broken...

    Good luck!
      My Computer


  6. Posts : 142
    Windows 10
    Thread Starter
       #6

    so the answer to POSH shortcut commands using the above ps1 script is to create a new shortcut with the following target

    C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe Set-AudioDevice 2
    this sets my audio output to the headset, '1' would be desktop speakers.

    Works as needed now.
      My Computer

  7. dalchina's Avatar
    Posts : 31,271
    Win 10 Pro (1903)
       #7

    Sounds great!
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 19:29.
Find Us




Windows 10 Forums