Possible Duplicate:
Playing a sound from a wave form stored in an array
I'm trying to generate a vector (or similar data structure) in Python that contains a sine wave and play it without recording anything to disk.
Sort of like the following MATLAB code:
t = 0:1/8000:1; % Generate a 1 second vector at a sampling rate of 8000 Hz
wave = sin(2*pi*440*t); % Store a 440 Hz sine wave
sound(wave, 8000); % Play the waveform
Thanks in advance!