title: Python: Making a beep noise
body: <p>I'm trying to get the program to give me a beeping noise. I'm on a windows machine. I've looked at <a href="http://docs.python.org/library/winsound.html" rel="noreferrer">http://docs.python.org/library/winsound.html</a></p>
  
  <p>But not sure how I can program this with a barcode scanner. </p>
  
  <p>Here is my code for the serial barcode scanner. </p>
  
  <pre><code>ser = serial.Serial()
  ser.baudrate = 9600
  
  #for windows
  ser.port = 2 #for COM3
  
  ser.open()
  ser.write('hello')
  ser.close()
  </code></pre>
  
  <p>UPDATE: Since I'm annoying my co-workers with the beep. Can I get it to come through the audio jack for headphones?</p>