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()