mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-04-05 19:41:56 +08:00
commit
da548e7de5
@ -37,13 +37,13 @@ def clean_special(text, language, special_s, target_symbol):
|
||||
norm_text = language_module.text_normalize(text)
|
||||
phones = language_module.g2p(norm_text)
|
||||
new_ph = []
|
||||
for ph in phones:
|
||||
for ph in phones[0]:
|
||||
assert ph in symbols
|
||||
if ph == ",":
|
||||
new_ph.append(target_symbol)
|
||||
else:
|
||||
new_ph.append(ph)
|
||||
return new_ph
|
||||
return new_ph, phones[1], norm_text
|
||||
|
||||
|
||||
def text_to_sequence(text, language):
|
||||
|
Loading…
x
Reference in New Issue
Block a user