Is there a hotkey I can use or configure to mute the mic on a 13" MacBook Pro (MPB)?
I would prefer an icon or notification to confirm that it is set (even if I need to toggle the option).
Is there a hotkey I can use or configure to mute the mic on a 13" MacBook Pro (MPB)?
I would prefer an icon or notification to confirm that it is set (even if I need to toggle the option).
You can simply Alt-Click on Sound/Speaker icon in the menubar, then select Line In
as Input Device to mute the mic.
When you want it back, just select Internal microphone
again.
And here's the script to mute / unmute with a display notification (extended from tkneis's answer).
on run {input, parameters}
set inputVolume to input volume of (get volume settings)
if inputVolume = 0 then
set inputVolume to 100
set displayNotification to "Microphone Unmuted"
else
set inputVolume to 0
set displayNotification to "Microphone Muted"
end if
set volume input volume inputVolume
display notification displayNotification
delay 1
return input
end run
This works best, especially if you want to assign this script to a Hotkey:
set inputVolume to input volume of (get volume settings)
if inputVolume = 0 then
set inputVolume to 100
else
set inputVolume to 0
end if
set volume input volume inputVolume
This method doesn't require you to activate the System Preference GUI, or to go through the volume settings of whichever app is active. Instead it is getting the system's volume settings, and then checking to see if the input volume is already 0--if it is it will set the input volume to 100, and if it isn't it will mute the input volume.
Works like a charm.
This can also be accomplished with a simple AppleScript:
tell application "System Events" to set volume input volume 0
Reverse the process:
tell application "System Events" to set volume input volume 100
EDIT
By the way, Soundsource is a free application that gives you nice easy sliders to toggle Speaker/Microphone levels from the menu bar, without the need for pesky extra dialogs.
Finally I got a perfect solution to mute my mac,
What I did was to install this MuteMyMic , Just to know when having visual representation if the microphone is muted or not all the time.
Then I found this Shush! workflow for Alfred , and then to have an easier access I added a shortcut to rise this Mute/Unmute action, then to turn mic on / off is easier as raising the shortcut, and I know if it's on or off by the MuteMyMic icon on the bar.
I hope this helps anyone else. Enjoy
Try MuteMyMicFree. It sits in the menu bar so you can adjust the input mic level from zero to max. It takes two clicks (one to open the control and another to set the level), but it's free and does the job less obtrusively than other suggestions.
The Alfred workflow might be good, but you have to buy the power pack on top of the free application to load or even create workflows.
The AppleScripts are great! Using them as a global keyboard shortcut also provides the ability to purchase (or build) a foot pedal for keyboard/click-less muting.
For people reading this question that have touchbar Macs, consider MuteMe - it adds a button in the global touchbar area for mute/unmute (and the button turns red when muted). If you don't have a touchbar Mac, you can still use it either from the system tray or as a global keyboard shortcut. It is free.
Just tried MuteKey on macOS Big Sur and it did the job very well. On my default installation, the hotkeys were ⇧ Shift+⌘ Command+W; I had to select Device
> All Input Devices
to get it working globally.
If you have multiple mic sources, you might try to use this.
Audio Midi Setup in Mac, while sounding antiquated, will give you the desired outcome to mute your mic system wide in case you feel a cough coming on.