Python module to beep Windows motherboard speaker at specified frequency and length?

1.3k Views Asked by At

Windows 8.1, Python 3.4


I'm looking for a Python library that will allow me to beep the speaker on my motherboard for a specified length at a specified frequency. I've looked around, and the main suggestion was to use the winsound module. However, this only sends the sound to my external speaker and not the internal one. I'm looking to try to make a simple chiptune ("8-bit") song using my motherboard speaker. Thanks!

1

There are 1 best solutions below

3
On

Would this work: https://docs.python.org/2/library/winsound.html ?

Looks similar to C# Console.Beep. pass in frequency and duration.