scipy.io.wavfile.read似乎无法读取24位.wav文件。您知道如何处理它们吗? 最佳答案 如果您的wav文件没有被压缩,您可以在这里尝试readwav函数:https://gist.github.com/WarrenWeckesser/7461781更新我将该要点转换为python包:https://pypi.python.org/pypi/wavio源代码在github:https://github.com/WarrenWeckesser/wavio 关于python
我正在尝试使用scipy读取.wav文件。我这样做:fromscipy.ioimportwavfilefilename="myWavFile.wav"print"Processing"+filenamesamples=wavfile.read(filename)我得到了这个丑陋的错误:/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scipy/io/wavfile.py:121:WavFileWarning:chunknotunderstoodwarnings.warn("chu
我有这个代码:importnumpyasnpimportscipy.io.wavfileimportmathrate,data=scipy.io.wavfile.read('xenencounter_23.wav')data2=[]foriinrange(len(data)):data2.append([int(round(math.sin(data[i][0])*3000)),int(round(math.sin(data[i][1])*3000))])data2=np.asarray(data2)printdata2scipy.io.wavfile.write('xenencoun