Advertisement
Felanpro

Beep() funciton with winsound module

Aug 4th, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. import winsound
  2. '''The winsound module provides access to the basic sound-playing
  3. machinery provided by Windows platforms. It includes functions and several constants.
  4. '''
  5.  
  6. import winsound
  7. Frequency = 2500 # Set Frequency To 2500 Hertz
  8. Duration = 1000 # Set Duration To 1000 ms == 1 second
  9. winsound.Beep(Frequency,Duration)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement