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
Fix strict lint issues
altic-devf3577c2df728
diff --git a/Sources/Fluid/Networking/ModelDownloader.swift b/Sources/Fluid/Networking/ModelDownloader.swiftindex a1f3a69c..e7b067a9 100644--- a/Sources/Fluid/Networking/ModelDownloader.swift+++ b/Sources/Fluid/Networking/ModelDownloader.swift@@ -63,16 +63,18 @@ final class HuggingFaceModelDownloader {/// - owner: Hugging Face username or organization/// - repo: Repository name containing the models/// - revision: Branch or commit hash (default: "main")- init(owner: String, repo: String, revision: String = "main", requiredItems: [ModelItem]? = nil) {+ init(owner: String, repo: String, revision: String = "main", requiredItems: [ModelItem] = []) {self.owner = ownerself.repo = repoself.revision = revision- self.requiredItemsList = requiredItems ?? [- ModelItem(path: "MelEncoder.mlmodelc", isDirectory: true),- ModelItem(path: "Decoder.mlmodelc", isDirectory: true),- ModelItem(path: "JointDecision.mlmodelc", isDirectory: true),- ModelItem(path: "parakeet_v3_vocab.json", isDirectory: false),- ]+ self.requiredItemsList = requiredItems.isEmpty+ ? [+ ModelItem(path: "MelEncoder.mlmodelc", isDirectory: true),+ ModelItem(path: "Decoder.mlmodelc", isDirectory: true),+ ModelItem(path: "JointDecision.mlmodelc", isDirectory: true),+ ModelItem(path: "parakeet_v3_vocab.json", isDirectory: false),+ ]+ : requiredItemsguard var apiBase = URL(string: "https://huggingface.co/api/models/") else {preconditionFailure("Invalid base Hugging Face API URL")}diff --git a/Sources/Fluid/Persistence/SettingsStore.swift b/Sources/Fluid/Persistence/SettingsStore.swiftindex 9eb2f3cd..dacbcd46 100644--- a/Sources/Fluid/Persistence/SettingsStore.swift+++ b/Sources/Fluid/Persistence/SettingsStore.swift@@ -2516,7 +2516,10 @@ final class SettingsStore: ObservableObject {var cardDescription: String {switch self {case .parakeetTDT:- return "Fast multilingual transcription. Supports Bulgarian, Croatian, Czech, Danish, Dutch, English, Estonian, Finnish, French, German, Greek, Hungarian, Italian, Latvian, Lithuanian, Maltese, Polish, Portuguese, Romanian, Russian, Slovak, Slovenian, Spanish, Swedish, and Ukrainian."+ return "Fast multilingual transcription. Supports Bulgarian, Croatian, Czech, Danish, " ++ "Dutch, English, Estonian, Finnish, French, German, Greek, Hungarian, Italian, " ++ "Latvian, Lithuanian, Maltese, Polish, Portuguese, Romanian, Russian, Slovak, " ++ "Slovenian, Spanish, Swedish, and Ukrainian."case .parakeetTDTv2:return "Optimized for English accuracy and fastest transcription."case .qwen3Asr:diff --git a/Sources/Fluid/Services/ExternalCoreMLModelRegistry.swift b/Sources/Fluid/Services/ExternalCoreMLModelRegistry.swiftindex 22aa0476..7ee373ba 100644--- a/Sources/Fluid/Services/ExternalCoreMLModelRegistry.swift+++ b/Sources/Fluid/Services/ExternalCoreMLModelRegistry.swift@@ -1,6 +1,6 @@import CoreML-import Foundationimport FluidAudio+import Foundationenum ExternalCoreMLASRBackend {case cohereTranscribe@@ -25,15 +25,15 @@ enum ExternalCoreMLArtifactsValidationError: LocalizedError {var errorDescription: String? {switch self {- case .missingEntries(let entries):+ case let .missingEntries(entries):return "Missing required files: \(entries.joined(separator: ", "))"- case .manifestMissing(let url):+ case let .manifestMissing(url):return "Manifest file not found at \(url.path)"- case .manifestUnreadable(let url, let error):+ case let .manifestUnreadable(url, error):return "Failed to read manifest at \(url.path): \(error.localizedDescription)"- case .unexpectedModelID(let expected, let actual):+ case let .unexpectedModelID(expected, actual):return "Unexpected model_id '\(actual)'. Expected '\(expected)'."- case .unexpectedSampleRate(let expected, let actual):+ case let .unexpectedSampleRate(expected, actual):return "Unexpected sample rate \(actual). Expected \(expected)."}}@@ -137,7 +137,7 @@ enum ExternalCoreMLModelRegistry {decoderFileName: "cohere_decoder_fullseq_masked.mlpackage",cachedDecoderFileName: "cohere_decoder_cached.mlpackage",expectedModelID: "CohereLabs/cohere-transcribe-03-2026",- expectedSampleRate: 16000,+ expectedSampleRate: 16_000,computeConfiguration: .aneSmall,sourceURL: URL(string: "https://huggingface.co/BarathwajAnandan/cohere-transcribe-03-2026-CoreML-6bit"),repositoryOwner: "BarathwajAnandan",diff --git a/Sources/Fluid/UI/AISettingsView+SpeechRecognition.swift b/Sources/Fluid/UI/AISettingsView+SpeechRecognition.swiftindex 23d34d44..60045113 100644--- a/Sources/Fluid/UI/AISettingsView+SpeechRecognition.swift+++ b/Sources/Fluid/UI/AISettingsView+SpeechRecognition.swift@@ -309,7 +309,6 @@ extension VoiceEngineSettingsView {Spacer()}}-}.padding(.horizontal, 10).padding(.vertical, 8)@@ -503,7 +502,7 @@ extension VoiceEngineSettingsView {ZStack(alignment: .trailing) {if model.requiresExternalArtifacts {HStack(spacing: 8) {- if let _ = model.externalCoreMLSpec?.sourceURL {+ if model.externalCoreMLSpec?.sourceURL != nil {Button {self.viewModel.openExternalModelSource(for: model)} label: {