The winsound module

(Windows only). This module allows you to play Wave sound files on a Windows machine.

Example: Using the winsound module
# File: winsound-example-1.py

import winsound

file = "samples/sample.wav"

winsound.PlaySound(
    file,
    winsound.SND_FILENAME|winsound.SND_NOWAIT,
    )
 

[comment on/vote for this article]

A Django site. this page was rendered by a django application in 0.01s 2008-10-13 12:57:36.997288. hosted by webfaction.