There is a related question here.
But there isn't a clear way to go on how to mute microphone cross-platform (Mac+Windows).
I need this for building a DIY physical button with a raspberry pi 0 for muting/unmuting Zoom/Teams calls.
I have tried combing pymedia and pyaudio documentation without luck.