文本中没有标点时无法合成

This commit is contained in:
passerbya
2024-07-09 17:26:19 +08:00
parent 95b8866f3c
commit f9fe31f200

View File

@@ -91,6 +91,8 @@ def split_paragraph(text: str, tokenize, lang="zh", token_max_n=80, token_min_n=
st = i + 2
else:
st = i + 1
if len(utts) == 0:
utts.append(text)
final_utts = []
cur_utt = ""
for utt in utts: