This commit is contained in:
Hoan HL
2025-11-27 15:59:47 +07:00
parent 8853c21927
commit c226e55fcc

View File

@@ -907,7 +907,7 @@ class TaskTranscribe extends SttTask {
canFallback(ep) {
const isHandledByPrimaryProvider = ep === this.ep ?
this.isHandledByPrimaryProviderForEp1 : ep === this.ep2 ?
this.isHandledByPrimaryProviderForEp2 : false;
this.isHandledByPrimaryProviderForEp2 : this.isHandledByPrimaryProvider;
return this.fallbackVendor && isHandledByPrimaryProvider && !this.cs.hasFallbackAsr;
}