fix: transcribe 2 channels (#479)

* fix: transcribe 2 channels

* fix

* fix
This commit is contained in:
Hoan Luu Huu
2023-10-10 19:46:50 +07:00
committed by GitHub
parent 6a3e12e293
commit 09ae083c9a

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':