1On Windows, if you want to just make the computer make a beep sound:
2
3import winsound
4frequency = 2500 # Set Frequency To 2500 Hertz
5duration = 1000 # Set Duration To 1000 ms == 1 second
6winsound.Beep(frequency, duration)
7
8
9The winsound.Beep() can be used wherever you want the beep to occur.