This commit is contained in:
Hoan HL
2025-11-27 15:28:26 +07:00
parent 19008ca485
commit 8853c21927

View File

@@ -902,6 +902,8 @@ class TaskTranscribe extends SttTask {
// We need to keep track the fallback is happened for each endpoint
// override the canFallback and _initFallback methods to make sure that
// we only fallback once per endpoint
// we want to keep track this on task level instead of endpoint level
// because the endpoint instance is used across multiple tasks.
canFallback(ep) {
const isHandledByPrimaryProvider = ep === this.ep ?
this.isHandledByPrimaryProviderForEp1 : ep === this.ep2 ?