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

harden training stop cleanup

altic-dev2c9f5603bae6
diff --git a/Sources/Fluid/UI/CustomDictionaryView.swift b/Sources/Fluid/UI/CustomDictionaryView.swift
index 98cd9d10..c1c37a2e 100644
--- a/Sources/Fluid/UI/CustomDictionaryView.swift
+++ b/Sources/Fluid/UI/CustomDictionaryView.swift
@@ -252,9 +252,7 @@ struct CustomDictionaryView: View {
.onDisappear {
guard self.isTrainingRecording else { return }
Task { @MainActor in
- _ = await self.asr.stop(forDictionaryTraining: true)
- self.isTrainingRecording = false
- self.isTrainingProcessing = false
+ await self.stopTrainingSample()
}
}
}