소스 검색

Fix logging indentation in CosyVoice TTS method for improved clarity

禾息 1 년 전
부모
커밋
fd9b7d45e2
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      cosyvoice/cli/cosyvoice.py

+ 3 - 3
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)