diff --git a/paddlespeech/t2s/frontend/phonectic.py b/paddlespeech/t2s/frontend/phonectic.py index 873aa359..261db80a 100644 --- a/paddlespeech/t2s/frontend/phonectic.py +++ b/paddlespeech/t2s/frontend/phonectic.py @@ -101,7 +101,8 @@ class English(Phonetics): if (phn in self.vocab_phones and phn not in self.punc) else "sp" for phn in phones ] - phones_list.append(phones) + if len(phones) != 0: + phones_list.append(phones) if merge_sentences: merge_list = sum(phones_list, [])