- Open Automator.app
- Create new Quick Action
- Select Run AppleScript
- Add this:
set inputVolume to input volume of (get volume settings)
if inputVolume = 0 then
set inputVolume to 100
display notification "Volume set to 100" with title "✅ Microphone is on"
else
set inputVolume to 0
display notification "Volume set to 0" with title "❌ Microphone is off"
end if
set volume input volume inputVolume
- Save as
mute-microphone
- Go to System Preferences -> Keyboard -> Shortcuts -> Services -> General
- Find the
mute-microphone
service and set the hotkey (e.g. control-cmd-option M)
It doesn't work for me on Monterey. It just says ❌ muted. But the sliders of Input doesn't go down. Also, the microphone remains just as it was before. When trying to run the code again via the keyboard shortcut, it will does the same thing instead of acting as a toggle.
My Automator app does have the accessibility permission but still facing this issue. I have searched a lot. Can someone please assist me on this?