In Zero Shot mode,if the Prompt text or Target text does not end with punctuation (eg '.' or '?' or '!' ), the following error message will happen:
Traceback (most recent call last):
File "./test.py", line 22, in
output = cosyvoice.inference_zero_shot(target_text, prompt_text, prompt_speech_16k)
File "/root/autodl-tmp/CosyVoice/cosyvoice/cli/cosyvoice.py", line 63, in inference_zero_shot
return {'tts_speech': torch.concat(tts_speeches, dim=1)}
RuntimeError: torch.cat(): expected a non-empty list of Tensors.
In Zero Shot mode,if the Prompt text or Target text does not end with punctuation (eg '.' or '?' or '!' ), the following error message will happen:
Traceback (most recent call last): File "./test.py", line 22, in
output = cosyvoice.inference_zero_shot(target_text, prompt_text, prompt_speech_16k)
File "/root/autodl-tmp/CosyVoice/cosyvoice/cli/cosyvoice.py", line 63, in inference_zero_shot
return {'tts_speech': torch.concat(tts_speeches, dim=1)}
RuntimeError: torch.cat(): expected a non-empty list of Tensors.