title: Detecting system sound on Windows using Python
body: <p>Is there any way to detect system sound instead of microphone sound? I want to be able to detect whenever my system makes a sound instead of when the microphone picks up the actual sound.</p>
  
  <p>One way I found to do this use an "audio loop-back in either software or hardware (e.g. connect a lead from the speaker 'out' jack to the microphone 'in' jack)."</p>
  
  <p><a href="https://stackoverflow.com/questions/6644368/capturing-speaker-output-in-java">Capturing speaker output in Java</a></p>
  
  <p>I am building a program that plays an mp3 file whenever a system sound happens but I don't want it to go off if the dog barks.</p>
  
  <p>Thanks!</p>