Connect Computer Microphone to Arduino Uno

I am trying to connect my computer's native (or default) microphone to my Arduino Uno. Basically, my final project is to create a physical mute button (using the microprocessor) and make the green LED turn on when unmuted, and the red LED turn on when muted. So far, I got the LED and button coding down, but I have to find out a way to connect that to the default microphone in a computer, so a press of a button will completely mute the microphone in the system. Please let me know if there is some sort of connectivity with the computer microphone that I can use for this project.

int pushButton = 2;
const int GREENLED = 3;
const int REDLED = 4;
int ledflag=0;                   // LED status flag

// the setup routine runs once when you press reset:
void setup() {
  // initialize serial communication at 9600 bits per second:
  // make the pushbutton's pin an input:
  pinMode(pushButton, INPUT);
  pinMode(REDLED, OUTPUT);
  digitalWrite(GREENLED,LOW);         // turn output off just in case

// the loop routine runs over and over again forever:
void loop() {
  int buttonState = digitalRead(pushButton);
  if (buttonState == 1) 

  if (digitalRead(pushButton)==HIGH){ 
    if (ledflag==0) {            
    else {               

 if (digitalRead(GREENLED)==HIGH){
 else {

You will need to write a program on the PC that can monitor and control the microphone. It can talk to the Arduino over serial and let it know what state the mic is in. The Arduino can also tell your PC code when the user pressed the button.

Realistically, I can't see much point to having the Arduino command the mic, but I can see the fun in having a big radio station style "On Air" light somewhere to warn yourself and others that you have a live microphone.

Consider using a relay, it is much easier then trying to convert the microphone signal to digital then back to analog. They make both electronic and mechanical relays that will do what you want. Basically it is a remote controlled mute button. Most microphones can be turned off by shorting there output signal. This is very common but not knowing your microphone I can only guess.