From aafff717eb211f8193c850475a7e08bc41a13e96 Mon Sep 17 00:00:00 2001 From: WongLaw Date: Wed, 15 Feb 2023 06:12:07 +0000 Subject: [PATCH] Cantonese FastSpeech2 e2e infer, test=tts --- paddlespeech/t2s/exps/syn_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddlespeech/t2s/exps/syn_utils.py b/paddlespeech/t2s/exps/syn_utils.py index 5203250d8..e1a126aa2 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 lang == 'zh' or lang == 'canton': + if if lang in {'zh', 'canton'}: sentence = "".join(items[1:]) elif lang == 'en': sentence = " ".join(items[1:])