vits_chinese icon indicating copy to clipboard operation
vits_chinese copied to clipboard

输入非常规字词生成的时候会出错

Open xhappy123 opened this issue 1 year ago • 8 comments

例如:开嗯好呃

Traceback (most recent call last): File "../vits_chinese-2.0/vits_infer.py", line 77, in phonemes, char_embeds = tts_front.chinese_to_phonemes(item) File "..\vits_chinese-2.0\vits_pinyin.py", line 75, in chinese_to_phonemes
char_embeds = self.prosody.expand_for_phone(char_embeds, count_phone) File "..\vits_chinese-2.0\bert\ProsodyModel.py", line 60, in expand_for_phone assert char_embeds.size(0) == len(length) AssertionError

xhappy123 avatar Apr 02 '23 11:04 xhappy123