on getMicrophoneVolume() input volume of (get volume settings) end getMicrophoneVolume if getMicrophoneVolume() is greater than 0 then set volume input volume 0 display notification "Audio Level set to 0!" with title "Microphone muted!" else set volume input volume 100 display notification "Audio Level set to 100!" with title "Microphone unmuted!" end if