DEV Community

Cover image for Muting the mic for every app on macOS with Core Audio
Oleg Chernyshev
Oleg Chernyshev

Posted on

Muting the mic for every app on macOS with Core Audio

Zoom, Teams and Meet each have their own mute, and they don't know about each other. I wanted one hotkey that mutes the mic for everything, so I made a small menu bar app for it.

It sets kAudioDevicePropertyMute on the input devices through Core Audio, so every app just gets silence. By default it mutes all inputs, not only the default one, because Zoom and Meet often disagree about which mic is "the" mic. It also listens for changes and puts the mute back if some app flips it. ⌘⇧M toggles it, and there's push to talk too.

Later I added optional local recording of the mic plus system audio into one small file, which is handy for dropping a call into ChatGPT or Claude for a summary.

It's free and MIT, macOS 14+: github.com/oochernyshev/lockmic. I'm the developer, happy to answer Core Audio questions.

Top comments (0)