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

Nils Wagner nwagner@iam.uni-stuttgart...
Wed Mar 3 03:47:28 CST 2010

On Wed, 03 Mar 2010 10:24:38 +0900
  David Cournapeau <david@silveregg.co.jp> wrote:
> 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).

Is it possible to improve the message returned by 
wavfile.read in case of special encodings ?

More information about the SciPy-User mailing list