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) { async _setSpeechHandlers(cs, ep, channel) {
if (ep._speechHandlersSet) return; if (this[`_speechHandlersSet_${channel}`]) return;
ep._speechHandlersSet = true; this[`_speechHandlersSet_${channel}`] = true;
const opts = this.setChannelVarsForStt(this, this.sttCredentials, this.data.recognizer); const opts = this.setChannelVarsForStt(this, this.sttCredentials, this.data.recognizer);
switch (this.vendor) { switch (this.vendor) {
case 'google': case 'google':