Merge 25fad7d8ddc4dc185998c67f353eaf46082529b9 into 959269b5ae2db5d0f0aead15b91c7e1e120f6303

This commit is contained in:
Caojunwei 2024-04-13 00:43:48 +08:00 committed by GitHub
commit 6e3aaed25a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

3
api.py
View File

@ -378,7 +378,8 @@ def get_tts_wav(ref_wav_path, prompt_text, prompt_language, text, text_language)
text_language = dict_language[text_language]
phones1, word2ph1, norm_text1 = clean_text(prompt_text, prompt_language)
phones1 = cleaned_text_to_sequence(phones1)
texts = text.split("\n")
_ = text.split("\n")
texts = [t for t in _ if t != '']
audio_opt = []
for text in texts: