Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ public actor SlidingWindowAsrManager {
// Append to raw sample buffer and attempt windowed processing
await self.appendSamplesAndProcess(samples)
} catch {
if error is CancellationError || Task.isCancelled {
return
}
let streamingError = SlidingWindowAsrError.audioBufferProcessingFailed(error)
logger.error(
"Audio buffer processing error: \(streamingError.localizedDescription)")
Expand Down Expand Up @@ -470,6 +473,9 @@ public actor SlidingWindowAsrManager {
updateContinuation?.yield(update)

} catch {
if error is CancellationError || Task.isCancelled {
return
}
let streamingError = SlidingWindowAsrError.modelProcessingFailed(error)
logger.error("Model processing error: \(streamingError.localizedDescription)")

Expand Down
Loading