From fd9b7d45e2bac4c3c93077ba48d79890bb79e207 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BE=E6=81=AF?= Date: Wed, 16 Apr 2025 11:24:51 +0800 Subject: [PATCH] Fix logging indentation in CosyVoice TTS method for improved clarity --- cosyvoice/cli/cosyvoice.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cosyvoice/cli/cosyvoice.py b/cosyvoice/cli/cosyvoice.py index f49d2da..4c3b881 100644 --- a/cosyvoice/cli/cosyvoice.py +++ b/cosyvoice/cli/cosyvoice.py @@ -135,9 +135,9 @@ class CosyVoice: logging.info('synthesis text {}'.format(i)) for model_output in self.model.tts(**model_input, stream=stream, speed=speed): speech_len = model_output['tts_speech'].shape[1] / self.sample_rate - logging.info('yield speech len {}, rtf {}'.format(speech_len, (time.time() - start_time) / speech_len)) - yield model_output - start_time = time.time() + logging.info('yield speech len {}, rtf {}'.format(speech_len, (time.time() - start_time) / speech_len)) + yield model_output + start_time = time.time() cuda_stream.synchronize() self.stream_pool.put(cuda_stream)