2023-03-15
1) Open BTT and create a new keyboard shortcut.
2) BTT is now waiting for you to set a key as a trigger. Go ahead and press the voice assistant key.
3) Next click the + to assign an action.
4) Locate/search and select “Run Apple Script (blocking)”.
Paste this code:
code:togglemic.applescript
if input volume of (get volume settings) is greater than 0 then
set volume input volume 0
display notification "Off" with title "Mic"
else
set volume input volume 100
display notification "On" with title "Mic"
end if
Uncheck “Run in background (limited support)”.