views:

172

answers:

2

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?

+1  A: 

For windows, you can use the winsound standard library: http://docs.python.org/library/winsound.html

Amber
+3  A: 

For cross-platform perfection and maximum flexibility, you could use pygame.mixer.

Alex Martelli