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 rebase against analytics v2

grohith32748ea04becf6e
diff --git a/Sources/Fluid/ContentView.swift b/Sources/Fluid/ContentView.swift
index 36275f5d..5912482a 100644
--- a/Sources/Fluid/ContentView.swift
+++ b/Sources/Fluid/ContentView.swift
@@ -2501,52 +2501,6 @@ struct ContentView: View {
} else if !shouldShowAIProcessingFailure, !didRequestOverlayHideOnStop {
self.hideOverlayAfterOutput()
}
-
- if shouldCopyToClipboard, deliveryResult.wasDispatched {
- AnalyticsService.shared.capture(
- .outputDelivered,
- properties: [
- "mode": AnalyticsMode.dictation.rawValue,
- "method": AnalyticsOutputMethod.clipboard.rawValue,
- ]
- )
- }
- }
-
- if didTypeExternally {
- AnalyticsService.shared.capture(
- .outputDelivered,
- properties: [
- "mode": AnalyticsMode.dictation.rawValue,
- "method": AnalyticsOutputMethod.typed.rawValue,
- ]
- )
-
- // Register the post-transcription edit observation after insertion is dispatched.
- let wordsBucket = AnalyticsBuckets.bucketWords(AnalyticsBuckets.wordCount(in: finalText))
- let modelInfo = self.currentDictationAIModelInfo(
- dictationSlot: activeDictationSlot,
- appBundleID: appInfo.bundleId
- )
- await PostTranscriptionEditTracker.shared.markTranscriptionCompleted(
- mode: AnalyticsMode.dictation.rawValue,
- outputMethod: AnalyticsOutputMethod.typed.rawValue,
- wordsBucket: wordsBucket,
- aiUsed: shouldUseAI,
- aiModel: modelInfo.model,
- aiProvider: modelInfo.provider
- )
- } else if shouldPersistOutputs,
- SettingsStore.shared.copyTranscriptionToClipboard == false,
- SettingsStore.shared.saveTranscriptionHistory
- {
- AnalyticsService.shared.capture(
- .outputDelivered,
- properties: [
- "mode": AnalyticsMode.dictation.rawValue,
- "method": AnalyticsOutputMethod.historyOnly.rawValue,
- ]
- )
}
if !didTypeExternally,
@@ -2586,13 +2540,6 @@ struct ContentView: View {
}
NotchContentState.shared.showTextDeliveryFailure(message: message, transcript: transcript)
self.menuBarManager.finishProcessingKeepingOverlayVisible()
- AnalyticsService.shared.capture(
- .errorOccurred,
- properties: [
- "domain": "text_delivery",
- "category": failure.rawValue,
- ]
- )
}
private func showPrivateAIEditModeUnavailableIfNeeded() -> Bool {
@@ -3270,22 +3217,6 @@ struct ContentView: View {
self.showTextDeliveryFailure(failure, transcript: self.rewriteModeService.rewrittenText)
return
}
- if SettingsStore.shared.copyTranscriptionToClipboard {
- AnalyticsService.shared.capture(
- .outputDelivered,
- properties: [
- "mode": AnalyticsMode.rewrite.rawValue,
- "method": AnalyticsOutputMethod.clipboard.rawValue,
- ]
- )
- }
- AnalyticsService.shared.capture(
- .outputDelivered,
- properties: [
- "mode": AnalyticsMode.rewrite.rawValue,
- "method": AnalyticsOutputMethod.typed.rawValue,
- ]
- )
// Clear the rewrite service state for next use
self.rewriteModeService.clearState()