mirror of
https://github.com/FunAudioLLM/CosyVoice.git
synced 2026-02-05 18:09:24 +08:00
Fix logging indentation in CosyVoice TTS method for improved clarity
This commit is contained in:
@@ -135,9 +135,9 @@ class CosyVoice:
|
|||||||
logging.info('synthesis text {}'.format(i))
|
logging.info('synthesis text {}'.format(i))
|
||||||
for model_output in self.model.tts(**model_input, stream=stream, speed=speed):
|
for model_output in self.model.tts(**model_input, stream=stream, speed=speed):
|
||||||
speech_len = model_output['tts_speech'].shape[1] / self.sample_rate
|
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))
|
logging.info('yield speech len {}, rtf {}'.format(speech_len, (time.time() - start_time) / speech_len))
|
||||||
yield model_output
|
yield model_output
|
||||||
start_time = time.time()
|
start_time = time.time()
|
||||||
cuda_stream.synchronize()
|
cuda_stream.synchronize()
|
||||||
self.stream_pool.put(cuda_stream)
|
self.stream_pool.put(cuda_stream)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user