/audio-toggler

Toggles audio from speakers to headphones

Primary LanguagePython

Audio Toggler

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.

Installation

pip install -r requirements.txt

Usage

python main.py

Creating a shortcut

  1. Download the MinGW compiler from here
  2. Extract the zip file to C:\MinGW
  3. Add C:\MinGW\bin to your PATH environment variable
  4. Run g++ run.cpp -o toggle-audio.exe "-Wl,-subsystem,windows"
  5. 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.