macOS menu bar app
LockAudio
35 stars on GitHub
Locks your Mac's audio input and output to the devices you choose, so AirPods and other Bluetooth devices can't hijack your microphone or speakers when they connect.
When AirPods grab the mic, macOS drops them into low-quality call mode and drains their battery faster. LockAudio keeps your input on the device you actually want, remembers your choice across reconnects, and stays out of the way in the menu bar.