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: default to clipboard free insert
altic-deve407b05a5e31
diff --git a/Sources/Fluid/Persistence/SettingsStore.swift b/Sources/Fluid/Persistence/SettingsStore.swiftindex 9a077fbc..20abfeaf 100644--- a/Sources/Fluid/Persistence/SettingsStore.swift+++ b/Sources/Fluid/Persistence/SettingsStore.swift@@ -3569,6 +3569,15 @@ final class SettingsStore: ObservableObject {}}+ var supportsFastDictationProcessing: Bool {+ switch self {+ case .parakeetTDT, .parakeetTDTv2:+ return true+ default:+ return false+ }+ }+/// Whether this model supports real-time streaming/chunk processing./// Large Whisper models are too slow for streaming, so they only do final transcription on stop.var supportsStreaming: Bool {@@ -3982,9 +3991,9 @@ extension SettingsStore {var description: String {switch self {case .standard:- return "Tries to insert text without changing the clipboard. Usually a bit slower, and may fail or behave inconsistently in some apps."+ return "Fastest path. Inserts text without changing the clipboard, with paste fallback if direct insertion is unavailable."case .reliablePaste:- 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."+ return "Compatibility path. Uses a temporary clipboard paste, so clipboard history apps may briefly record dictated text."}}}@@ -3994,7 +4003,7 @@ extension SettingsStore {guard let raw = self.defaults.string(forKey: Keys.textInsertionMode),let mode = TextInsertionMode(rawValue: raw)else {- return .reliablePaste+ return .standard}return mode}diff --git a/Sources/Fluid/Services/ASRService.swift b/Sources/Fluid/Services/ASRService.swiftindex a39ed84d..932de078 100644--- a/Sources/Fluid/Services/ASRService.swift+++ b/Sources/Fluid/Services/ASRService.swift@@ -2941,6 +2941,7 @@ private extension ASRService {func runFastPreviewStopGraceIfNeeded() async {guard SettingsStore.shared.parakeetFinalizationMode == .tokenTimedChunkMerge else { return }+ guard SettingsStore.shared.selectedSpeechModel.supportsFastDictationProcessing else { return }guard SettingsStore.shared.selectedSpeechModel.supportsStreaming else { return }guard self.transcriptionProvider is FluidAudioProvider else { return }diff --git a/Sources/Fluid/UI/SettingsView.swift b/Sources/Fluid/UI/SettingsView.swiftindex d2a877c0..baa8962d 100644--- a/Sources/Fluid/UI/SettingsView.swift+++ b/Sources/Fluid/UI/SettingsView.swift@@ -1456,17 +1456,28 @@ struct SettingsView: View {Spacer()- Picker("", selection: self.$settings.parakeetFinalizationMode) {+ Picker("", selection: Binding(+ get: {+ self.settings.selectedSpeechModel.supportsFastDictationProcessing+ ? self.settings.parakeetFinalizationMode+ : .stableFullFinal+ },+ set: { mode in+ if self.settings.selectedSpeechModel.supportsFastDictationProcessing {+ self.settings.parakeetFinalizationMode = mode+ }+ }+ )) {ForEach(ParakeetFinalizationMode.allCases) { mode inText(mode.displayName).tag(mode)}}.pickerStyle(.menu).frame(width: 170, alignment: .trailing)- .disabled(self.asr.isRunning)+ .disabled(self.asr.isRunning || !self.settings.selectedSpeechModel.supportsFastDictationProcessing)}- Text("Standard: most reliable. Fast: faster, but maybe inaccurate.")+ Text(self.settings.selectedSpeechModel.supportsFastDictationProcessing ? "Standard: most reliable. Fast: faster, but maybe inaccurate." : "Fast processing is available for Parakeet TDT v2 and v3.").font(.caption).foregroundStyle(.secondary)