Skip to content

Commit 0eb598b

Browse files
authored
Merge pull request #2235 from david-95/hongliang-dev
add filter for double punctuation in sentences; add homonym, test=tts
2 parents 2f9bdf2 + 0df7fc8 commit 0eb598b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

paddlespeech/t2s/frontend/phonectic.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ def get_input_ids(self,
101101
if (phn in self.vocab_phones and phn not in self.punc) else "sp"
102102
for phn in phones
103103
]
104-
phones_list.append(phones)
104+
if len(phones) != 0:
105+
phones_list.append(phones)
105106

106107
if merge_sentences:
107108
merge_list = sum(phones_list, [])

0 commit comments

Comments
 (0)