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

Defer default input lookup until audio startup

Ashwanthram65ab7270acd0
diff --git a/Sources/Fluid/ContentView.swift b/Sources/Fluid/ContentView.swift
index 73c49928..d03cfc8f 100644
--- a/Sources/Fluid/ContentView.swift
+++ b/Sources/Fluid/ContentView.swift
@@ -251,7 +251,9 @@ struct ContentView: View {
@State private var visualizerNoiseThreshold: Double = SettingsStore.shared.visualizerNoiseThreshold
@State private var inputDevices: [AudioDevice.Device] = []
@State private var outputDevices: [AudioDevice.Device] = []
- @State private var selectedInputUID: String = AudioDevice.getDefaultInputDevice()?.uid ?? ""
+ // Populated by gated audio initialization; querying Core Audio while SwiftUI
+ // constructs this view can race AttributeGraph metadata processing.
+ @State private var selectedInputUID: String = ""
@State private var selectedOutputUID: String = SettingsStore.shared.preferredOutputDeviceUID ?? ""
@State private var microphoneSelectionMode: SettingsStore.MicrophoneSelectionMode = SettingsStore.shared.microphoneSelectionMode