Playing wave files on Windows

Jeff Bauer jbauer at rubic.com
Mon Apr 17 16:37:56 EDT 2000


> Ivan Van Laningham wrote:
> How can I play a sound file on Windows. 

Ivan, use the built-in winsound module, e.g.:

>>> import winsound
>>> winsound.PlaySound(r'C:\WINNT\Media\tada.wav', winsound.SND_FILENAME)

> I don't want to do anything else, just play a 
> wave file. ...

Then I can't interest you in my Python interface to
the Diamond Rio MP3 player?  <0.5 wink>

Jeff Bauer
Rubicon Research




More information about the Python-list mailing list