Bottom Page

Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Change Windows Sound Output Device with Python
Hey there,

On my main PC I have several different sound output devices that I have to constantly switch between. This process is tedious, as I have to go into the windows 'Playback Devices' menu, and search through my connected devices, and then set the one I want in the moment to my systems default output. 

As a work around for this I am attempting to create a physical switch box with an Arduino Uno. Each button, when pressed, will switch my default output to the programmed device that button represents. To control the windows side of things, I am hoping to have a python script that will listen for a serial command from the Arduino, and then change the default device accordingly. 

My question is.. 
Is there a way in python to change this setting on the Window OS? 
I have researched a bunch into different libraries that may be able to help, but so far no luck. 

Any suggestions would be great.

Not sure, but possibly portaudio:
You'll have to dig into the docs.


Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Detecting USB Device Insertion on Windows 10 Atalanttore 0 87 Jan-17-2020, 02:46 PM
Last Post: Atalanttore
  Reading UDP from external device without device software ikdemartijn 2 159 Dec-03-2019, 04:29 PM
Last Post: Larz60+
  Sound activated command michaels 2 271 Sep-01-2019, 08:45 PM
Last Post: michaels
  Change Text Color Output in Python bluethundr 2 1,962 Mar-06-2019, 10:23 PM
Last Post: bluethundr
  Sound Meter dcanogi 2 563 Feb-07-2019, 03:17 PM
Last Post: dcanogi
  Confusing output from 2to3 about what files need change Moonwatcher 1 940 Dec-30-2018, 04:07 PM
Last Post: Gribouillis
  Change output of cells. Hoogoo 2 527 Nov-19-2018, 12:47 AM
Last Post: Larz60+
  Subprocess output in windows Ohmganesh83 5 2,487 Aug-20-2018, 02:32 PM
Last Post: Ohmganesh83
  Analyse sound? mzmingle 1 565 Aug-08-2018, 10:19 PM
Last Post: Larz60+
  Python on Windows 2012RC2 (with VS Code 1.22.2). Scripts not generating output. JGFMK 2 981 Apr-24-2018, 08:17 PM
Last Post: JGFMK

Forum Jump:

Users browsing this thread: 1 Guest(s)