From 9c4341ab8ff590baa5fe636e05327f7ea2f5104f Mon Sep 17 00:00:00 2001 From: WongLaw Date: Wed, 15 Feb 2023 06:19:22 +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 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:])