mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-04-28 04:49:01 +08:00
feat: incase too much \n
This commit is contained in:
parent
b6dc94febb
commit
ac5a741a58
@ -390,7 +390,8 @@ def get_tts_wav(ref_wav_path, prompt_text, prompt_language, text, text_language,
|
|||||||
text = cut4(text)
|
text = cut4(text)
|
||||||
elif (how_to_cut == i18n("按标点符号切")):
|
elif (how_to_cut == i18n("按标点符号切")):
|
||||||
text = cut5(text)
|
text = cut5(text)
|
||||||
text = text.replace("\n\n", "\n").replace("\n\n", "\n").replace("\n\n", "\n")
|
while "\n\n" in text:
|
||||||
|
text = text.replace("\n\n", "\n")
|
||||||
print(i18n("实际输入的目标文本(切句后):"), text)
|
print(i18n("实际输入的目标文本(切句后):"), text)
|
||||||
texts = text.split("\n")
|
texts = text.split("\n")
|
||||||
audio_opt = []
|
audio_opt = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user