macOS
brew install switchaudio-osxlocal Homebrew formula metadata
sudo port install switchaudio-osxMacPorts ports tree · audio/switchaudio-osx/Portfile · source: api.github.com
brew / rank 1391
Change macOS audio source from the command-line. Version 1.2.2 via Homebrew; verified from local package data. Also installable with nix: nix profile install nixpkgs#switchaudio-osx.
install
brew install switchaudio-osxlocal Homebrew formula metadata
sudo port install switchaudio-osxMacPorts ports tree · audio/switchaudio-osx/Portfile · source: api.github.com
nix profile install nixpkgs#switchaudio-osxnixpkgs package indexes · pkgs/by-name/sw/switchaudio-osx/package.nix · source: api.github.com
overview
Change macOS audio source from the command-line
history
SwitchAudioSource is a macOS command-line utility for switching the system audio source without opening the graphical sound settings. Its appeal is narrow but durable: shell users, automation users, and hotkey-tool users can script audio input, output, system device, mute, and cycling behavior.
The upstream README describes a command-line-only utility for Mac OS X, tested across OS X 10.7 through macOS 11.2. The license and README credit Devon Weller beginning in 2008 and Christian Zuckschwerdt for migrating the project to GitHub and adding the next-device option.
The README explicitly documents Homebrew installation, and the input package facts show the same utility distributed through Homebrew, MacPorts, and Nix. That spread is typical for small macOS-native command-line tools that remain useful because they wrap a missing shell affordance.
Users run SwitchAudioSource to list devices, print the current device, set a device by name, id, or uid, choose input/output/system device type, select human/CLI/JSON output, or toggle mute status for input or output devices. The README gives microphone muting as a hotkey-oriented use case.
Package nerds care because this is exactly the kind of tiny Mac utility package managers preserve: a single-purpose CLI that exposes system behavior to scripts, dotfiles, launchers, and keyboard automation.
security posture
broad file, network, media, or database tool signal.
blue risk · medium confidence · tool
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
SwitchAudioSource | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/deweller/switchaudio-osx
install metadata
| Package key | brew:switchaudio-osx |
|---|---|
| Version | 1.2.2 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/switchaudio-osx |
| Homepage | https://github.com/deweller/switchaudio-osx/ |
| Repository | https://github.com/deweller/switchaudio-osx |
| Upstream docs | https://github.com/deweller/switchaudio-osx/ |
| License | MIT |
| Source archive | https://github.com/deweller/switchaudio-osx/archive/refs/tags/1.2.2.tar.gz |
| Bottle | available (on arm64_big_sur, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | switchaudio-osx |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Requirements |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
switchaudio-osx
nix profile install nixpkgs#switchaudio-osxswitchaudio-osx
sudo port install switchaudio-osxsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.