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!