winsound
winsound — Sound-playing interface for Windows
The winsound
module provides access to the basic sound-playing machinery provided by Windows platforms. It includes functions and several constants.
-
winsound.Beep(frequency, duration)
-
Beep the PC’s speaker. The frequency parameter specifies frequency, in hertz, of the sound, and must be in the range 37 through 32,767. The duration parameter specifies the number of milliseconds the sound should last. If the system is not able to beep the speaker,
RuntimeError
is raised.