Skip to content

Commit 0664ec0

Browse files
committed
support pronucation
1 parent 9f77914 commit 0664ec0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorflow_tts/processor/baker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ def text_to_sequence(self, text, inference=False):
567567
global _symbol_to_id
568568

569569
if inference:
570-
pinyin = self.pinyin_parser(text, style=Style.TONE3)
570+
pinyin = self.pinyin_parser(text, style=Style.TONE3, errors='ignore')
571571
new_pinyin = []
572572
for x in pinyin:
573573
x = ''.join(x)

0 commit comments

Comments
 (0)