I'm trying to prevent macOS from ever using my AirPods as the audio input device, as that absolutely kills the audio quality of their output. This is not just an "only an audiophile would hear the difference" kind of thing, the audio actually sounds like it's being routed over the phone around the planet.
As far as I can tell macOS offers no way of disabling an input device altogether, not from the audio system settings or the Audio MIDI Setup. Or at least that doesn't appear possible for devices such as AirPods.
macOS wants to enable my AirPods as the default input device every time I put them in/on or even if (when paired to macOS) I unlock an iOS device and it checks if it should automatically switch over to that.
I have tried fittingly named features of both the app ToothFairy and AirBuddy but from what I can gather they only set the devices on first connect and can't watch for changes macOS tries later.
My current solution is running a short script in the background constantly, which checks the currently set input device every second and change that back if it looks like AirPods. This is obviously far from ideal, but at least it kinda works. I was unfortunately unable to find any NSNotification macOS fires on audio input changes to react to that instead, maybe watching coreaudiod logs here is a solution instead?
Is there any other saner option to disable AirPods as input devices or force macOS into always using the same input device?
(In case an Apple employee reads this, I have filed the following feedback: FB8970518)