Update korean.py

This commit is contained in:
RVC-Boss 2024-08-06 12:41:07 +08:00 committed by GitHub
parent 49e0c9d0ac
commit d7900c78dd

View File

@ -1,3 +1,5 @@
# reference: https://github.com/ORI-Muchim/MB-iSTFT-VITS-Korean/blob/main/text/korean.py
import re
from jamo import h2j, j2hcj
import ko_pron
@ -260,4 +262,4 @@ def g2p(text):
text = re.sub(r'([\u3131-\u3163])$', r'\1.', text)
# text = "".join([post_replace_ph(i) for i in text])
text = [post_replace_ph(i) for i in text]
return text
return text