From 09ae083c9a74e4684eec0f647cb85994f498f2ca Mon Sep 17 00:00:00 2001 From: Hoan Luu Huu <110280845+xquanluu@users.noreply.github.com> Date: Tue, 10 Oct 2023 19:46:50 +0700 Subject: [PATCH] fix: transcribe 2 channels (#479) * fix: transcribe 2 channels * fix * fix --- 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 4e87810d..4c47f3a8 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 (this._speechHandlersSet) return; - this._speechHandlersSet = true; + if (ep._speechHandlersSet) return; + ep._speechHandlersSet = true; const opts = this.setChannelVarsForStt(this, this.sttCredentials, this.data.recognizer); switch (this.vendor) { case 'google':