增加了TTS_Config类的健壮性

This commit is contained in:
chasonjiang
2024-03-12 15:30:08 +08:00
parent bfd7286068
commit 511b99e4a9
2 changed files with 61 additions and 34 deletions

View File

@@ -80,6 +80,7 @@ if cnhubert_base_path is not None:
if bert_path is not None:
tts_config.bert_base_path = bert_path
print(tts_config)
tts_pipline = TTS(tts_config)
gpt_path = tts_config.t2s_weights_path
sovits_path = tts_config.vits_weights_path