OSX Audio Device - Select from CLILoren (mcint) October 27, 2022 [Terminal] #cli #macOS
I can now switch audio device from the command line.
switchaudio-osx via homebrew, and
osx-audio convenience function, to show and switch outputs.
Basic usage looks like:
Brifely summarize more extensive use of the installed tool:
SwitchAudioSource [-c|-a] [-f [human|cli|json]]
-c current device, or
-a all devices.
human default minimal,
cli a compact csv, and
json a readable and labeled format.