Spaces:
Running
on
Zero
Running
on
Zero
Sync from GitHub repo
Browse filesThis Space is synced from the GitHub repo: https://github.com/SWivid/F5-TTS. Please submit contributions to the Space there
src/f5_tts/runtime/triton_trtllm/client_grpc.py
CHANGED
@@ -310,8 +310,9 @@ async def send(
|
|
310 |
audio_save_path = os.path.join(audio_save_dir, f"{item['target_audio_path']}.wav")
|
311 |
sf.write(audio_save_path, audio, save_sample_rate, "PCM_16")
|
312 |
|
313 |
-
|
314 |
-
|
|
|
315 |
|
316 |
return total_duration, latency_data
|
317 |
|
|
|
310 |
audio_save_path = os.path.join(audio_save_dir, f"{item['target_audio_path']}.wav")
|
311 |
sf.write(audio_save_path, audio, save_sample_rate, "PCM_16")
|
312 |
|
313 |
+
actual_duration = len(audio) / save_sample_rate
|
314 |
+
latency_data.append((end, actual_duration))
|
315 |
+
total_duration += actual_duration
|
316 |
|
317 |
return total_duration, latency_data
|
318 |
|