使用的是scipy.io.wavfile
from scipy.io import wavfile
length = xR.shape[0]
yR = np.array([])
xR_gauche = xR[:,0]
print(yR.shape)
N = int(Fe_xR / Fslow)
print(N)
for i in range(6511):
value = xR_gauche[1+(i-1)*N]
yR = np.hstack((yR, value))
plt.figure()
plt.plot(yR)
print(yR.shape)
print(type(yR))
wavfile.write('test.wav',Fslow,yR)
成功生成了test.wav文件但是在使用播放器打开时却显示编码错误?
想问问各位大神有没有遇到过类似的问题