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

不打扰是莪最后的温柔 提交于 2019-11-30 14:03:22

问题


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!



来源:https://stackoverflow.com/questions/19963180/scipy-io-wavfile-read-cannot-read-24-bits-wav-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!