未验证 提交 0eb598b8 编写于 作者: 小湉湉's avatar 小湉湉 提交者: GitHub

Merge pull request #2235 from david-95/hongliang-dev

add filter for double punctuation in sentences; add homonym, test=tts
...@@ -101,6 +101,7 @@ class English(Phonetics): ...@@ -101,6 +101,7 @@ class English(Phonetics):
if (phn in self.vocab_phones and phn not in self.punc) else "sp" if (phn in self.vocab_phones and phn not in self.punc) else "sp"
for phn in phones for phn in phones
] ]
if len(phones) != 0:
phones_list.append(phones) phones_list.append(phones)
if merge_sentences: if merge_sentences:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册