feat(flow): add whole-utterance batch ASR fallback (P1)
- Accumulate utterance PCM in FlowContinuousCapture for batch retry - Run full-utterance transcribeChunk when stitched final lags partial - Refactor Mac MLX tail drain to shared FlowUtteranceEndCoordinator - Add FlowUtterancePCMStore, UtteranceBatchFallbackPolicy, and tests Co-authored-by: Rocky <hkgood@users.noreply.github.com>
This commit is contained in:
@@ -25,6 +25,18 @@ public enum FlowPipelineDiagnostics {
|
||||
OSGLog.asr.info("finalChunkRecovery \(action) chunk=\(chunkIndex)")
|
||||
}
|
||||
|
||||
public static func logBatchFallback(
|
||||
sampleCount: Int,
|
||||
stitchedLength: Int,
|
||||
partialLength: Int,
|
||||
batchLength: Int
|
||||
) {
|
||||
OSGLog.flow.info(
|
||||
"batchFallback samples=\(sampleCount) stitchedLen=\(stitchedLength) " +
|
||||
"partialLen=\(partialLength) batchLen=\(batchLength)"
|
||||
)
|
||||
}
|
||||
|
||||
public static func logChunkFinalize(
|
||||
chunkCount: Int,
|
||||
lastChunkSamples: Int,
|
||||
|
||||
Reference in New Issue
Block a user