KevinWang676 / Bark-Voice-Cloning

Bark Voice Cloning and Voice Cloning for Chinese Speech
MIT License
2.63k stars 373 forks source link

IndexError: index 0 is out of bounds for axis 0 with size 0 #42

Open JavaAndPython55 opened 10 months ago

JavaAndPython55 commented 10 months ago

当我根据colab中你给的代码执行到

input_wav = "./test_wavs/"
output_data = "./output_training_data/"

ret, report = run_auto_label(input_wav=input_wav, work_dir=output_data, resource_revision="v1.0.7")

我知道这是一个数组越界的错误,但是你代码里面的,我准备过去改,我一看,全是公式。我无从下手,也不知道改了会不会影响下一步。希望能给出指导 /usr/local/lib/python3.10/dist-packages/tts_autolabel/audio2phone/funasr_onnx/utils/frontend.py这个类的101行

 99         T_lfr = int(np.ceil(T / lfr_n))
100         left_padding = np.tile(inputs[0], ((lfr_m - 1) // 2, 1))

--> 101 inputs = np.vstack((left_padding, inputs)) 102 T = T + (lfr_m - 1) // 2 103 for i in range(T_lfr):

IndexError: index 0 is out of bounds for axis 0 with size 0

KevinWang676 commented 10 months ago

上传.wav声音素材文件的话应该不会出现这种error,可以再试一下

pzc163 commented 10 months ago

上传.wav声音素材文件也还是会报错,但是colab就不会报错,非常的迷

KevinWang676 commented 10 months ago

语音素材的长度需要一分钟以上