Toggles the default audio output from speakers to headphones and vice versa. Different outputs are customizable inside the python file
Note: This script is only tested on Windows 11. It also downloads the NirCmd utility to switch audio devices.
pip install -r requirements.txt
python main.py
- Download the MinGW compiler from here
- Extract the zip file to C:\MinGW
- Add C:\MinGW\bin to your PATH environment variable
- Run
g++ run.cpp -o toggle-audio.exe "-Wl,-subsystem,windows"
- Create a shortcut to the executable and place it on your desktop
This project was created for personal use. Feel free to use it however you want.