求助 : Ipython使用wavfile.write写入了一个wav音频文件但是播放不了

使用的是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文件但是在使用播放器打开时却显示编码错误?
想问问各位大神有没有遇到过类似的问题

图片说明

图片说明
写入的格式不能是double,需要强制转换一下