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: play start cue before capture

altic-devf9be08a0ffb6
diff --git a/Sources/Fluid/ContentView.swift b/Sources/Fluid/ContentView.swift
index 36ef6763..919d0836 100644
--- a/Sources/Fluid/ContentView.swift
+++ b/Sources/Fluid/ContentView.swift
@@ -2999,10 +2999,10 @@ struct ContentView: View {
}
Task {
+ if shouldPlayStartSound, !self.asr.isRunning {
+ TranscriptionSoundPlayer.shared.playStartSound()
+ }
await self.asr.start(onCaptureStarted: {
- if shouldPlayStartSound {
- TranscriptionSoundPlayer.shared.playStartSound()
- }
self.captureRecordingContext()
self.prewarmPrivateAIDictationIfNeeded(for: .primary)
if shouldShowDictationOverlay {
@@ -3610,10 +3610,10 @@ extension ContentView {
Task {
let asrStartStartedAt = ProcessInfo.processInfo.systemUptime
DebugLogger.shared.benchmark("APP_BENCH", message: "asr_start_call", source: "AppBenchmark")
+ if SettingsStore.shared.enableTranscriptionSounds, !self.asr.isRunning {
+ TranscriptionSoundPlayer.shared.playStartSound()
+ }
await self.asr.start(onCaptureStarted: {
- if SettingsStore.shared.enableTranscriptionSounds {
- TranscriptionSoundPlayer.shared.playStartSound()
- }
self.captureRecordingContext()
self.applyDictationPromptConfiguration(for: SettingsStore.shared.dictationPromptSelection(for: slot))
self.appBench("overlay_mode_request mode=Dictation")