We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46d02d8 commit 3f7614cCopy full SHA for 3f7614c
Sources/F5TTS/F5TTS.swift
@@ -105,7 +105,7 @@ public class F5TTS: Module {
105
106
if resolvedDuration == nil, let durationPredictor = self._durationPredictor {
107
let estimatedDurationInSeconds = durationPredictor(cond, text: text).item(Float32.self)
108
- resolvedDuration = MLXArray(Int(Double(estimatedDurationInSeconds) * F5TTS.framesPerSecond)) + lens
+ resolvedDuration = MLXArray(Int(Double(estimatedDurationInSeconds) * F5TTS.framesPerSecond))
109
print("Generating \(estimatedDurationInSeconds) seconds (\(resolvedDuration) total frames) of audio...")
110
}
111
0 commit comments