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
#156, #157, #158, #159, #161 related - WIP fix ; 1.5.7-beta.2: Vocabulary boosting toggle, updater fix, compact overlay UI
altic-devd653fb99fe36
diff --git a/Info.plist b/Info.plistindex 76e3b9a9..f771498e 100644--- a/Info.plist+++ b/Info.plist@@ -15,7 +15,7 @@<key>CFBundleVersion</key><string>7</string><key>CFBundleShortVersionString</key>- <string>1.5.7-beta.1</string>+ <string>1.5.7-beta.3</string><key>LSMinimumSystemVersion</key><string>$(MACOSX_DEPLOYMENT_TARGET)</string><key>LSApplicationCategoryType</key>diff --git a/Sources/Fluid/Persistence/SettingsStore.swift b/Sources/Fluid/Persistence/SettingsStore.swiftindex dfc05255..d58f951e 100644--- a/Sources/Fluid/Persistence/SettingsStore.swift+++ b/Sources/Fluid/Persistence/SettingsStore.swift@@ -92,6 +92,7 @@ final class SettingsStore: ObservableObject {// Custom Dictionarystatic let customDictionaryEntries = "CustomDictionaryEntries"+ static let vocabularyBoostingEnabled = "VocabularyBoostingEnabled"// Transcription Provider (ASR)static let selectedTranscriptionProvider = "SelectedTranscriptionProvider"@@ -1947,6 +1948,18 @@ final class SettingsStore: ObservableObject {}}+ var vocabularyBoostingEnabled: Bool {+ get {+ let value = self.defaults.object(forKey: Keys.vocabularyBoostingEnabled)+ return value as? Bool ?? false+ }+ set {+ objectWillChange.send()+ self.defaults.set(newValue, forKey: Keys.vocabularyBoostingEnabled)+ NotificationCenter.default.post(name: .parakeetVocabularyDidChange, object: nil)+ }+ }+/// Custom dictionary entries for word replacementvar customDictionaryEntries: [CustomDictionaryEntry] {get {diff --git a/Sources/Fluid/Services/ASRService.swift b/Sources/Fluid/Services/ASRService.swiftindex 10257821..81b72c27 100644--- a/Sources/Fluid/Services/ASRService.swift+++ b/Sources/Fluid/Services/ASRService.swift@@ -179,9 +179,14 @@ final class ASRService: ObservableObject {if let existing = fluidAudioProvider {return existing}- let provider = FluidAudioProvider()+ let provider = FluidAudioProvider(+ configureWordBoosting: SettingsStore.shared.vocabularyBoostingEnabled+ )self.fluidAudioProvider = provider- DebugLogger.shared.info("ASRService: Created FluidAudio provider", source: "ASRService")+ DebugLogger.shared.info(+ "ASRService: Created FluidAudio provider [vocabBoosting=\(SettingsStore.shared.vocabularyBoostingEnabled)]",+ source: "ASRService"+ )return provider}diff --git a/Sources/Fluid/Services/SimpleUpdater.swift b/Sources/Fluid/Services/SimpleUpdater.swiftindex 5c535b6f..e8aed701 100644--- a/Sources/Fluid/Services/SimpleUpdater.swift+++ b/Sources/Fluid/Services/SimpleUpdater.swift@@ -227,9 +227,9 @@ final class SimpleUpdater {throw PMKError.cancelled // mimic AppUpdater semantics for up-to-date}- // Find asset matching: "{repo-lower}-{version-no-v}.*" and zip preferred- let verString = self.versionString(latestVersion)- let prefix = "\(repo.lowercased())-\(verString)"+ // Find asset matching: "{repo-lower}-{version-from-tag}.*" and zip preferred+ let rawVersion = latestTag.hasPrefix("v") ? String(latestTag.dropFirst()) : latestTag+ let prefix = "\(repo.lowercased())-\(rawVersion)"let asset = latest.assets.first { asset inlet base = (asset.name as NSString).deletingPathExtension.lowercased()return (base == prefix) &&diff --git a/Sources/Fluid/UI/CustomDictionaryView.swift b/Sources/Fluid/UI/CustomDictionaryView.swiftindex 33861702..327390a5 100644--- a/Sources/Fluid/UI/CustomDictionaryView.swift+++ b/Sources/Fluid/UI/CustomDictionaryView.swift@@ -23,6 +23,7 @@ struct CustomDictionaryView: View {@State private var boostStatusMessage = "Add custom words for better Parakeet recognition."@State private var boostHasError = false+ @State private var vocabBoostingEnabled: Bool = SettingsStore.shared.vocabularyBoostingEnabledvar body: some View {ScrollView(.vertical, showsIndicators: false) {@@ -295,6 +296,28 @@ struct CustomDictionaryView: View {.font(.caption2).foregroundStyle(.secondary)+ HStack {+ Toggle(isOn: self.$vocabBoostingEnabled) {+ VStack(alignment: .leading, spacing: 2) {+ Text("Vocabulary Boosting")+ .font(.subheadline.weight(.medium))+ Text("Uses a secondary ML model to improve recognition of custom words. Disable if you experience issues.")+ .font(.caption2)+ .foregroundStyle(.secondary)+ }+ }+ .toggleStyle(.switch)+ .controlSize(.small)+ .onChange(of: self.vocabBoostingEnabled) { _, newValue in+ SettingsStore.shared.vocabularyBoostingEnabled = newValue+ }+ }+ .padding(10)+ .background(+ RoundedRectangle(cornerRadius: 8)+ .fill(self.theme.palette.contentBackground.opacity(0.6))+ )+if self.boostTerms.isEmpty {VStack(spacing: 10) {Image(systemName: "waveform.and.magnifyingglass")diff --git a/Sources/Fluid/Views/BottomOverlayView.swift b/Sources/Fluid/Views/BottomOverlayView.swiftindex c10a3c10..5c4b238e 100644--- a/Sources/Fluid/Views/BottomOverlayView.swift+++ b/Sources/Fluid/Views/BottomOverlayView.swift@@ -1682,6 +1682,10 @@ struct BottomOverlayView: View {LayoutConstants.get(for: self.settings.overlaySize)}+ private var isCompactControls: Bool {+ self.settings.overlaySize == .medium+ }+private var modeColor: Color {self.contentState.mode.notchColor}@@ -1929,9 +1933,13 @@ struct BottomOverlayView: View {private var modeSelectorTrigger: some View {HStack(spacing: 5) {- Text("Mode:")- .font(.system(size: self.promptSelectorFontSize, weight: .medium))- .foregroundStyle(.white.opacity(0.5))+ if !self.isCompactControls {+ Text("Mode:")+ .font(.system(size: self.promptSelectorFontSize, weight: .medium))+ .foregroundStyle(.white.opacity(0.5))+ .lineLimit(1)+ .fixedSize(horizontal: true, vertical: false)+ }Text(self.modeLabel).font(.system(size: self.promptSelectorFontSize, weight: .semibold)).foregroundStyle(.white.opacity(0.75))@@ -1940,6 +1948,7 @@ struct BottomOverlayView: View {.font(.system(size: max(self.promptSelectorFontSize - 1, 8), weight: .semibold)).foregroundStyle(.white.opacity(0.45))}+ .fixedSize(horizontal: true, vertical: false).padding(.horizontal, 8).padding(.vertical, self.promptSelectorVerticalPadding).background(@@ -1975,9 +1984,13 @@ struct BottomOverlayView: View {private var promptSelectorTrigger: some View {HStack(spacing: 5) {- Text("Prompt:")- .font(.system(size: self.promptSelectorFontSize, weight: .medium))- .foregroundStyle(.white.opacity(0.5))+ if !self.isCompactControls {+ Text("Prompt:")+ .font(.system(size: self.promptSelectorFontSize, weight: .medium))+ .foregroundStyle(.white.opacity(0.5))+ .lineLimit(1)+ .fixedSize(horizontal: true, vertical: false)+ }Text(self.selectedPromptLabel).font(.system(size: self.promptSelectorFontSize, weight: .semibold)).foregroundStyle(.white.opacity(0.75))@@ -1986,6 +1999,7 @@ struct BottomOverlayView: View {.font(.system(size: max(self.promptSelectorFontSize - 1, 8), weight: .semibold)).foregroundStyle(.white.opacity(0.45))}+ .fixedSize(horizontal: true, vertical: false).padding(.horizontal, 8).padding(.vertical, self.promptSelectorVerticalPadding).background(@@ -2038,10 +2052,12 @@ struct BottomOverlayView: View {Text("Actions").font(.system(size: self.promptSelectorFontSize, weight: .medium)).foregroundStyle(.white.opacity(0.75))+ .lineLimit(1)Image(systemName: "chevron.up").font(.system(size: max(self.promptSelectorFontSize - 1, 8), weight: .semibold)).foregroundStyle(.white.opacity(0.45))}+ .fixedSize(horizontal: true, vertical: false).padding(.horizontal, 8).padding(.vertical, self.promptSelectorVerticalPadding).background(@@ -2055,18 +2071,27 @@ struct BottomOverlayView: View {private var aiToggleChip: some View {let disabled = self.contentState.isProcessinglet isEnabled = self.settings.enableAIProcessing- return HStack(spacing: 5) {- Text("AI:")- .font(.system(size: self.promptSelectorFontSize, weight: .medium))- .foregroundStyle(.white.opacity(0.5))- Text(isEnabled ? "On" : "Off")- .font(.system(size: self.promptSelectorFontSize, weight: .semibold))- .foregroundStyle(isEnabled ? .white.opacity(0.82) : .white.opacity(0.7))- .lineLimit(1)- Image(systemName: isEnabled ? "brain.fill" : "brain")- .font(.system(size: max(self.promptSelectorFontSize - 1, 8), weight: .semibold))- .foregroundStyle(isEnabled ? .white.opacity(0.65) : .white.opacity(0.45))+ return HStack(spacing: self.isCompactControls ? 0 : 5) {+ if self.isCompactControls {+ Text(isEnabled ? "AI On" : "AI Off")+ .font(.system(size: self.promptSelectorFontSize, weight: .semibold))+ .foregroundStyle(isEnabled ? .white.opacity(0.82) : .white.opacity(0.7))+ .lineLimit(1)+ } else {+ Text("AI:")+ .font(.system(size: self.promptSelectorFontSize, weight: .medium))+ .foregroundStyle(.white.opacity(0.5))+ .lineLimit(1)+ Text(isEnabled ? "On" : "Off")+ .font(.system(size: self.promptSelectorFontSize, weight: .semibold))+ .foregroundStyle(isEnabled ? .white.opacity(0.82) : .white.opacity(0.7))+ .lineLimit(1)+ Image(systemName: isEnabled ? "brain.fill" : "brain")+ .font(.system(size: max(self.promptSelectorFontSize - 1, 8), weight: .semibold))+ .foregroundStyle(isEnabled ? .white.opacity(0.65) : .white.opacity(0.45))+ }}+ .fixedSize(horizontal: true, vertical: false).padding(.horizontal, 8).padding(.vertical, self.promptSelectorVerticalPadding).background(@@ -2154,15 +2179,17 @@ struct BottomOverlayView: View {var body: some View {VStack(spacing: max(4, self.layout.vPadding / 2)) {if self.layout.showsTopControls {- HStack(spacing: 8) {+ HStack(spacing: self.isCompactControls ? 6 : 8) {self.modeSelectorViewself.promptSelectorView- Spacer(minLength: 6)+ Spacer(minLength: 4)self.aiToggleChipself.actionsSelectorView- self.settingsChip+ if !self.isCompactControls {+ self.settingsChip+ }}- .frame(maxWidth: .infinity, alignment: .leading)+ .frame(maxWidth: .infinity, alignment: self.isCompactControls ? .center : .leading).padding(.horizontal, self.layout.hPadding)}