make airpods microphones disabled by default when pairing with a mac when pairing airpods with a mac, the sound quality is poor due to the fact it also uses them for microphone by default...

when I switch the audio input (microphone to internal), then quality of the airpods sound is excellent.

I don't want to do this step each time I pair airpods, is there a way to make the default microphone for mac is the internal one.
Ok, here is a script that would select Internal Microphone..

Copy Paste following in the Script Editor in Utility folder.

Run it, if you like it we can make it a keyboard short cut.

tell application "System Preferences" to activate
tell application "System Preferences"
    reveal anchor "input" of pane id "com.apple.preference.sound"
end tell

tell application "System Events" to tell process "System Preferences"
    tell table 1 of scroll area 1 of tab group 1 of window 1
        delay 10
        select row 1
        tell application "System Preferences" to quit
    end tell
end tell