diff --git a/paddlespeech/t2s/frontend/phonectic.py b/paddlespeech/t2s/frontend/phonectic.py index a9d04f3e775fe6970ab120ce3c903bfb84ad0dd6..b55c5b5c275c366d4a3e91f2e28330866ddf1460 100644 --- a/paddlespeech/t2s/frontend/phonectic.py +++ b/paddlespeech/t2s/frontend/phonectic.py @@ -99,8 +99,6 @@ class English(Phonetics): if (phn in self.vocab_phones and phn not in self.punc) else "sp" for phn in phones ] - # when sentences have double punctuations in the end, like "!\"",or "?\"", will get null list like [] - # add a condition to filter it if len(phones) != 0: # replace unk phone with sp phones_list.append(phones)