jamiesanson / windows-audio-switcher

Simple python script which switches audio devices on serial message from attached Arduino or other serial device

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

windows-audio-switcher

Simple python script which cycles through audio devices on serial message from attached Arduino or other serial device.

How to run:

  • Change path in Audio_switcher.bat to appropriate path and put in Windows autostart folder.
  • Ensure NirCMD.exe is in the appropriate directory.
  • Update serial_port to the port in use by your serial device.
  • Update device names in serial_listener.py if needed. Add as many as you want to cycle though.

button_listen.ino is a simple example of how to connect a button to an arduino and send the required serial on a rising voltage edge

Uses NirCMD for access to Windows default audio device switching - http://www.nirsoft.net/utils/nircmd.html

About

Simple python script which switches audio devices on serial message from attached Arduino or other serial device


Languages

Language:Python 80.0%Language:Arduino 16.6%Language:Batchfile 3.4%