Fix normal model N bug

This commit is contained in:
litagin02
2024-02-02 23:06:31 +09:00
parent 59421c07d6
commit d2da83a1fd
2 changed files with 5 additions and 5 deletions

View File

@@ -210,7 +210,7 @@ def g2p(
assert len(phones) == sum(word2ph), f"{len(phones)} != {sum(word2ph)}"
# 最後にuse_jp_extraでない場合は「N」を「n」に変換
# use_jp_extraでない場合は「N」を「n」に変換
if not use_jp_extra:
phones = [phone if phone != "N" else "n" for phone in phones]