Repository navigation
CLI Reference
sinaryorg edited this page Nov 7, 2026
·
1 revision
The standalone winaudio CLI executable provides per-process audio capture, session routing, monitoring, and volume control.
List all running applications currently registered with Windows WASAPI audio sessions:
winaudio listOutput Details:
- PID: Process ID of the audio-playing process.
-
Process Name: Executable name (e.g.
spotify.exe,chrome.exe). -
Host App: Host executable (e.g.
msedgewebview2.exemapped to host application). - Display Name / Window Title: Window title or application name.
- Volume & Mute: Current volume percentage and mute status.
-
State:
Active,Inactive, orExpired.
Capture audio from specific processes, multiple applications, or the entire desktop into a standard 16-bit PCM WAV file.
winaudio record [TARGET_OPTIONS] [DSP_OPTIONS] -o <OUTPUT.WAV>-
--name <NAME>: Target by executable name (e.g.--name spotify.exeor--name Riff). -
--pid <PID>: Target by numerical process ID (e.g.--pid 12344). -
--window <TITLE>: Target by window title substring (e.g.--window "Meeting"). -
--all: Capture all audio playing across the entire PC (Master Loopback). -
--exclude <NAMES>: Capture all system audio except specific applications (e.g.--exclude "steam.exe,discord.exe").
Provide comma-separated names to capture and mix multiple apps simultaneously:
winaudio record --name "spotify.exe,chrome.exe" -o mixed_audio.wav-
--duration <SECONDS>: Record for a specified number of seconds:winaudio record --name spotify.exe --duration 10 -o spotify_10s.wav -
Continuous Recording (Omit
--duration): If--durationis omitted,winaudiorecords indefinitely with a live timer. When you pressCtrl+C, the capture thread stops cleanly and finalizes the WAV header:winaudio record --name discord.exe -o live_meeting.wav # Press Ctrl+C at any time to safely save and exit
-
-o, --output <PATH>: Destination WAV file path (defaults tooutput.wav). -
-s, --sample-rate <HZ>: Output sample rate in Hz (e.g.16000,44100,48000). Defaults to48000. -
-c, --channels <COUNT>: Channel count:1for mono,2for stereo. Defaults to2. -
--no-tree: Disables dynamic child process tree walking (only captures the exact PID/process specified).
Inspect and modify audio session volume and mute states without opening Windows Sound Settings.
Set volume level as a float between 0.0 (silent) and 1.0 (100%):
# Set volume by process name
winaudio volume set --name spotify.exe 0.75
# Set volume by PID
winaudio volume set --pid 8420 0.50# Mute an application
winaudio volume mute --name zoom.exe true
# Unmute an application
winaudio volume mute --name zoom.exe falseDisplay all available runnable commands with copy-pasteable examples directly in your terminal:
winaudio commandsWinAudio — Developed by SINARY™. Dual-licensed under MIT and Apache-2.0.