Audio WASAPI
Context: $ARGUMENTS
Quick start
- List all audio endpoints: → Step 1 (
winaudio.py list-devices) - Check current default: → Step 2 (
winaudio.py get-default) - Change default output/input/communications: → Step 3 (
winaudio.py set-default) - Mute / unmute / change volume: → Step 4 (
winaudio.py mute/unmute/volume) - Check if exclusive mode is allowed on a device: → Step 5 (
winaudio.py exclusive-test) - Install VB-Cable virtual cable: → Step 6 (
winaudio.py vbcable-install) - Set up VoiceMeeter virtual mixer: → Step 7 (
winaudio.py voicemeeter-config)
When to use
- User is on Windows and needs terminal / PowerShell-driven audio control.
- User wants to change the default playback/recording/communications device
without clicking through Sound settings.
- User wants bit-perfect exclusive-mode output for audiophile playback, or to
diagnose why an app can't grab the device in exclusive mode.
- User wants to install a virtual audio cable (VB-Cable, VoiceMeeter) to route
system audio into OBS / streaming tools.
- User is debugging a shared-mode vs exclusive-mode mismatch (pops, silence,
format negotiation errors).
Not for: macOS (use audio-coreaudio), Linux (use audio-pipewire).
The script exits 2 with a helpful message if run on non-Windows.