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
Enable core audio flow by default
grohith3279d5e87f25c3c
diff --git a/Sources/Fluid/Persistence/SettingsStore.swift b/Sources/Fluid/Persistence/SettingsStore.swiftindex 6a357658..500694d0 100644--- a/Sources/Fluid/Persistence/SettingsStore.swift+++ b/Sources/Fluid/Persistence/SettingsStore.swift@@ -44,7 +44,6 @@ final class SettingsStore: ObservableObject {self.repairForcedOnboardingResetIfNeeded()self.migrateOverlayBottomOffsetTo50IfNeeded()self.migratePrivateAIContextDefaultTo4KIfNeeded()- self.disableExperimentalDirectAudioCaptureIfNeeded()self.refreshLaunchAtStartupStatus(clearError: true, logMismatch: false)}@@ -1781,11 +1780,11 @@ final class SettingsStore: ObservableObject {}}- /// Direct Core Audio capture is opt-in while the faster recording path is experimental.+ /// Direct Core Audio capture defaults on while preserving stored user choices.var experimentalDirectAudioCaptureEnabled: Bool {get {let value = self.defaults.object(forKey: Keys.experimentalDirectAudioCaptureEnabled)- return value as? Bool ?? false+ return value as? Bool ?? true}set {objectWillChange.send()@@ -1793,12 +1792,6 @@ final class SettingsStore: ObservableObject {}}- private func disableExperimentalDirectAudioCaptureIfNeeded() {- guard self.defaults.bool(forKey: Keys.experimentalDirectAudioCaptureForcedOff) == false else { return }- self.defaults.set(false, forKey: Keys.experimentalDirectAudioCaptureEnabled)- self.defaults.set(true, forKey: Keys.experimentalDirectAudioCaptureForcedOff)- }-var directAudioCaptureConsecutiveFailures: Int {get { self.defaults.integer(forKey: Keys.directAudioCaptureConsecutiveFailures) }set { self.defaults.set(max(0, newValue), forKey: Keys.directAudioCaptureConsecutiveFailures) }@@ -4928,7 +4921,6 @@ private extension SettingsStore {static let skipSilentRecordingsEnabled = "SkipSilentRecordingsEnabled"static let enableAIStreaming = "EnableAIStreaming"static let experimentalDirectAudioCaptureEnabled = "ExperimentalDirectAudioCaptureEnabled"- static let experimentalDirectAudioCaptureForcedOff = "ExperimentalDirectAudioCaptureForcedOff"static let directAudioCaptureConsecutiveFailures = "DirectAudioCaptureConsecutiveFailures"static let copyTranscriptionToClipboard = "CopyTranscriptionToClipboard"static let textInsertionMode = "TextInsertionMode"diff --git a/Tests/FluidDictationIntegrationTests/HotkeyShortcutTests.swift b/Tests/FluidDictationIntegrationTests/HotkeyShortcutTests.swiftindex 2fa39b99..26dbbd78 100644--- a/Tests/FluidDictationIntegrationTests/HotkeyShortcutTests.swift+++ b/Tests/FluidDictationIntegrationTests/HotkeyShortcutTests.swift@@ -13,6 +13,7 @@ final class HotkeyShortcutTests: XCTestCase {private let microphoneSelectionModeKey = "MicrophoneSelectionMode"private let preferredInputDeviceUIDKey = "PreferredInputDeviceUID"private let systemInputDeviceUIDBeforeManualKey = "SystemInputDeviceUIDBeforeManual"+ private let experimentalDirectAudioCaptureEnabledKey = "ExperimentalDirectAudioCaptureEnabled"@MainActorfunc testBottomOverlayRapidStopStartStopDoesNotDropFinalHide() async {@@ -167,6 +168,30 @@ final class HotkeyShortcutTests: XCTestCase {XCTAssertNil(decoded.settings.skipSilentRecordingsEnabled)}+ func testFasterRecordingStartDefaultsToEnabledWhenUnset() {+ self.withRestoredDefaults(keys: [self.experimentalDirectAudioCaptureEnabledKey]) {+ UserDefaults.standard.removeObject(forKey: self.experimentalDirectAudioCaptureEnabledKey)++ XCTAssertTrue(SettingsStore.shared.experimentalDirectAudioCaptureEnabled)+ }+ }++ func testFasterRecordingStartPreservesStoredDisabledPreference() {+ self.withRestoredDefaults(keys: [self.experimentalDirectAudioCaptureEnabledKey]) {+ UserDefaults.standard.set(false, forKey: self.experimentalDirectAudioCaptureEnabledKey)++ XCTAssertFalse(SettingsStore.shared.experimentalDirectAudioCaptureEnabled)+ }+ }++ func testFasterRecordingStartPreservesStoredEnabledPreference() {+ self.withRestoredDefaults(keys: [self.experimentalDirectAudioCaptureEnabledKey]) {+ UserDefaults.standard.set(true, forKey: self.experimentalDirectAudioCaptureEnabledKey)++ XCTAssertTrue(SettingsStore.shared.experimentalDirectAudioCaptureEnabled)+ }+ }+func testLegacyKeyboardShortcutPayloadDefaultsToKeyboardKind() throws {let json = #"{"keyCode":61,"modifierFlagsRawValue":0}"#let data = try XCTUnwrap(json.data(using: .utf8))