diff --git a/paddlespeech/t2s/exps/syn_utils.py b/paddlespeech/t2s/exps/syn_utils.py index e1a126aa2..dd3b4d553 100644 --- a/paddlespeech/t2s/exps/syn_utils.py +++ b/paddlespeech/t2s/exps/syn_utils.py @@ -112,7 +112,7 @@ def get_sentences(text_file: Optional[os.PathLike], lang: str='zh'): if line.strip() != "": items = re.split(r"\s+", line.strip(), 1) utt_id = items[0] - if if lang in {'zh', 'canton'}: + if lang in {'zh', 'canton'}: sentence = "".join(items[1:]) elif lang == 'en': sentence = " ".join(items[1:])