From e003b405e9b76a0cfbaf18564296fef0dd289e30 Mon Sep 17 00:00:00 2001 From: yanli Date: Sun, 10 Aug 2025 21:37:35 +0800 Subject: [PATCH] fix text generator as input --- cosyvoice/cli/frontend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cosyvoice/cli/frontend.py b/cosyvoice/cli/frontend.py index f98b0d61..e2a87cde 100644 --- a/cosyvoice/cli/frontend.py +++ b/cosyvoice/cli/frontend.py @@ -121,7 +121,7 @@ def _extract_speech_feat(self, speech): def text_normalize(self, text, split=True, text_frontend=True): if isinstance(text, Generator): logging.info('get tts_text generator, will skip text_normalize!') - return [text] + return text if text_frontend is False or text == '': return [text] if split is True else text text = text.strip()