Merge branch 'RVC-Boss:main' into main

This commit is contained in:
PocketDoc Labs 2024-05-21 11:07:08 -07:00 committed by GitHub
commit 15da82ac3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -320,7 +320,7 @@ class en_G2p(G2p):
# 尝试分离所有格 # 尝试分离所有格
if re.match(r"^([a-z]+)('s)$", word): if re.match(r"^([a-z]+)('s)$", word):
phones = self.qryword(word[:-2]) phones = self.qryword(word[:-2])[:]
# P T K F TH HH 无声辅音结尾 's 发 ['S'] # P T K F TH HH 无声辅音结尾 's 发 ['S']
if phones[-1] in ['P', 'T', 'K', 'F', 'TH', 'HH']: if phones[-1] in ['P', 'T', 'K', 'F', 'TH', 'HH']:
phones.extend(['S']) phones.extend(['S'])