scipy.io.wavfile.read cannot read 24-bits .wav files

Basj picture Basj · Nov 13, 2013 · Viewed 9.4k times · Source

It seems that scipy.io.wavfile.read cannot read 24-bits .wav files. Do you have an idea on how to handle them ?

Answer

Warren Weckesser picture Warren Weckesser · Nov 14, 2013

If your wav files are not compressed, you can try the readwav function here: https://gist.github.com/WarrenWeckesser/7461781


Update

I converted that gist to a python package: https://pypi.python.org/pypi/wavio

The source code is on github: https://github.com/WarrenWeckesser/wavio