chenmingxiang110/Chinese-automatic-speech-recognition

ValueError

Alvin-LH opened this issue · 1 comments

你好,打扰你了当我换一个语音文件的时候,就会报错:
Traceback (most recent call last):
File "C:/Users/lihao/Desktop/Chinese-automatic-speech-recognition-master/test.py", line 46, in
data = zero_padding_1d(data, 160240)
File "C:\Users\lihao\Desktop\Chinese-automatic-speech-recognition-master\lib\tools_math.py", line 46, in zero_padding_1d
result = np.concatenate([vec, np.zeros(obj_length-len(vec))])
ValueError: negative dimensions are not allowed

是因为语音的采样率有限制吗,如果是这样,有什么好的解决办法吗,谢谢不胜感激