fix(macos): preserve audio when transcription fails
PR and Push Build/Test / build-and-test (pull_request) Failing after 11m18s

This commit is contained in:
dh
2026-09-01 11:55:15 +02:00
parent 68db6955a2
commit 84dc696ce9
6 changed files with 132 additions and 5 deletions
+8 -1
View File
@@ -137,6 +137,8 @@ After Azure Speech reconnects through a new SDK session, Meeting Assistant SHALL
When Azure Speech is still unavailable after recording stops and transcription cannot drain before the configured stop-processing timeout, Meeting Assistant SHALL persist the stopped meeting as a durable transcription backlog item that references the completed mixed WAV and meeting artifacts.
When Azure Speech transcription fails after meeting audio has been captured, Meeting Assistant SHALL retain the completed mixed WAV and persist a durable transcription backlog item instead of deleting the only recoverable recording.
When a stopped meeting is persisted to the durable transcription backlog, Meeting Assistant SHALL release the active recording slot so another meeting can be recorded while the stopped meeting waits for Azure Speech to become available.
When Azure Speech becomes available again, Meeting Assistant SHALL retry durable backlog items, rewrite the transcript from the recorded WAV, run the normal post-transcription meeting completion and summary flow, and remove the backlog item after successful completion.
@@ -182,6 +184,12 @@ When Meeting Assistant starts, it SHALL preserve WAV files that are referenced b
- **AND** keeps the completed mixed WAV referenced by that backlog item
- **AND** returns to an idle recording state so another meeting can start
#### Scenario: Azure transcription failure retains captured meeting audio
- **GIVEN** Meeting Assistant captured meeting audio with the `azure-speech` provider
- **WHEN** Azure transcription fails before the transcript is completed
- **THEN** Meeting Assistant persists a durable backlog item for the meeting
- **AND** keeps the completed mixed WAV referenced by that backlog item for retry or manual recovery
#### Scenario: Durable Azure backlog resumes after connectivity returns
- **GIVEN** a stopped Azure meeting exists in the durable transcription backlog
- **WHEN** Azure Speech can transcribe the recorded WAV
@@ -565,4 +573,3 @@ When pyannote secondary validation is enabled, Meeting Assistant SHALL start a n
- **WHEN** Meeting Assistant starts
- **THEN** it begins preparing the configured pyannote runtime image and model cache without waiting for the first validation request
- **AND** application startup is not blocked by the warm-up task