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

fix(dictionary): keep background audio learning strictly local

altic-deve47732ec6596
diff --git a/Fluid.xcodeproj/project.pbxproj b/Fluid.xcodeproj/project.pbxproj
index 1dfe609f..1b85af48 100644
--- a/Fluid.xcodeproj/project.pbxproj
+++ b/Fluid.xcodeproj/project.pbxproj
@@ -1294,7 +1294,7 @@
repositoryURL = "https://github.com/altic-dev/FluidAudio.git";
requirement = {
kind = revision;
- revision = 9725fb6c4c6884afd785f7d470ef1195d0a8ac17;
+ revision = 932842b7eb9728597b69750270e0d8896668dbd4;
};
};
7C3697872ED70F9C005874CE /* XCRemoteSwiftPackageReference "DynamicNotchKit" */ = {
diff --git a/Fluid.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Fluid.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
index 096df987..373c479c 100644
--- a/Fluid.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
+++ b/Fluid.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
@@ -33,7 +33,7 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/altic-dev/FluidAudio.git",
"state" : {
- "revision" : "9725fb6c4c6884afd785f7d470ef1195d0a8ac17"
+ "revision" : "932842b7eb9728597b69750270e0d8896668dbd4"
}
},
{
diff --git a/Package.resolved b/Package.resolved
index 779994d1..6b5288b4 100644
--- a/Package.resolved
+++ b/Package.resolved
@@ -32,7 +32,7 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/altic-dev/FluidAudio.git",
"state" : {
- "revision" : "cfabbc6cd7c603ad469cbbb5a30c1ece48db04be"
+ "revision" : "932842b7eb9728597b69750270e0d8896668dbd4"
}
},
{
diff --git a/Package.swift b/Package.swift
index c08a5044..dd6fa6c0 100644
--- a/Package.swift
+++ b/Package.swift
@@ -11,7 +11,7 @@ let package = Package(
dependencies: [
.package(path: "Vendor/WebRTCAudioProcessing"),
.package(url: "https://github.com/mxcl/AppUpdater.git", from: "1.0.0"),
- .package(url: "https://github.com/altic-dev/FluidAudio.git", revision: "9725fb6c4c6884afd785f7d470ef1195d0a8ac17"),
+ .package(url: "https://github.com/altic-dev/FluidAudio.git", revision: "932842b7eb9728597b69750270e0d8896668dbd4"),
.package(url: "https://github.com/mxcl/PromiseKit", from: "6.0.0"),
.package(url: "https://github.com/altic-dev/DynamicNotchKit.git", branch: "main"),
.package(url: "https://github.com/altic-dev/transcribe-cpp-swift.git", exact: "0.1.2"),
diff --git a/Sources/Fluid/Services/DictionaryAudioLearningService.swift b/Sources/Fluid/Services/DictionaryAudioLearningService.swift
index 8d85d207..25228f90 100644
--- a/Sources/Fluid/Services/DictionaryAudioLearningService.swift
+++ b/Sources/Fluid/Services/DictionaryAudioLearningService.swift
@@ -152,7 +152,7 @@ actor OriginalAudioEmbeddingExtractor {
case "parakeet-v3": version = .v3
default: throw PronunciationDictionaryStoreError.inconsistentEnrollment
}
- let models = try await AsrModels.load(
+ let models = try await AsrModels.loadLocalOnly(
from: AsrModels.defaultCacheDirectory(for: version),
version: version
)
diff --git a/docs/design/original-audio-learning-implementation.md b/docs/design/original-audio-learning-implementation.md
index fb14a0be..947e13ae 100644
--- a/docs/design/original-audio-learning-implementation.md
+++ b/docs/design/original-audio-learning-implementation.md
@@ -67,3 +67,16 @@ Validation: 76 dictionary/pronunciation and meeting-policy tests passed together
The evaluation executables, comparison script, commands and machine-readable baseline now live in tools/DictionaryLearningEvaluation. A fresh Release run of both executables reproduced the saved results exactly. Model files, audio and large acoustic vectors remain external local inputs.
The later real Huang occurrence was transcribed as Hong Kong and produced no acoustic hit above 0.70 from its earlier enrollment. This is an important unresolved example of the mean-pooled encoder's limitations; no threshold was lowered to make it pass. The multilingual combined result still equals text-only (19 true, 2 false substitutions) rather than exceeding it. Improvement on held-out personalized names remains an open acceptance gate, despite functional approval-to-reuse and composition regression tests passing.
+
+
+## Local model loading safety
+
+Fallback extraction now uses AsrModels.loadLocalOnly rather than the normal recoverable model loader. The normal loader can remove a cache and re-download after a load error; optional background correction learning must not do that. The new API accepts only local file URLs, validates installed files, checks cancellation between loads, and propagates missing/corrupt-model errors without repairing the installation. The existing text correction survives failure.
+
+Forty library tests passed, including missing-file preservation, remote-URL rejection and real-audio embedding equivalence. Offline evaluation tools use the same local-only API. This changes model loading behavior, not embeddings or acceptance thresholds.
+
+The Huang diagnostic isolated the miss: searching every window length from 1 to 24 frames kept the best score at 0.681. Trimming the enrollment to 60 percent raised it to 0.707, still below the 0.85 novel-variant gate, and narrowed the match to part of the ASR phrase. Neither adjustment is shipped; the evidence does not support a safe general accuracy improvement.
+
+App validation after the loader change: all 68 affected app tests passed, scoped learning-service lint is clean, and the Release interview evaluation output exactly matches the preceding loader. Both dependency lockfiles and both manifests now reference the same companion revision.
+
+The signed private FI build also passed after local-only loading, and the installed app passed strict deep signature verification. Unrelated Feedback work and local dependency overrides remain untouched.
diff --git a/tools/DictionaryLearningEvaluation/README.md b/tools/DictionaryLearningEvaluation/README.md
index 6f7d0e06..8896b88a 100644
--- a/tools/DictionaryLearningEvaluation/README.md
+++ b/tools/DictionaryLearningEvaluation/README.md
@@ -14,7 +14,7 @@ swift run -c release --package-path tools/DictionaryLearningEvaluation Evaluate
python3 tools/DictionaryLearningEvaluation/analyze_search.py /tmp/word-vectors.json.trials.json /tmp/search-comparison.json
```
-Baseline companion revision: 9725fb6. Default sibling checkout is FluidAudio_pronunciation_streaming; FLUIDAUDIO_SOURCE allows another checkout for comparison. No model or audio is committed here.
+Baseline matcher revision: 9725fb6; local-only loader requires companion revision 932842b or later. Default sibling checkout is FluidAudio_pronunciation_streaming; FLUIDAUDIO_SOURCE allows another checkout for comparison. No model or audio is committed here.
Evaluate expects de_de, fr_fr, pl_pl, da_dk, el_gr, ru_ru, es_419 and en_us directories, each with WAV files and a matching LANGUAGE.trans.txt. Each reference line begins with the WAV stem, followed by its reference transcript. It excludes recordings longer than 14.88 seconds. Enrollment is from one clip; all evaluation clips differ from enrollment. Edit-distance reference alignment is approximate and must be inspected before interpreting individual errors.
diff --git a/tools/DictionaryLearningEvaluation/Sources/Evaluate/main.swift b/tools/DictionaryLearningEvaluation/Sources/Evaluate/main.swift
index 8ca8c376..8b76f74d 100644
--- a/tools/DictionaryLearningEvaluation/Sources/Evaluate/main.swift
+++ b/tools/DictionaryLearningEvaluation/Sources/Evaluate/main.swift
@@ -70,7 +70,7 @@ func align(_ hypothesis: [String], _ reference: [String]) -> [Int: String] {
])
}
let root = URL(fileURLWithPath: CommandLine.arguments[1])
- let models = try await AsrModels.load(
+ let models = try await AsrModels.loadLocalOnly(
from: URL(fileURLWithPath: CommandLine.arguments[2]), version: .v3)
let manager = AsrManager(
config: ASRConfig(
diff --git a/tools/DictionaryLearningEvaluation/Sources/PersonalProof/main.swift b/tools/DictionaryLearningEvaluation/Sources/PersonalProof/main.swift
index 6f207e23..edbdbb49 100644
--- a/tools/DictionaryLearningEvaluation/Sources/PersonalProof/main.swift
+++ b/tools/DictionaryLearningEvaluation/Sources/PersonalProof/main.swift
@@ -30,7 +30,7 @@ func normalize(_ s: String) -> String { s.lowercased().filter { $0.isLetter || $
])
}
let source = try AudioConverter().resampleAudioFile(path: CommandLine.arguments[1])
- let models = try await AsrModels.load(
+ let models = try await AsrModels.loadLocalOnly(
from: URL(fileURLWithPath: CommandLine.arguments[2]), version: .v3)
let manager = AsrManager(
config: ASRConfig(