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
Wire split Cohere runtime into app
altic-devb5e861d6a689
diff --git a/Fluid.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Fluid.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolvedindex f13f7b49..89dec41d 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" : "cbbd7757f23fa271c5ad655a882dcaf3b906dbcd"+ "revision" : "1502a6a8095bb1fc9831cc239d69a9a837d665a7"}},{diff --git a/Sources/Fluid/Services/ExternalCoreMLModelRegistry.swift b/Sources/Fluid/Services/ExternalCoreMLModelRegistry.swiftindex 38e38d3f..22aa0476 100644--- a/Sources/Fluid/Services/ExternalCoreMLModelRegistry.swift+++ b/Sources/Fluid/Services/ExternalCoreMLModelRegistry.swift@@ -1,5 +1,6 @@import CoreMLimport Foundation+import FluidAudioenum ExternalCoreMLASRBackend {case cohereTranscribe@@ -44,11 +45,12 @@ struct ExternalCoreMLASRModelSpec {let manifestFileName: Stringlet frontendFileName: Stringlet encoderFileName: String+ let crossKVProjectorFileName: String?let decoderFileName: Stringlet cachedDecoderFileName: Stringlet expectedModelID: Stringlet expectedSampleRate: Int- let computeUnits: MLComputeUnits+ let computeConfiguration: CohereTranscribeComputeConfigurationlet sourceURL: URL?let repositoryOwner: String?let repositoryName: String?@@ -59,9 +61,11 @@ struct ExternalCoreMLASRModelSpec {self.manifestFileName,self.frontendFileName,self.encoderFileName,+ self.crossKVProjectorFileName,self.decoderFileName,self.cachedDecoderFileName,]+ .compactMap { $0 }}func url(for entry: String, in directory: URL) -> URL {@@ -129,11 +133,12 @@ enum ExternalCoreMLModelRegistry {manifestFileName: "coreml_manifest.json",frontendFileName: "cohere_frontend.mlpackage",encoderFileName: "cohere_encoder.mlpackage",+ crossKVProjectorFileName: "cohere_cross_kv_projector.mlpackage",decoderFileName: "cohere_decoder_fullseq_masked.mlpackage",cachedDecoderFileName: "cohere_decoder_cached.mlpackage",expectedModelID: "CohereLabs/cohere-transcribe-03-2026",expectedSampleRate: 16000,- computeUnits: .cpuAndGPU,+ computeConfiguration: .aneSmall,sourceURL: URL(string: "https://huggingface.co/BarathwajAnandan/cohere-transcribe-03-2026-CoreML-6bit"),repositoryOwner: "BarathwajAnandan",repositoryName: "cohere-transcribe-03-2026-CoreML-6bit",diff --git a/Sources/Fluid/Services/ExternalCoreMLTranscriptionProvider.swift b/Sources/Fluid/Services/ExternalCoreMLTranscriptionProvider.swiftindex 4eb70164..79c6e65b 100644--- a/Sources/Fluid/Services/ExternalCoreMLTranscriptionProvider.swift+++ b/Sources/Fluid/Services/ExternalCoreMLTranscriptionProvider.swift@@ -54,11 +54,17 @@ final class ExternalCoreMLTranscriptionProvider: TranscriptionProvider {case .cohereTranscribe:let manager = CohereTranscribeAsrManager()progressHandler?(0.9)+ let computeSummary = [+ String(describing: spec.computeConfiguration.frontend),+ String(describing: spec.computeConfiguration.encoder),+ String(describing: spec.computeConfiguration.crossKV),+ String(describing: spec.computeConfiguration.decoder),+ ].joined(separator: "/")DebugLogger.shared.info(- "ExternalCoreML: loading Cohere models [computeUnits=\(String(describing: spec.computeUnits))]",+ "ExternalCoreML: loading Cohere models [splitCompute=\(computeSummary)]",source: "ExternalCoreML")- try await manager.loadModels(from: directory, computeUnits: spec.computeUnits)+ try await manager.loadModels(from: directory, computeConfiguration: spec.computeConfiguration)self.cohereManager = manager}