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: help Xcode 26.3 type-check three expressions (#1071)
postosoc21c28a603fd
diff --git a/Sources/Fluid/Services/Meeting/MeetingExternalReferenceTrialA.swift b/Sources/Fluid/Services/Meeting/MeetingExternalReferenceTrialA.swiftindex 9db933b2..cbe54569 100644--- a/Sources/Fluid/Services/Meeting/MeetingExternalReferenceTrialA.swift+++ b/Sources/Fluid/Services/Meeting/MeetingExternalReferenceTrialA.swift@@ -756,16 +756,19 @@ nonisolated enum MeetingExternalReferenceTrialAAutorun {persisted: false,captureValid: captureValid,acousticMeasurementValid: false,- reasons: ["diagnostic-only", "no app-owned playback", "independent clocks; acoustic delay unknown"]- + ((reference.peak ?? 0) >= 0.001 ? [] : ["reference below excitation floor"])- + (postCaptureRouteConfirmed ? [] : ["capture-time route changed or became unreadable"])- + (volumeUnchanged ? [] : ["output volume changed during capture"])- + ((measuredCombinedPeak ?? .infinity) <= 0.15 ? [] : ["measured combined peak exceeded 0.15"])- + (reference.timingValid && microphoneReport.timingValid ? [] : ["timing invalid or bounded collector dropped audio"])- + (streamDelegate.errorCount == 0 ? [] : ["ScreenCaptureKit stream stopped with error"])- + (stopErrorCount == 0 ? [] : ["stream stop or output cleanup failed"])- + (targetProcessStable ? [] : ["target process became unstable"])- + (voiceProcessingReadbackValid ? [] : ["VPIO engine/voice-processing device readback was not verified"])+ reasons: { () -> [String] in+ var reasons = ["diagnostic-only", "no app-owned playback", "independent clocks; acoustic delay unknown"]+ reasons += ((reference.peak ?? 0) >= 0.001 ? [] : ["reference below excitation floor"])+ reasons += (postCaptureRouteConfirmed ? [] : ["capture-time route changed or became unreadable"])+ reasons += (volumeUnchanged ? [] : ["output volume changed during capture"])+ reasons += ((measuredCombinedPeak ?? .infinity) <= 0.15 ? [] : ["measured combined peak exceeded 0.15"])+ reasons += (reference.timingValid && microphoneReport.timingValid ? [] : ["timing invalid or bounded collector dropped audio"])+ reasons += (streamDelegate.errorCount == 0 ? [] : ["ScreenCaptureKit stream stopped with error"])+ reasons += (stopErrorCount == 0 ? [] : ["stream stop or output cleanup failed"])+ reasons += (targetProcessStable ? [] : ["target process became unstable"])+ reasons += (voiceProcessingReadbackValid ? [] : ["VPIO engine/voice-processing device readback was not verified"])+ return reasons+ }())do {let data = try JSONEncoder.sorted.encode(report)diff --git a/Sources/Fluid/UI/DictionaryWordWizard.swift b/Sources/Fluid/UI/DictionaryWordWizard.swiftindex c57f3139..8f6083ba 100644--- a/Sources/Fluid/UI/DictionaryWordWizard.swift+++ b/Sources/Fluid/UI/DictionaryWordWizard.swift@@ -768,8 +768,8 @@ struct DictionaryRibbon: Shape {let width = cos(angle * lobes + offset + drift) * (0.11 + self.energy * 0.05) + 0.018let distance = radius * (center + spread * width)let point = CGPoint(- x: rect.midX + cos(angle) * distance,- y: rect.midY + sin(angle) * distance+ x: rect.midX + CGFloat(cos(angle)) * distance,+ y: rect.midY + CGFloat(sin(angle)) * distance)if sample == 0 { path.move(to: point) } else { path.addLine(to: point) }}diff --git a/Tests/FluidDictationIntegrationTests/MeetingReferenceSynchronizerTests.swift b/Tests/FluidDictationIntegrationTests/MeetingReferenceSynchronizerTests.swiftindex 948ad764..b9781b27 100644--- a/Tests/FluidDictationIntegrationTests/MeetingReferenceSynchronizerTests.swift+++ b/Tests/FluidDictationIntegrationTests/MeetingReferenceSynchronizerTests.swift@@ -185,7 +185,7 @@ final class MeetingReferenceSynchronizerTests: XCTestCase {}func testStereoContinuityUsesDownmixedCountAndMalformedArrayIsGap() {- let stereo = (0..<2).map { index in+ let stereo = (0..<2).map { (index: Int) inMeetingMicrophonePCMFrame(sequenceNumber: index,sampleTime: Int64(index * 160),@@ -303,12 +303,12 @@ final class MeetingReferenceSynchronizerTests: XCTestCase {referenceScope: .authorizedFullMix,referenceCompleteness: .measuredComplete)- let microphone = (0..<frameCount).map {+ let microphone = (0..<frameCount).map { (index: Int) inself.mic(- $0,- start: Int64($0 * 160),- host: Double($0) * 0.01,- value: Float(($0 % 13) + 1)+ index,+ start: Int64(index * 160),+ host: Double(index) * 0.01,+ value: Float((index % 13) + 1))}let reference = (0..<frameCount).map { index in