Skip to content

Commit d562092

Browse files
committed
format
1 parent 46fed69 commit d562092

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Sources/FluidAudio/ASR/Streaming/StreamingAsrManager.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,8 @@ public actor StreamingAsrManager {
267267
let minimumProcessingTime: TimeInterval = 1e-6
268268

269269
let maxTimestampFrame = accumulatedTokenTimestamps.max() ?? 0
270-
let derivedSampleCount = maxTimestampFrame > 0
270+
let derivedSampleCount =
271+
maxTimestampFrame > 0
271272
? (maxTimestampFrame + 1) * ASRConstants.samplesPerEncoderFrame : 0
272273
let sampleCount = max(totalSamplesProcessed, derivedSampleCount)
273274
let processingTime = sampleCount > 0 ? max(elapsedTime, minimumProcessingTime) : elapsedTime

0 commit comments

Comments
 (0)