Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 530
Basj Avatar asked Nov 13 '13 20:11

Basj


2 Answers

scipy.io.wavfile.read can read 24-bits .wav files since release 1.6 : https://docs.scipy.org/doc/scipy-1.6.0/reference/release.1.6.0.html#scipy-io-improvements

like image 193
ofaurax Avatar answered Nov 03 '22 10:11

ofaurax


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

like image 32
Warren Weckesser Avatar answered Nov 03 '22 08:11

Warren Weckesser