fixed transcribe cannot fallback for specific endpoint

This commit is contained in:
Hoan HL
2025-11-27 15:07:57 +07:00
parent 1a1f53aede
commit 4065db1d88
2 changed files with 17 additions and 5 deletions

View File

@@ -786,7 +786,7 @@ class TaskTranscribe extends SttTask {
try {
this.notifyError({ msg: 'ASR error',
details:`STT Vendor ${this.vendor} error: ${evt.error || evt.reason}`, failover: 'in progress'});
await this._initFallback();
await this._initFallback(_ep);
let channel = 1;
if (this.ep !== _ep) {
channel = 2;