mirror of
https://github.com/FunAudioLLM/CosyVoice.git
synced 2026-02-05 18:09:24 +08:00
文本中没有标点时无法合成
This commit is contained in:
@@ -91,6 +91,8 @@ def split_paragraph(text: str, tokenize, lang="zh", token_max_n=80, token_min_n=
|
|||||||
st = i + 2
|
st = i + 2
|
||||||
else:
|
else:
|
||||||
st = i + 1
|
st = i + 1
|
||||||
|
if len(utts) == 0:
|
||||||
|
utts.append(text)
|
||||||
final_utts = []
|
final_utts = []
|
||||||
cur_utt = ""
|
cur_utt = ""
|
||||||
for utt in utts:
|
for utt in utts:
|
||||||
|
|||||||
Reference in New Issue
Block a user