[SciPy-user] audiolab

James Coughlan coughlan@ski....
Sun Nov 9 13:13:12 CST 2008


Nils Wagner wrote:
> Hi all,
>
> How do I write numpy arrays to sound files ?
>
> Nils
>   
>   
Hi,

This works for me, at least on Windows.

Best,

James


from numpy import arange, sin
from waveio import exportWave
w=sin(arange(0,2000,0.5)) #simple waveform
exportWave('test.wav',8000,w) #8000=sampling rate in Hz.



More information about the SciPy-user mailing list