Sound programming?
Steve Holden
sholden at holdenweb.com
Thu Apr 11 17:57:53 EDT 2002
"Will Ware" <wware at alum.mit.edu> wrote in message
news:3CB50DBC.1B0E533F at alum.mit.edu...
> Somebody was asking me this evening if there's an easy way to
> play a tone of a specified frequency and duration in Python.
> I didn't know off the top of my head. I've since poked around
> the web a bit and it appears like the Snack Sound Toolkit
> (http://www.speech.kth.se/snack/) might be a good way to go.
> One of its virtues is being cross-platform, which I suspect is
> among his unstated wishes. Are there any other options?
Not cross-platform, but a real simple way is available on Windows:
win32api.Beep()
>>> import win32api
>>> win32api.Beep(440, 120)
>>> win32api.Beep(440, 1200)
>>> win32api.Beep(4400, 1200)
regards
Steve
More information about the Python-list
mailing list