python beep

Solutions on MaxInterview for python beep by the best coders in the world

showing results for - "python beep"
Quinton
03 Nov 2018
1import winsound
2frequency = 2500  # Set Frequency To 2500 Hertz
3duration = 1000  # Set Duration To 1000 ms == 1 second
4winsound.Beep(frequency, duration)
Mika
15 Jan 2019
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)
François
16 Jan 2017
1import beepy
2beep(sound=1) # integer as argument
3beep(sound='coin') # string as argument
4