Skip to content

Commit 4e2f826

Browse files
committed
fix words filter in preprocess_english
1 parent 605b278 commit 4e2f826

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

synthesize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def preprocess_english(text, preprocess_config):
6060

6161
g2p = G2p()
6262
phones = []
63-
words = re.split(r"([,;.\-\?\!\s+])", text)
63+
words = filter(None, re.split(r"([,;.\-\?\!\s+])", text))
6464
for w in words:
6565
if w.lower() in lexicon:
6666
phones += lexicon[w.lower()]

0 commit comments

Comments
 (0)