This commit is contained in:
yumoqing 2025-09-19 14:33:33 +08:00
parent f5c325b96c
commit 698dfdf918

View File

@ -202,7 +202,7 @@ class F5TTS:
async def inference_stream(self, prompt, speaker, speed_factor=1.0):
total_duration = 0
async for d in self._inference_stream(prompt, speaker, speed_factor=speed_factor):
sampels = d['audio'].shape[0]
samples = d['audio'].shape[0]
duration = samples / d['sample_rate']
audio_b64=audio_ndarray_to_base64(d['audio'], d['sample_rate'])
d['audio'] = audio_b64