1import winsound
2frequency = 2500 # Set Frequency To 2500 Hertz
3duration = 1000 # Set Duration To 1000 ms == 1 second
4winsound.Beep(frequency, duration)
1# https://stackoverflow.com/a/6537563
2import winsound
3frequency = 2500 # Set Frequency To 2500 Hertz
4duration = 1000 # Set Duration To 1000 ms == 1 second
5winsound.Beep(frequency, duration)
1import beepy
2beep(sound=1) # integer as argument
3beep(sound='coin') # string as argument
4