title: Python Sound ("Bell")
body: <p>I'd like to have a python program alert me when it has completed its task by making a beep noise.  Currently,  I use <code>import os</code> and then use a command line speech program to say &quot;Process complete&quot;.  I much rather it be a simple &quot;bell.&quot;</p>
  <p>I know that there's a function that can be used in <em>Cocoa</em> apps, <code>NSBeep</code>, but I don't think that has much anything to do with this.</p>
  <p>I've also tried</p>
  <pre class="lang-py prettyprint-override"><code>print(\a)
  </code></pre>
  <p>but that didn't work.</p>
  <p>I'm using a Mac, if you couldn't tell by my <em>Cocoa</em> comment, so that may help.</p>