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
Keep Retry on the latest requested meeting language.
ParamKataria5c5d1a922e35
diff --git a/Sources/Fluid/Services/Meeting/MeetingProcessingConfiguration.swift b/Sources/Fluid/Services/Meeting/MeetingProcessingConfiguration.swiftindex 332a5e6b..5df74062 100644--- a/Sources/Fluid/Services/Meeting/MeetingProcessingConfiguration.swift+++ b/Sources/Fluid/Services/Meeting/MeetingProcessingConfiguration.swift@@ -96,11 +96,12 @@ enum MeetingRetranscriptionLanguage {return code != currentLanguageCode}- /// The language an empty meeting should try again. Only the latest attempt counts: an older- /// Dutch failure must not replace a later German request that is still pending.+ /// The language an empty meeting should try again. Use the latest attempt that recorded a+ /// language, pending or failed. A later recovery attempt with no language must not hide that+ /// request, and an older failure must not replace a newer one.static func failedAttemptLanguage(for session: MeetingSession) -> String? {guard session.transcriptSegments.isEmpty,- let language = session.processingAttempts.last?.languageCode,+ let language = session.processingAttempts.last(where: { $0.languageCode != nil })?.languageCode,Self.canRetranscribe(selection: language, currentLanguageCode: session.languageCode)else { return nil }return Self.canonicalCode(language)diff --git a/Tests/FluidDictationIntegrationTests/MeetingRecoveryTests.swift b/Tests/FluidDictationIntegrationTests/MeetingRecoveryTests.swiftindex 29a3ea82..29bf4919 100644--- a/Tests/FluidDictationIntegrationTests/MeetingRecoveryTests.swift+++ b/Tests/FluidDictationIntegrationTests/MeetingRecoveryTests.swift@@ -2679,6 +2679,20 @@ final class MeetingRecoveryTests: XCTestCase {),]XCTAssertEqual(MeetingRetranscriptionLanguage.failedAttemptLanguage(for: session), "de")+ session.processingAttempts.append(MeetingProcessingAttempt(+ id: UUID(),+ startedAt: Date(),+ completedAt: nil,+ stage: .pending,+ pipelineVersion: 1,+ asrProvider: nil,+ asrModel: nil,+ languageCode: nil,+ diarizationModel: nil,+ lastCompletedTrackID: nil,+ errorCode: nil+ ))+ XCTAssertEqual(MeetingRetranscriptionLanguage.failedAttemptLanguage(for: session), "de")}func testFailedLanguageChangeWithoutAttemptMetadataKeepsOriginalLanguage() async throws {