Fastest and only macOS Dictation app with on-device STT and custom trained AI enhancement model. Windows, iOS testflight! Android, Linux waitlist open! A local Wispr Flow alternative. Follow https://x.com/fluidvoiceapp for more
perf(asr): cancel Transcribing status as soon as inference ends
altic-dev22270dccd7fd
diff --git a/Sources/Fluid/Services/ASRService.swift b/Sources/Fluid/Services/ASRService.swiftindex 2eae883d..17d7ed68 100644--- a/Sources/Fluid/Services/ASRService.swift+++ b/Sources/Fluid/Services/ASRService.swift@@ -2977,6 +2977,9 @@ final class ASRService: ObservableObject {let executionStartedAt = ProcessInfo.processInfo.systemUptimeDebugLogger.shared.debug("ASR_BENCH t=\(executionStartedAt) final_executor_begin mainThread=\(Thread.isMainThread)", source: "ASRBenchmark")defer {+ // Cancel here, not after the main-actor hop: the status+ // would otherwise fire while the result waits for main.+ delayedFinalStatusTask.cancel()DebugLogger.shared.debug("ASR_BENCH t=\(ProcessInfo.processInfo.systemUptime) final_executor_end", source: "ASRBenchmark")}return try await provider.transcribeFinal(pcm)