[SciPy-User] scipy.io.wavfile.read

David Cournapeau david@silveregg.co...
Tue Mar 2 19:24:38 CST 2010


Nils Wagner wrote:
> Hi all,
> 
> I tried to read a *.wav file using
> 
> scipy.io.wavfile.read
> 
> from scipy.io import wavfile
> from pylab import plot, show
> samplerate, data = wavfile.read('BagPipes.wav')
> 

This file uses ADPCM encoding (a form of compression based on non linear 
encoding of each sample), which is most likely not supported by 
scipy.io.wavfile. Your two options are to convert this to a "normal" wav 
file with linear encoding, or to use audiolab which supports those files 
(because libsndile does).

cheeers,

David


More information about the SciPy-User mailing list