[Tutor] Python Access to Computer speaker
Danny Yoo
dyoo@hkn.eecs.berkeley.edu
Sun, 18 Feb 2001 16:25:12 -0800 (PST)
On Sun, 18 Feb 2001, Tim Johnson wrote:
> Does Python have a function to access for the computer
> speaker for frequency and duration?
> .....like the the "C" sound() function.
I'll assume that you're working on a Windows system for the moment.
There's a module called winsound that'll let you do this:
http://www.python.org/doc/current/lib/module-winsound.html
In it, there's a function called Beep(), and it does take in frequency and
duration. However, I have to admit that I have no experience with it.
Perhaps someone else on tutor's played around with it?
Good luck!