PDA

View Full Version : accessing system speaker noise


pkhoosh
01-25-2006, 09:45 AM
Hello,

I was wondering what the API is for accessing the system speaker that comes with most PC's.

Many thanks,

pete khooshabeh

tobin
01-25-2006, 10:02 AM
From within Vizard, I assume.

There's viz.playsound()

and the media object which allows you to add sounds via:

sound = viz.add('mysound.wav')

If you're not asking about WAV, MPG, AIF, etc, type sounds and install want to play tones from the speaker directly, I'd expect there already exists a Python module for doing this but the answer is Vizard doesn't have the equivalent to the WIN32 call Beep().

pkhoosh
01-25-2006, 10:22 AM
Thanks for the tip.

Here's the module

http://docs.python.org/lib/module-winsound.html