From 2285ec5329fd74172b7c17420c18ba787220b361 Mon Sep 17 00:00:00 2001 From: Hoan Luu Huu <110280845+xquanluu@users.noreply.github.com> Date: Wed, 11 Oct 2023 08:06:46 +0700 Subject: [PATCH] fix transcribe credential (#480) --- 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 4c47f3a8..30dca36e 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':