From 95ab8c32b5ad701485bae16ae1496a9a3a10dbc8 Mon Sep 17 00:00:00 2001 From: Quan HL Date: Wed, 11 Oct 2023 05:50:36 +0700 Subject: [PATCH] fix transcribe credential --- 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 4c47f3a8b..30dca36ed 100644 --- a/lib/tasks/transcribe.js +++ b/lib/tasks/transcribe.js @@ -175,8 +175,8 @@ class TaskTranscribe extends SttTask { } async _setSpeechHandlers(cs, ep, channel) { - if (ep._speechHandlersSet) return; - ep._speechHandlersSet = true; + if (this[`_speechHandlersSet_${channel}`]) return; + this[`_speechHandlersSet_${channel}`] = true; const opts = this.setChannelVarsForStt(this, this.sttCredentials, this.data.recognizer); switch (this.vendor) { case 'google':