Hi,Please try below commands to mute/unmute the mics. i tested it and it works well. you can read the button signal and then use below command to mute the mics. for more info, please refer to https://wiki.archlinux.org/index.php/PulseAudio . thanks.
To mute/unmute the microphone:
$ pactl set-source-mute 1 toggle