Sound generation / synthesis with python?
I was looking for the same thing, In the end, I wrote this code which is working fine. import math #import needed modules import pyaudio #sudo apt-get install python-pyaudio PyAudio = pyaudio.PyAudio #initialize pyaudio #See https://en.wikipedia.org/wiki/Bit_rate#Audio BITRATE = 16000 #number of frames per second/frameset. FREQUENCY = 500 #Hz, waves per second, 261.63=C4-note. LENGTH = 1 … Read more