Skip to content

aos audio

Volume, mute, and output/input devices

5 commands. Run aos audio --help for the same list from the binary, or see every group.

Output volume and mute for the system sound device. volume with no argument prints the level 0 to 100; with a number it sets it, and +n or -n nudges it. mute prints or changes the mute state. These work without a display, so they are fine over SSH. devices lists every output and input device with the defaults marked; output and input print the current default, or switch it by name, a unique part of the name, or id (an ambiguous name is refused with the candidates).

List output and input sound devices, marking the defaults

Under WSL / SSH: runs on the Windows host (the machine with the screen). How the host works

Terminal window
aos audio devices [--json]
flag values meaning
--json Optional
Terminal window
aos audio devices
aos audio devices --json

Print the default input device, or switch it by name or id

Under WSL / SSH: runs on the Windows host (the machine with the screen). How the host works

Terminal window
aos audio input [<device>]
flag values meaning
<device> Optional positional argument
Terminal window
aos audio input
aos audio input "MacBook Pro Microphone"

Print or change the output mute state

Under WSL / SSH: runs on the Windows host (the machine with the screen). How the host works

Terminal window
aos audio mute [on|off|toggle]
Terminal window
aos audio mute toggle

Print the default output device, or switch it by name or id

Under WSL / SSH: runs on the Windows host (the machine with the screen). How the host works

Terminal window
aos audio output [<device>]
flag values meaning
<device> Optional positional argument
Terminal window
aos audio output
aos audio output AirPods
aos audio output "MacBook Pro Speakers"

Print the output volume, or set it

Under WSL / SSH: runs on the Windows host (the machine with the screen). How the host works

Terminal window
aos audio volume [<0-100>|+<n>|-<n>]
flag values meaning
<0-100> Optional positional argument
<n> Optional positional argument
<n> Optional positional argument
Terminal window
aos audio volume
aos audio volume 40
aos audio volume +5