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
fixed issues with FA version mismatch and minor bug fix
altic-devb8f08f189e0d
diff --git a/Fluid.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Fluid.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolvedindex 1d65ecc4..dfc59b63 100644--- a/Fluid.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved+++ b/Fluid.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved@@ -33,8 +33,8 @@"kind" : "remoteSourceControl","location" : "https://github.com/FluidInference/FluidAudio.git","state" : {- "branch" : "main",- "revision" : "038c9229ac457fd9653741360c56bc2fa0917705"+ "revision" : "d540f0092da772e19715dfdfbb606ee8fc3b6023",+ "version" : "0.7.10"}},{diff --git a/Sources/Fluid/Networking/AppleIntelligenceProvider.swift b/Sources/Fluid/Networking/AppleIntelligenceProvider.swiftindex bd5b88e3..0bf2190c 100644--- a/Sources/Fluid/Networking/AppleIntelligenceProvider.swift+++ b/Sources/Fluid/Networking/AppleIntelligenceProvider.swift@@ -113,3 +113,4 @@ final class AppleIntelligenceProvider {#endif+diff --git a/Sources/Fluid/Networking/ModelDownloader.swift b/Sources/Fluid/Networking/ModelDownloader.swiftindex 86d00f95..5dc74686 100644--- a/Sources/Fluid/Networking/ModelDownloader.swift+++ b/Sources/Fluid/Networking/ModelDownloader.swift@@ -319,14 +319,14 @@ extension HuggingFaceModelDownloader// Check if new structure existslet hasNewStructure = fm.fileExists(atPath: preprocessorUrl.path) && fm.fileExists(atPath: encoderUrl.path)- let melEncoder: MLModel+ let encoder: MLModel+ let preprocessor: MLModel?if hasNewStructure {// Load with new structure (separate Preprocessor and Encoder)- // For FluidAudio API, we use the Encoder as melEncoderprint("[ModelDL] Loading with new model structure (Preprocessor + Encoder)")- print("[ModelDL] Using Encoder as melEncoder for FluidAudio API")- melEncoder = try MLModel(contentsOf: encoderUrl, configuration: config)+ preprocessor = try MLModel(contentsOf: preprocessorUrl, configuration: config)+ encoder = try MLModel(contentsOf: encoderUrl, configuration: config)} else {// Fallback: Try old structure (MelEncoder)let melEncUrl = repoDirectory.appendingPathComponent("MelEncoder.mlmodelc")@@ -335,7 +335,8 @@ extension HuggingFaceModelDownloaderprint("[ModelDL] MelEncoder exists: \(fm.fileExists(atPath: melEncUrl.path))")if fm.fileExists(atPath: melEncUrl.path) {- melEncoder = try MLModel(contentsOf: melEncUrl, configuration: config)+ encoder = try MLModel(contentsOf: melEncUrl, configuration: config)+ preprocessor = nilprint("[ModelDL] Using MelEncoder (legacy mode)")} else {throw NSError(domain: "ModelDL", code: -1, userInfo: [@@ -363,12 +364,18 @@ extension HuggingFaceModelDownloaderprint("[ModelDL] Creating AsrModels")+ // For v2 models without separate preprocessor, use encoder as preprocessor+ // For v3 models, use the separate preprocessor+ let finalPreprocessor = preprocessor ?? encoder+return AsrModels(- melEncoder: melEncoder,+ encoder: encoder,+ preprocessor: finalPreprocessor,decoder: decoder,joint: joint,configuration: config,- vocabulary: vocabulary+ vocabulary: vocabulary,+ version: preprocessor != nil ? .v3 : .v2)}}diff --git a/Sources/Fluid/Persistence/ChatHistoryStore.swift b/Sources/Fluid/Persistence/ChatHistoryStore.swiftindex 52b505b0..bc46a090 100644--- a/Sources/Fluid/Persistence/ChatHistoryStore.swift+++ b/Sources/Fluid/Persistence/ChatHistoryStore.swift@@ -266,3 +266,4 @@ final class ChatHistoryStore: ObservableObject {}}+diff --git a/Sources/Fluid/Persistence/SettingsStore.swift b/Sources/Fluid/Persistence/SettingsStore.swiftindex c12fe250..21732338 100644--- a/Sources/Fluid/Persistence/SettingsStore.swift+++ b/Sources/Fluid/Persistence/SettingsStore.swift@@ -1,5 +1,5 @@import Foundation-Cimport ServiceManagement+import ServiceManagementimport ApplicationServicesimport AppKitimport Combinediff --git a/Sources/Fluid/Services/MenuBarManager.swift b/Sources/Fluid/Services/MenuBarManager.swiftindex c0900d95..e1711169 100644--- a/Sources/Fluid/Services/MenuBarManager.swift+++ b/Sources/Fluid/Services/MenuBarManager.swift@@ -394,13 +394,13 @@ final class MenuBarManager: ObservableObject {@objc private func checkForUpdates(_ sender: Any?) {print("🔎 Menu action: Check for Updates…")NSLog("🔎 Menu action: Check for Updates…")-+// Call the AppDelegate's manual update check method if availableif let appDelegate = NSApp.delegate as? AppDelegate {appDelegate.checkForUpdatesManually()return}-+// Fallback: perform direct, tolerant check so the menu item always does somethingTask { @MainActor indo {@@ -435,33 +435,27 @@ final class MenuBarManager: ObservableObject {// Activate the app and bring it to the frontNSApp.activate(ignoringOtherApps: true)- // Find and restore the main window+ // Find and restore an existing primary window (avoid overlay/panel windows)var foundWindow = false- for window in NSApp.windows {- if window.title.contains("FluidVoice") || window.isMainWindow || window.contentView != nil {- // Handle minimized windows- if window.isMiniaturized {- window.deminiaturize(nil)- }-- // Bring to current space and make key- window.makeKeyAndOrderFront(nil)- window.orderFrontRegardless()- foundWindow = true- break+ let candidateWindows = NSApp.windows+ .filter { win in+ // Prefer titled, key-capable windows or ones explicitly titled as our app+ win.title.contains("FluidVoice") || (win.styleMask.contains(.titled) && win.canBecomeKey)}- }- // If no window found, try to activate any available window- if !foundWindow && !NSApp.windows.isEmpty {- if let firstWindow = NSApp.windows.first {- if firstWindow.isMiniaturized {- firstWindow.deminiaturize(nil)- }- firstWindow.makeKeyAndOrderFront(nil)- firstWindow.orderFrontRegardless()- foundWindow = true+ if let window = candidateWindows.first {+ if window.isMiniaturized {+ window.deminiaturize(nil)}+ window.makeKeyAndOrderFront(nil)+ window.orderFrontRegardless()+ foundWindow = true+ }++ // If still nothing suitable, create a new main window+ if !foundWindow {+ createAndShowMainWindow()+ foundWindow = true}// Final attempt: ensure app is active and visible@@ -469,4 +463,30 @@ final class MenuBarManager: ObservableObject {NSApp.activate(ignoringOtherApps: true)}}++ /// Create and present a fresh main window hosting `ContentView`+ private func createAndShowMainWindow() {+ // Build the SwiftUI root view with required environment+ let rootView = ContentView()+ .environmentObject(self)+ .appTheme(.dark)+ .preferredColorScheme(.dark)++ // Host inside an AppKit window+ let hostingController = NSHostingController(rootView: rootView)+ let window = NSWindow(+ contentRect: NSRect(x: 0, y: 0, width: 1000, height: 700),+ styleMask: [.titled, .closable, .miniaturizable, .resizable],+ backing: .buffered,+ defer: false+ )+ window.title = "FluidVoice"+ window.contentViewController = hostingController+ window.center()+ window.makeKeyAndOrderFront(nil)+ window.orderFrontRegardless()++ // Bring app to front in case we're running as an accessory app (no Dock)+ NSApp.activate(ignoringOtherApps: true)+ }}diff --git a/Sources/Fluid/fluidApp.swift b/Sources/Fluid/fluidApp.swiftindex 67ddd8a5..beb779b8 100644--- a/Sources/Fluid/fluidApp.swift+++ b/Sources/Fluid/fluidApp.swift@@ -16,7 +16,7 @@ struct fluidApp: App {@State private var theme = AppTheme.darkvar body: some Scene {- WindowGroup {+ WindowGroup(id: "main") {ContentView().environmentObject(menuBarManager).appTheme(theme)