mirror of
https://github.com/pstrueb/piper.git
synced 2026-04-25 09:14:49 +00:00
Fix RTF
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user