diff --git a/lib/tasks/gather.js b/lib/tasks/gather.js index b5ef89eb..a7e1d7e2 100644 --- a/lib/tasks/gather.js +++ b/lib/tasks/gather.js @@ -301,7 +301,7 @@ class TaskGather extends SttTask { if (this.data.recognizer?.deepgramOptions?.shortUtterance) this.shortUtterance = true; } - const opts = this.setChannelVarsForStt(this, this.sttCredentials, this.data.recognizer); + const opts = this.setChannelVarsForStt(this, this.sttCredentials, this.language, this.data.recognizer); switch (this.vendor) { case 'google': this.bugname = `${this.bugname_prefix}google_transcribe`; diff --git a/lib/tasks/transcribe.js b/lib/tasks/transcribe.js index c6a387c4..455b3010 100644 --- a/lib/tasks/transcribe.js +++ b/lib/tasks/transcribe.js @@ -138,7 +138,7 @@ class TaskTranscribe extends SttTask { if (this.isContinuousAsr) this._doContinuousAsrWithDeepgram(this.asrTimeout); } - const opts = this.setChannelVarsForStt(this, this.sttCredentials, this.data.recognizer); + const opts = this.setChannelVarsForStt(this, this.sttCredentials, this.language, this.data.recognizer); switch (this.vendor) { case 'google': this.bugname = `${this.bugname_prefix}google_transcribe`;