mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2026-07-11 18:03:18 +08:00
Merge f20f17c2c06c8cf2f99fcf66c922a881bbcc34a6 into 8c705784c50bf438c7b6d0be33a9e5e3cb90e6b2
This commit is contained in:
commit
b647913963
@ -781,6 +781,12 @@ def get_tts_wav(
|
||||
if not ref_free:
|
||||
phones1, bert1, norm_text1 = get_phones_and_bert(prompt_text, prompt_language, version)
|
||||
|
||||
# 确保sample_steps为int
|
||||
try:
|
||||
sample_steps = int(sample_steps)
|
||||
except (TypeError, ValueError):
|
||||
sample_steps = 8
|
||||
|
||||
for i_text, text in enumerate(texts):
|
||||
# 解决输入目标文本的空行导致报错的问题
|
||||
if len(text.strip()) == 0:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user