A simple Python utility for quickly switching between two preset audio output levels in Windows 11 — perfect for movie watching when dialog is quiet but action scenes are loud.
Instead of fiddling with the system volume slider, press a key or run the script to instantly toggle between your chosen low and high volume levels.
- Two preset levels — define your own "low" and "high" master volume percentages.
- Instant toggle — switch between levels without opening the Windows sound menu.
- Saves your preferences — remembers your chosen levels between runs.
- Works system-wide — affects the main Windows audio output, not just one app.
- Windows 11 (may also work on Windows 10)
- Python 3.8+
- pycaw (Python Core Audio Windows bindings)
Install dependencies:
pip install pycaw comtypes- Clone or download this repository:
git clone https://github.com/YourUsername/quick-volume-toggle.git cd quick-volume-toggle - Run the script:
python volume_toggle.py
- Follow prompts to set your preferred "low" and "high" volume levels.
- Press the toggle key or re-run the script to switch between levels.
If you set:
- High volume:
60% - Low volume:
25%
Running the script will flip between these two instantly — no more hunting for the Windows volume slider.
- Works best when run in the background or bound to a global hotkey (optional extra feature).
- This script uses
pycawto directly interface with Windows Core Audio, so no extra apps or admin rights are needed.
This project is licensed under the MIT License — see the LICENSE file for details.