updated pure chinese option

This commit is contained in:
Plachta
2023-03-01 17:50:11 +08:00
parent 9f8982181d
commit 03c9cd3ccb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ def korean_cleaners(text):
def chinese_cleaners(text):
from pypinyin import Style, pinyin
text = text.replace("[ZH]", "")
phones = [phone[0] for phone in pinyin(text, style=Style.TONE3)]
return ' '.join(phones)