fix: transcribe 2 channels (#479)

* fix: transcribe 2 channels

* fix

* fix
This commit is contained in:
Hoan Luu Huu authored and GitHub committed 2023-10-10 08:46:50 -04:00
1 parent 6a3e12e293
commit 09ae083c9a
1 file changed
+2 -2
+2 -2
View File
@@ -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':