This commit is contained in:
Michael Hansen
2023-04-10 15:42:55 -05:00
parent c53f739f5f
commit 28a45a2a46
3 changed files with 16 additions and 4 deletions

View File

@@ -78,7 +78,7 @@ def synthesize(model, phoneme_ids, speaker_id, sample_rate) -> float:
)
end_time = time.monotonic_ns()
audio_sec = (len(audio) / 2) / sample_rate
audio_sec = len(audio) / sample_rate
infer_sec = (end_time - start_time) / 1e9
rtf = infer_sec / audio_sec