Search code examples
pythonwindowsaudiopywin32

Making Noise with Python


I am trying to get python to make noise when certain things happen. Preferably, i would like to play music of some kind, however some kind of distinctive beeping would be sufficient, like an electronic timer going off. I have thus far only been able to make the system speaker chime using pywin32's Beep, however this simply does not have the volume for my application.

Any ideas on how I can do this?

EDIT: I have been using PyAudiere for this, but unfortunately the package has been abandoned. Now I need an alternative.


Solution

  • PyAudiere turns out to be the most convenient. It allows me to simply play an MP3, rather than generate the sound on the fly.