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(search): integrate file transcript navigation and audio linkage
altic-devdcaf1c165290
diff --git a/Fluid.xcodeproj/project.pbxproj b/Fluid.xcodeproj/project.pbxprojindex 039524c7..3780a099 100644--- a/Fluid.xcodeproj/project.pbxproj+++ b/Fluid.xcodeproj/project.pbxproj@@ -981,7 +981,6 @@);MACOSX_DEPLOYMENT_TARGET = 15.0;MARKETING_VERSION = "1.6.10-beta.6";- MARKETING_VERSION = "1.6.10-beta.2";PRODUCT_BUNDLE_IDENTIFIER = com.FluidApp.app.debug;PRODUCT_NAME = "FluidVoice Debug";PROVISIONING_PROFILE_SPECIFIER = "";@@ -1037,7 +1036,6 @@);MACOSX_DEPLOYMENT_TARGET = 15.0;MARKETING_VERSION = "1.6.10-beta.6";- MARKETING_VERSION = "1.6.10-beta.2";PRODUCT_BUNDLE_IDENTIFIER = com.FluidApp.app;PRODUCT_NAME = FluidVoice;PROVISIONING_PROFILE_SPECIFIER = "";diff --git a/Sources/Fluid/ContentView.swift b/Sources/Fluid/ContentView.swiftindex 181131ab..c5e593b5 100644--- a/Sources/Fluid/ContentView.swift+++ b/Sources/Fluid/ContentView.swift@@ -1457,7 +1457,8 @@ struct ContentView: View {self.navigateToApp(.history)case let .transcript(id):FileTranscriptionHistoryStore.shared.selectedEntryID = id- self.navigateToApp(.meetingTools)+ self.appSearchRevealTarget = hit.target+ self.navigateToApp(.fileTranscription)case let .chat(id):self.commandModeService.switchToChat(id: id)self.navigateToApp(.commandMode)@@ -2165,7 +2166,8 @@ struct ContentView: View {private var fileTranscriptionView: some View {FileTranscriptionView(asrService: self.asr,- transcriptionService: self.appServices.fileTranscriptionService+ transcriptionService: self.appServices.fileTranscriptionService,+ revealTarget: self.$appSearchRevealTarget)}@@ -2910,6 +2912,9 @@ struct ContentView: View {}}+ // Keep the ordered dictation delivery path intact during integration.++ // swiftlint:disable:next function_body_lengthprivate func processStoppedTranscription(route: DictationOutputRoute, pipelineID: String, toggleStopRequestedAt: TimeInterval?) async {let pipelineStartedAt = ProcessInfo.processInfo.systemUptimelet expectedOverlayLifecycleID = self.overlayLifecycleID@@ -3055,7 +3060,10 @@ struct ContentView: View {let practiceModelID = route == .onboardingSandbox && self.settings.onboardingCurrentStep == 5? PrivateAIProviderPromptFormat.verifiedModelID(settings: self.settings) : nil- let shouldUseAI = !sendsExistingDraft && (practiceModelID != nil || (stopSnapshot?.usesAI ?? DictationAIPostProcessingGate.isConfigured(for: activeDictationSlot ?? .primary, appBundleID: appInfo.bundleId)))+ let shouldUseAI = !sendsExistingDraft && (practiceModelID != nil || (stopSnapshot?.usesAI ?? DictationAIPostProcessingGate.isConfigured(+ for: activeDictationSlot ?? .primary,+ appBundleID: appInfo.bundleId+ )))let transcriptionModelInfo = self.currentTranscriptionModelInfo()let postProcessingModelInfo = self.recordDictationUsage(shouldUseAI: shouldUseAI,@@ -3197,7 +3205,8 @@ struct ContentView: View {self.pendingAIReprocessText = nil}- let isFluidFrontmost = stopSnapshot.map { $0.target?.pid == ProcessInfo.processInfo.processIdentifier } ?? (NSWorkspace.shared.frontmostApplication?.bundleIdentifier == Bundle.main.bundleIdentifier)+ let isFluidFrontmost = stopSnapshot+ .map { $0.target?.pid == ProcessInfo.processInfo.processIdentifier } ?? (NSWorkspace.shared.frontmostApplication?.bundleIdentifier == Bundle.main.bundleIdentifier)// Save to transcription history (transcription mode only, if enabled)if shouldPersistOutputs, !sendsExistingDraft, SettingsStore.shared.saveTranscriptionHistory {@@ -4290,7 +4299,10 @@ struct ContentView: View {) async {self.rewriteModeService.setPromptAppBundleID(appInfo.bundleId)let hasOriginalText = !self.rewriteModeService.originalText.isEmpty- DebugLogger.shared.info("Processing \(hasOriginalText ? "rewrite" : "write/improve") - instruction: '\(instruction)', originalText length: \(self.rewriteModeService.originalText.count)", source: "ContentView")+ DebugLogger.shared.info(+ "Processing \(hasOriginalText ? "rewrite" : "write/improve") - instruction: '\(instruction)', originalText length: \(self.rewriteModeService.originalText.count)",+ source: "ContentView"+ )// Show processing animationself.menuBarManager.setProcessing(true)diff --git a/Sources/Fluid/UI/FileTranscriptionView.swift b/Sources/Fluid/UI/FileTranscriptionView.swiftindex 1c2e306c..ec404c42 100644--- a/Sources/Fluid/UI/FileTranscriptionView.swift+++ b/Sources/Fluid/UI/FileTranscriptionView.swift@@ -1,15 +1,24 @@import SwiftUIimport UniformTypeIdentifiers+enum FileTranscriptionSearchReveal {+ static func transcriptID(_ target: AppSearchHit.Target?) -> UUID? {+ guard case let .transcript(id) = target else { return nil }+ return id+ }+}+struct FileTranscriptionView: View {@ObservedObject var asrService: ASRService@ObservedObject private var transcriptionService: FileTranscriptionService@ObservedObject private var fileHistoryStore = FileTranscriptionHistoryStore.shared@ObservedObject private var settings = SettingsStore.shared+ @Binding private var revealTarget: AppSearchHit.Target?@State private var selectedFileURL: URL?@Environment(\.theme) private var theme- init(asrService: ASRService, transcriptionService: FileTranscriptionService) {+ init(asrService: ASRService, transcriptionService: FileTranscriptionService, revealTarget: Binding<AppSearchHit.Target?> = .constant(nil)) {+ self._revealTarget = revealTargetself.asrService = asrService_transcriptionService = ObservedObject(wrappedValue: transcriptionService)}@@ -154,6 +163,13 @@ struct FileTranscriptionView: View {}, uniquingKeysWith: { _, latest in latest })self.updateSearchResults(entries: entries)}+ .task(id: self.revealTarget) {+ guard let id = FileTranscriptionSearchReveal.transcriptID(self.revealTarget) else { return }+ self.searchQuery = ""+ self.updateSearchResults(entries: self.fileHistoryStore.entries)+ self.fileHistoryStore.selectedEntryID = id+ self.revealTarget = nil+ }.onChange(of: self.searchQuery) { _, _ inself.updateSearchResults(entries: self.fileHistoryStore.entries)}@@ -547,8 +563,14 @@ struct FileTranscriptionView: View {}.padding(self.theme.metrics.spacing.sm)}- .onChange(of: self.fileHistoryStore.selectedEntryID) { _, id in- if let id { proxy.scrollTo(id, anchor: .top) }+ .task(id: self.fileHistoryStore.selectedEntryID) {+ await Task.yield()+ guard !Task.isCancelled, let id = self.fileHistoryStore.selectedEntryID else { return }+ proxy.scrollTo(id, anchor: .top)+ }+ .onChange(of: self.filteredEntries.map(\.id)) { _, _ in+ guard let id = self.fileHistoryStore.selectedEntryID else { return }+ DispatchQueue.main.async { proxy.scrollTo(id, anchor: .top) }}}}diff --git a/Sources/Fluid/UI/SettingsView.swift b/Sources/Fluid/UI/SettingsView.swiftindex ea98c541..2d03c37f 100644--- a/Sources/Fluid/UI/SettingsView.swift+++ b/Sources/Fluid/UI/SettingsView.swift@@ -1104,7 +1104,7 @@ struct SettingsView: View {.shownInSettingsSection(.dictationFormatting, selectedSection: self.selectedSection)if self.selectedSection == .dictationFormatting {- CustomDictionaryView(formattingOnly: true)+ CustomDictionaryView(formattingOnly: true, revealTarget: .constant(nil)).settingsSearchTarget(.spokenFormatting)ThemedCard(style: .standard) {VStack(alignment: .leading, spacing: 14) {@@ -1999,9 +1999,11 @@ struct SettingsView: View {Text("Audio Storage").font(self.theme.typography.bodyStrong).foregroundStyle(self.settingsTitleText)- Text("Audio history: \(DictationAudioHistoryStore.formattedGigabytes(self.audioHistoryUsageBytes)) / \(Self.audioBudgetText(for: SettingsStore.shared.audioHistoryBudgetGB)) GB Budget")- .font(self.theme.typography.bodySmall)- .foregroundStyle(self.settingsSecondaryText)+ Text(+ "Audio history: \(DictationAudioHistoryStore.formattedGigabytes(self.audioHistoryUsageBytes)) / \(Self.audioBudgetText(for: SettingsStore.shared.audioHistoryBudgetGB)) GB Budget"+ )+ .font(self.theme.typography.bodySmall)+ .foregroundStyle(self.settingsSecondaryText)ProgressView(value: self.audioHistoryUsageFraction()).progressViewStyle(.linear)diff --git a/Tests/FluidDictationIntegrationTests/AppSearchServiceTests.swift b/Tests/FluidDictationIntegrationTests/AppSearchServiceTests.swiftindex 1ba13dd4..60686767 100644--- a/Tests/FluidDictationIntegrationTests/AppSearchServiceTests.swift+++ b/Tests/FluidDictationIntegrationTests/AppSearchServiceTests.swift@@ -67,11 +67,13 @@ final class AppSearchServiceTests: XCTestCase {XCTAssertTrue(service.groups.isEmpty)}- func testTranscriptSearchSelectionTargetsItsDetailCard() {+ func testFileTranscriptRevealIgnoresOtherSearchDestinations() {let id = UUID()- XCTAssertEqual(MeetingTranscriptionScrollTarget.selectedDetail(id), .detail(id))- XCTAssertNil(MeetingTranscriptionScrollTarget.selectedDetail(nil))+ XCTAssertEqual(FileTranscriptionSearchReveal.transcriptID(.transcript(id)), id)+ XCTAssertNil(FileTranscriptionSearchReveal.transcriptID(.history(id)))+ XCTAssertNil(FileTranscriptionSearchReveal.transcriptID(.dictionaryEntry(id)))+ XCTAssertNil(FileTranscriptionSearchReveal.transcriptID(nil))}// MARK: - Snippetsdiff --git a/Tests/FluidDictationIntegrationTests/DirectAudioReliabilityTests.swift b/Tests/FluidDictationIntegrationTests/DirectAudioReliabilityTests.swiftindex cf5e0e9b..908c0ac3 100644--- a/Tests/FluidDictationIntegrationTests/DirectAudioReliabilityTests.swift+++ b/Tests/FluidDictationIntegrationTests/DirectAudioReliabilityTests.swift@@ -672,7 +672,8 @@ final class DirectAudioReliabilityTests: XCTestCase {.components(separatedBy: "private func hideOverlayAfterOutput()").first)XCTAssertTrue(deliveryHandlerSection.contains("self.overlayLifecycleID == expectedOverlayLifecycleID"))- XCTAssertTrue(normalOutputSection.contains("shouldHideOverlay: deliveryResult.wasDispatched && !shouldShowAIProcessingFailure && !stopOverlay.didRequestHide && !spokenSendRequested"))+ XCTAssertTrue(normalOutputSection+ .contains("shouldHideOverlay: deliveryResult.wasDispatched && !shouldShowAIProcessingFailure && !stopOverlay.didRequestHide && !spokenSendRequested"))XCTAssertTrue(deliveryHandlerSection.contains("guard shouldHideOverlay else { return }"))XCTAssertFalse(deliveryHandlerSection.contains("await self.menuBarManager.beginProcessingCompletionAndHideOverlay"))@@ -750,9 +751,17 @@ final class DirectAudioReliabilityTests: XCTestCase {contentsOf: repositoryRoot.appendingPathComponent("Sources/Fluid/ContentView.swift"),encoding: .utf8)- XCTAssertTrue(source.contains(- "await self.processDictationPromptTest(transcribedText, lifecycleID: expectedOverlayLifecycleID)"+ // Formatting may wrap this call; the same arguments and lifecycle binding must remain.+ let compactSource = source.filter { !$0.isWhitespace }+ XCTAssertTrue(compactSource.contains(+ "awaitself.routePromptTestResult(transcribedText,sessionID:promptTestSessionID,lifecycleID:expectedOverlayLifecycleID)"))+ let routingSection = try XCTUnwrap(+ source.components(separatedBy: "private func routePromptTestResult(").last?+ .components(separatedBy: "private func makeAIProcessingFeedback(").first+ )+ XCTAssertTrue(routingSection.contains("await self.processDictationPromptTest(text, lifecycleID: lifecycleID)"))+ XCTAssertTrue(routingSection.contains("acceptsResult(for: sessionID)"))let promptTestSection = try XCTUnwrap(source.components(separatedBy: "private func processDictationPromptTest(").last?.components(separatedBy: "private func makeAIProcessingFeedback(").firstdiff --git a/Vendor/WebRTCAudioProcessing/Artifacts/FluidAEC3.xcframework/macos-arm64_x86_64/Headers/module.modulemap b/Vendor/WebRTCAudioProcessing/Artifacts/FluidAEC3.xcframework/macos-arm64_x86_64/Headers/module.modulemapdeleted file mode 100644index 8a778771..00000000--- a/Vendor/WebRTCAudioProcessing/Artifacts/FluidAEC3.xcframework/macos-arm64_x86_64/Headers/module.modulemap+++ /dev/null@@ -1,4 +0,0 @@-module FluidAEC3Binary {- header "FluidAEC3Binary.h"- export *-}diff --git a/Vendor/WebRTCAudioProcessing/Metadata/artifact-files.sha256 b/Vendor/WebRTCAudioProcessing/Metadata/artifact-files.sha256index d5f90c97..098e8174 100644--- a/Vendor/WebRTCAudioProcessing/Metadata/artifact-files.sha256+++ b/Vendor/WebRTCAudioProcessing/Metadata/artifact-files.sha256@@ -1,4 +1,3 @@bcbe80ca2b0f0201725bc288efe3d54bb2bdc9ec4af8a6726dc31095093a1c6a Artifacts/FluidAEC3.xcframework/Info.plist96c88f253d485533a1325c693f1a86f8199285fd25465907af2b5c16a3457ed2 Artifacts/FluidAEC3.xcframework/macos-arm64_x86_64/Headers/FluidAEC3Binary.h-bc461ce317f7137a3e7a6c8ffd51a29d3db814784b8131af040b62e675744e5b Artifacts/FluidAEC3.xcframework/macos-arm64_x86_64/Headers/module.modulemap7c06ab158e3c48f109e4e9bd5cf6b643049f61fc04177d13026a3b878de9654f Artifacts/FluidAEC3.xcframework/macos-arm64_x86_64/libFluidAEC3-system-exact.adiff --git a/Vendor/WebRTCAudioProcessing/README.md b/Vendor/WebRTCAudioProcessing/README.mdindex 1d541994..da155ac2 100644--- a/Vendor/WebRTCAudioProcessing/README.md+++ b/Vendor/WebRTCAudioProcessing/README.md@@ -19,6 +19,10 @@ link-map-derived archive contains no protobuf or Perfetto object, no concrete AEuses WebRTC's null AEC dump factory. All public app-facing declarations are C ABI; WebRTC C++headers are not exposed by the package product.+The static archive intentionally has no root `module.modulemap`: callers import the source+`FluidAEC3Bridge` module. A binary module map would collide with other static XCFrameworks+(such as Zeppelin) when Xcode copies their headers into the shared build include directory.+Run `Scripts/verify.sh` to verify hashes, architectures, symbols, revision/configuration strings,and a clean SwiftPM link. `Scripts/refresh.sh` documents and automates the reproducible rebuild froman exact gclient checkout plus depot_tools. The refresh script rejects any revision mismatch.