[Tutor] Making a sound

Dave Angel davea at ieee.org
Sun Aug 1 03:34:02 CEST 2010


Michael Bernhard Arp S�������������������������������� wrote:
> Greetings, programs.
>
> How do I create a sound from python? I'm thinking along the line of
> generating a sinus wave where I can control the frequency and duration. I
> want to produce a string of sounds based on a character string. Probably not
> original. :-) I don't want to save a sound to a file and play it
> afterwards. Preferably it should be something from PYPI. Any suggestions?
>
> Thanks in advance.
>
> Kind regards
>
> Michael B. Arp Sørensen
> Programmer / BOFH
>
> "If you want to enter my network while I'm out, you can find my SSH-key
> under my mouse mat" - Michael Bernhard Arp Sørensen
>
>   
What's your platform?  If you're on Windows, consider the Win32 
extensions, or just get the Active Python distribution from ActiveState, 
which includes them, and other stuff for Windows.

Anyway, then look for the winsound.PlaySound() function.

DaveA



More information about the Tutor mailing list