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(tests): stop Whisper Tiny E2E test from persisting the selected speech model
postoso0cdd64eb8246
diff --git a/Tests/FluidDictationIntegrationTests/DictationE2ETests.swift b/Tests/FluidDictationIntegrationTests/DictationE2ETests.swiftindex 27ab676e..390c9b12 100644--- a/Tests/FluidDictationIntegrationTests/DictationE2ETests.swift+++ b/Tests/FluidDictationIntegrationTests/DictationE2ETests.swift@@ -722,18 +722,10 @@ final class DictationE2ETests: XCTestCase {func testDictationEndToEnd_whisperTiny_transcribesFixture() async throws {// Arrange- // App-hosted test writes to the real host UserDefaults; restore the prior- // selection so the next app launch doesn't silently come up on Whisper Tiny.- let priorSpeechModel = SettingsStore.shared.selectedSpeechModel- defer { SettingsStore.shared.selectedSpeechModel = priorSpeechModel }-- SettingsStore.shared.shareAnonymousAnalytics = false- SettingsStore.shared.selectedSpeechModel = .whisperTiny-let modelDirectory = Self.modelDirectoryForRun()try FileManager.default.createDirectory(at: modelDirectory, withIntermediateDirectories: true)- let provider = WhisperProvider(modelDirectory: modelDirectory)+ let provider = WhisperProvider(modelDirectory: modelDirectory, modelOverride: .whisperTiny)// Acttry await provider.prepare()