Public Access
fix(macos): preserve audio when transcription fails
PR and Push Build/Test / build-and-test (pull_request) Failing after 11m18s
PR and Push Build/Test / build-and-test (pull_request) Failing after 11m18s
This commit is contained in:
@@ -624,6 +624,24 @@ public sealed class MeetingRecordingCoordinator
|
||||
catch (Exception exception)
|
||||
{
|
||||
logger.LogError(exception, "Meeting recording failed");
|
||||
if (IsAzureSpeechRun(run) && !run.IsQueuedForOfflineTranscription)
|
||||
{
|
||||
logger.LogWarning(
|
||||
"Azure Speech transcription failed; retaining recorded audio and queueing offline transcription backlog item");
|
||||
run.MarkQueuedForOfflineTranscription();
|
||||
try
|
||||
{
|
||||
await offlineTranscriptionBacklog.EnqueueAsync(
|
||||
CreateOfflineBacklogItem(run),
|
||||
CancellationToken.None);
|
||||
}
|
||||
catch (Exception backlogException)
|
||||
{
|
||||
logger.LogError(
|
||||
backlogException,
|
||||
"Could not queue offline transcription backlog item; retaining recorded audio for manual recovery");
|
||||
}
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user