1 parent 8eb4964 commit 7555c46Copy full SHA for 7555c46
1 file changed
Sources/FluidAudio/ASR/Streaming/StabilizedStreamingEmitter.swift
@@ -86,8 +86,13 @@ final class StabilizedStreamingEmitter {
86
if extendsCommittedPrefix {
87
let appendedCount = max(0, tokenIds.count - commitCount)
88
if appendedCount > 0 {
89
- let canQuickCommit =
90
- timeSincePreviousUpdate >= config.quickCommitThresholdMs || repeatedHypothesis
+ let canQuickCommit: Bool
+ if config.emitWordBoundaries {
91
+ canQuickCommit = repeatedHypothesis
92
+ } else {
93
+ canQuickCommit =
94
+ timeSincePreviousUpdate >= config.quickCommitThresholdMs || repeatedHypothesis
95
+ }
96
if canQuickCommit {
97
let candidatePrefix = Array(tokenIds.prefix(commitCount + appendedCount))
98
let quickCommitCount = determineCommitCount(
0 commit comments