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
Tune reliable paste timing and messaging
altic-dev47b495733a15
diff --git a/Sources/Fluid/ContentView.swift b/Sources/Fluid/ContentView.swiftindex 73d03e3d..a72d6758 100644--- a/Sources/Fluid/ContentView.swift+++ b/Sources/Fluid/ContentView.swift@@ -2175,7 +2175,7 @@ struct ContentView: View {)if activated {// Small delay to allow focus to settle before typing events fire.- let settleNanos: UInt64 = focusedElementRestored ? 40_000_000 : 90_000_000+ let settleNanos: UInt64 = 10_000_000try? await Task.sleep(nanoseconds: settleNanos)}}diff --git a/Sources/Fluid/Persistence/SettingsStore.swift b/Sources/Fluid/Persistence/SettingsStore.swiftindex df5ab3c0..60294295 100644--- a/Sources/Fluid/Persistence/SettingsStore.swift+++ b/Sources/Fluid/Persistence/SettingsStore.swift@@ -2636,9 +2636,9 @@ extension SettingsStore {var description: String {switch self {case .standard:- return "Tries to avoid clipboard changes by typing directly when possible. May fail or behave inconsistently in some apps."+ return "Tries to avoid clipboard changes by typing directly when possible. Usually a bit slower, and may fail or behave inconsistently in some apps."case .reliablePaste:- return "Works best across browsers and desktop apps. Uses a temporary clipboard paste, so clipboard history apps may briefly record dictated text."+ return "Usually faster and works best across browsers and desktop apps. Uses a temporary clipboard paste, so clipboard history apps may briefly record dictated text."}}}diff --git a/Sources/Fluid/Services/TypingService.swift b/Sources/Fluid/Services/TypingService.swiftindex cdf4bf0e..41d0300f 100644--- a/Sources/Fluid/Services/TypingService.swift+++ b/Sources/Fluid/Services/TypingService.swift@@ -180,8 +180,10 @@ final class TypingService {}self.log("[TypingService] Starting async text insertion process")- // Longer delay to ensure target app is ready and focused- usleep(200_000) // 200ms delay - more reliable for app switching+ if self.textInsertionMode != .reliablePaste {+ // Direct typing paths are more timing-sensitive after app activation.+ usleep(200_000)+ }self.log("[TypingService] Delay completed, calling insertTextInstantly")self.insertTextInstantly(text, preferredTargetPID: preferredTargetPID)}