Answers for "python play a beep"

1

python beep windows

# https://stackoverflow.com/a/6537563
import winsound
frequency = 2500  # Set Frequency To 2500 Hertz
duration = 1000  # Set Duration To 1000 ms == 1 second
winsound.Beep(frequency, duration)
Posted by: Guest on May-02-2021

Python Answers by Framework

Browse Popular Code Answers by Language