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