mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-04-06 03:57:44 +08:00
Update api.py
This commit is contained in:
parent
35b6a1da72
commit
43097f374c
2
api.py
2
api.py
@ -378,7 +378,7 @@ def get_phones_and_bert(text,language,version,final=False):
|
|||||||
phones = sum(phones_list, [])
|
phones = sum(phones_list, [])
|
||||||
norm_text = ''.join(norm_text_list)
|
norm_text = ''.join(norm_text_list)
|
||||||
|
|
||||||
if not final and len(phones) < 6:
|
if not final:
|
||||||
return get_phones_and_bert("." + text,language,version,final=True)
|
return get_phones_and_bert("." + text,language,version,final=True)
|
||||||
|
|
||||||
return phones,bert.to(torch.float16 if is_half == True else torch.float32),norm_text
|
return phones,bert.to(torch.float16 if is_half == True else torch.float32),norm_text
|
||||||
|
Loading…
x
Reference in New Issue
Block a user