PC Speaker Sound
Tom Vrankar
no at spam.net
Sun Oct 24 01:11:13 EDT 1999
The way I've done this is to download win32all and call:
win32api.Beep(frequency, duration_in_milliseconds)
although I've seen this not work in some installations. Don't know why,
though.
twv@
In article <007701bf10c5$e5c2bdd0$f29b12c2 at secret.pythonware.com>,
fredrik at pythonware.com says...
>
>David Rushby <drushby at email.com> wrote:
>> I know this is an offbeat question, but how does one go about generating PC
>> speaker tones from Python?
>
>afaik, there's nothing in the standard distribution
>for this (however, 1.5.2 added wave-playing support;
>see the winsound module for more info).
>
>but if you have a compiler and a little time to spare,
>you can grab the latest and greatest version of the
>winsound sources:
>
> http://www.python.org/download/cvs.html
>
>(or grab the current tarball from:
>http://starship.python.net/crew/da/pythondists/
>
></F>
>
--
---------------------------------
Tom Vrankar
twv at ici.net
http://home.ici.net/~twv/
Rhode Island, USA
More information about the Python-list
mailing list