From fc2ad387505e13e975eca53ebf53f9e85c7cba65 Mon Sep 17 00:00:00 2001 From: Hoan HL Date: Thu, 27 Nov 2025 16:53:04 +0700 Subject: [PATCH] wip --- lib/tasks/transcribe.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tasks/transcribe.js b/lib/tasks/transcribe.js index 1c5a991c..0e13fd7d 100644 --- a/lib/tasks/transcribe.js +++ b/lib/tasks/transcribe.js @@ -912,7 +912,7 @@ class TaskTranscribe extends SttTask { isHandledByPrimaryProvider = this.isHandledByPrimaryProviderForEp2; } - const isOneOfEndpointAlreadyFallenBack = + const isOneOfEndpointAlreadyFallenBack = !!this.ep && !!this.ep2 && this.isHandledByPrimaryProviderForEp1 !== this.isHandledByPrimaryProviderForEp2; // fallback is configured @@ -921,7 +921,7 @@ class TaskTranscribe extends SttTask { isHandledByPrimaryProvider && // in global level, is there any fallback is already happened // one fallen endpoint will mark cs.hasFallbackAsr to true, - // so the other endpoint will be able to fallback again + // so if one endpoint the other endpoint will be able to fallback again (isOneOfEndpointAlreadyFallenBack || !this.cs.hasFallbackAsr); }