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

2019-03-28 11:26发布

问题:

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

回答1:

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



回答2:

Here is an updated version of scipy.io.wavfile that adds many things:

  • 24 bit .wav files support for read/write,
  • access to cue markers,
  • cue marker labels,
  • some other metadata like pitch (if defined), etc.

wavfile.py (enhanced)

Feel free to share it!