fix transcribe credential (#480)

This commit is contained in:
Hoan Luu Huu
2023-10-11 08:06:46 +07:00
committed by GitHub
parent 09ae083c9a
commit 2285ec5329

View File

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