DEV Community

Free Python Code
Free Python Code

Posted on

Generate audio using python 😎

code


import winsound
import random

winsound.Beep(frequency = random.randint(10, 1000), duration = 300)

Enter fullscreen mode Exit fullscreen mode

Top comments (0)