This example shows how to play a wav file. The winsound python module
is a part of standard python - this means that python must be installed. def AudioNotification():
from winsound import PlaySound, SND_FILENAME
try:
PlaySound('ahooga.wav',SND_FILENAME)
except:
pass
|