Last active
July 12, 2022 12:28
-
-
Save erickvieira/ff3424614df9cae9acb51cba9a8ffe84 to your computer and use it in GitHub Desktop.
Automator service for microphone mute key binding on Mac OS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on run {input, parameters} | |
set inputVolume to input volume of (get volume settings) | |
if inputVolume < 60 then | |
set inputVolume to 60 | |
set displayNotification to "Microphone is unmuted" | |
set speechMessage to "unmuted" | |
else | |
set inputVolume to 0 | |
set displayNotification to "Microphone is muted" | |
set speechMessage to "muted" | |
end if | |
set volume input volume inputVolume | |
say speechMessage | |
display notification displayNotification | |
delay 0.05 | |
return input | |
end run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Mac OS Mic Mute
Configuration
Usage
When you press the shortcut in your keyboard, a notification will appear and Siri will say the new microphone status ("Muted" or "Unmuted"). If you press again, it will toggle the previous known state.