Skip to content

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

Prepare Cohere beta release validation fixes

altic-devd22534b65c2e
diff --git a/Fluid.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Fluid.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
index 89dec41d..1122d6f1 100644
--- a/Fluid.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
+++ b/Fluid.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
@@ -34,7 +34,7 @@
"location" : "https://github.com/altic-dev/FluidAudio.git",
"state" : {
"branch" : "B/cohere-coreml-asr",
- "revision" : "1502a6a8095bb1fc9831cc239d69a9a837d665a7"
+ "revision" : "e1c6ef7679bd11f4275cc6b8d582da1d42314a03"
}
},
{
diff --git a/Info.plist b/Info.plist
index 45b1c97b..ef083cab 100644
--- a/Info.plist
+++ b/Info.plist
@@ -15,7 +15,7 @@
<key>CFBundleVersion</key>
<string>8</string>
<key>CFBundleShortVersionString</key>
- <string>1.5.10</string>
+ <string>1.5.11-beta.1</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>LSApplicationCategoryType</key>
diff --git a/Sources/Fluid/Services/ExternalCoreMLTranscriptionProvider.swift b/Sources/Fluid/Services/ExternalCoreMLTranscriptionProvider.swift
index 8e7acf2b..4eb70164 100644
--- a/Sources/Fluid/Services/ExternalCoreMLTranscriptionProvider.swift
+++ b/Sources/Fluid/Services/ExternalCoreMLTranscriptionProvider.swift
@@ -160,12 +160,17 @@ final class ExternalCoreMLTranscriptionProvider: TranscriptionProvider {
try FileManager.default.removeItem(at: compiledDirectory)
}
- if FileManager.default.fileExists(atPath: directory.path) {
+ if FileManager.default.fileExists(atPath: directory.path), Self.isAppManagedArtifactsDirectory(directory, spec: spec) {
DebugLogger.shared.info(
"ExternalCoreML: removing downloaded artifacts at \(directory.path)",
source: "ExternalCoreML"
)
try FileManager.default.removeItem(at: directory)
+ } else if FileManager.default.fileExists(atPath: directory.path) {
+ DebugLogger.shared.warning(
+ "ExternalCoreML: skipping deletion for non-managed artifacts directory at \(directory.path)",
+ source: "ExternalCoreML"
+ )
}
self.isReady = false
@@ -232,6 +237,14 @@ final class ExternalCoreMLTranscriptionProvider: TranscriptionProvider {
SettingsStore.shared.externalCoreMLArtifactsDirectory(for: model) ?? spec.defaultCacheDirectory
}
+ private static func isAppManagedArtifactsDirectory(
+ _ directory: URL,
+ spec: ExternalCoreMLASRModelSpec
+ ) -> Bool {
+ guard let defaultCacheDirectory = spec.defaultCacheDirectory else { return false }
+ return directory.standardizedFileURL.path == defaultCacheDirectory.standardizedFileURL.path
+ }
+
private static func makeError(_ description: String) -> NSError {
NSError(
domain: "ExternalCoreMLTranscriptionProvider",
diff --git a/Sources/Fluid/Services/MeetingTranscriptionService.swift b/Sources/Fluid/Services/MeetingTranscriptionService.swift
index 31900de8..e17c5ed3 100644
--- a/Sources/Fluid/Services/MeetingTranscriptionService.swift
+++ b/Sources/Fluid/Services/MeetingTranscriptionService.swift
@@ -181,7 +181,9 @@ final class MeetingTranscriptionService: ObservableObject {
DebugLogger.shared.warning("Could not determine audio duration: \(error.localizedDescription)", source: "MeetingTranscriptionService")
}
- if provider.prefersNativeFileTranscription {
+ let isVideoContainer = ["mp4", "mov"].contains(fileExtension)
+
+ if provider.prefersNativeFileTranscription && !isVideoContainer {
self.currentStatus = duration > 0 ? "Transcribing audio (\(Int(duration))s)..." : "Transcribing audio..."
self.progress = 0.3
@@ -218,6 +220,13 @@ final class MeetingTranscriptionService: ObservableObject {
return result
}
+ if provider.prefersNativeFileTranscription && isVideoContainer {
+ DebugLogger.shared.info(
+ "MeetingTranscriptionService: using buffered transcription path for video container [provider=\(provider.name), extension=\(fileExtension)]",
+ source: "MeetingTranscriptionService"
+ )
+ }
+
// Transcribe using chunked processing for long files
// This reads audio in ~20 minute segments to avoid memory overflow on 3+ hour files
let chunkDurationSeconds: Double = 20 * 60 // 20 minutes per chunk (well under 24min model limit)