A native macOS menu bar app that manages audio device priorities. Set your preferred order for speakers and microphones, and the app switches to the highest-priority connected device.
- Priority-based auto-switching: Devices are ranked by priority. When a higher-priority device connects, it automatically becomes active.
- Device memory: Remembers priority order, custom names, ignored devices, and volume locks across reconnects and app launches.
- Ignore devices: Hide devices from the list.
- Custom device names: Give any speaker or microphone an app-only name, then restore its original CoreAudio name at any time.
- Drag-to-reorder: Reorder devices by dragging.
- Speaker and mic volume: Adjust both volumes with a slider or scroll wheel.
- Per-device volume locks: Lock the active speaker or microphone at its current level. AudioPriority restores that level after external changes, device switches, reconnects, and app launches.
- Graceful volume fallback: Shows "-" when the system volume is unavailable.
- Auto-switch toggle: Enable or disable automatic device switching.
- Menu bar integration: Lightweight, always-available controls.
- macOS 26.0 or later
brew install --cask mateusbadalotti/tap/audio-priorityUpdate an existing installation with:
brew upgrade --cask audio-priority-
Clone the repository:
git clone https://github.com/mateusbadalotti/audio-priority.git && cd audio-priority
-
Build using the build script:
./build.sh
-
The app will be at
dist/AudioPriority.app
Or open audio-priority.xcodeproj in Xcode and build with ⌘R.
Check the Releases page for pre-built binaries.
- Click a device: Select it as the active device (connected only)
- Drag devices: Reorder priority by dragging the handle
- Rename device: Set a custom name used in the app
- Restore original name: Remove the custom name and show the name reported by CoreAudio
- Ignore device: Hide as speaker or microphone
Custom names only affect AudioPriority. They do not rename the device in macOS or other apps.
- Lock speaker volume: Right-click the speaker slider to lock the active output device at its current level
- Lock microphone volume: Right-click the microphone slider to lock the active input device at its current level
- Unlock volume: Right-click the same slider and choose
Unlock speaker volumeorUnlock microphone volume
Locks belong to individual devices. While the current device is locked, its slider is disabled and a small lock badge appears on the volume icon.
Use the Auto toggle in the footer to enable or disable automatic device switching.
- Device discovery: CoreAudio provides the connected input and output devices and reports device or volume changes.
- Preference storage: Priority order, ignored devices, custom names, and locked levels are stored in UserDefaults by stable device UID.
- Auto-switching: When devices connect or disconnect, the app selects the highest-priority available device.
- Volume enforcement: If the active device has a lock, the app restores its saved level whenever CoreAudio reports a volume change.
audio-priority/
├── AudioPriorityApp.swift # App entry, MenuBarExtra, AudioManager
├── Models/
│ └── AudioDevice.swift # Device model
├── Services/
│ ├── AudioDeviceService.swift # CoreAudio device wrapper
│ └── PriorityManager.swift # Priority persistence
└── Views/
├── MenuBarView.swift # Main popover UI
└── DeviceListView.swift # Device list and row components
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License - see LICENSE for details.
Built with SwiftUI and CoreAudio for macOS.
Heavily inspired by https://github.com/tobi/AudioPriorityBar

