Update japanese.py

main
RVC-Boss 1 year ago committed by GitHub
parent e0c2241e4c
commit 8cbd916222
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -194,7 +194,7 @@ def _numeric_feature_by_regex(regex, s):
return -50 return -50
return int(match.group(1)) return int(match.group(1))
def g2p(norm_text, with_prosody=False): def g2p(norm_text, with_prosody=True):
phones = preprocess_jap(norm_text, with_prosody) phones = preprocess_jap(norm_text, with_prosody)
phones = [post_replace_ph(i) for i in phones] phones = [post_replace_ph(i) for i in phones]
# todo: implement tones and word2ph # todo: implement tones and word2ph
@ -203,4 +203,4 @@ def g2p(norm_text, with_prosody=False):
if __name__ == "__main__": if __name__ == "__main__":
phones = g2p("こんにちは, hello, AKITOです,よろしくお願いしますね!") phones = g2p("こんにちは, hello, AKITOです,よろしくお願いしますね!")
print(phones) print(phones)

Loading…
Cancel
Save