diff --git a/lib/tasks/gather.js b/lib/tasks/gather.js index dc0150cb..be88bc02 100644 --- a/lib/tasks/gather.js +++ b/lib/tasks/gather.js @@ -142,8 +142,14 @@ class TaskGather extends Task { }, 'Gather:exec - enabling continuous ASR since it is turned on for the session'); } this.ep = ep; - if ('default' === this.vendor || !this.vendor) this.vendor = cs.speechRecognizerVendor; - if ('default' === this.language || !this.language) this.language = cs.speechRecognizerLanguage; + if ('default' === this.vendor || !this.vendor) { + this.vendor = cs.speechRecognizerVendor; + if (this.data.recognizer) this.data.recognizer.vendor = this.vendor; + } + if ('default' === this.language || !this.language) { + this.language = cs.speechRecognizerLanguage; + if (this.data.recognizer) this.data.recognizer.language = this.language; + } if (!this.data.recognizer.vendor) { this.data.recognizer.vendor = this.vendor; } diff --git a/lib/tasks/transcribe.js b/lib/tasks/transcribe.js index 9df0f3fa..9e218b04 100644 --- a/lib/tasks/transcribe.js +++ b/lib/tasks/transcribe.js @@ -68,8 +68,14 @@ class TaskTranscribe extends Task { this.ep = ep; this.ep2 = ep2; - if ('default' === this.vendor || !this.vendor) this.vendor = cs.speechRecognizerVendor; - if ('default' === this.language || !this.language) this.language = cs.speechRecognizerLanguage; + if ('default' === this.vendor || !this.vendor) { + this.vendor = cs.speechRecognizerVendor; + if (this.data.recognizer) this.data.recognizer.vendor = this.vendor; + } + if ('default' === this.language || !this.language) { + this.language = cs.speechRecognizerLanguage; + if (this.data.recognizer) this.data.recognizer.language = this.language; + } if (!this.data.recognizer.vendor) { this.data.recognizer.vendor = this.vendor; } diff --git a/lib/utils/db-utils.js b/lib/utils/db-utils.js index 49a05f14..d4fcd680 100644 --- a/lib/utils/db-utils.js +++ b/lib/utils/db-utils.js @@ -87,7 +87,7 @@ module.exports = (logger, srf) => { const haveNuance = speech.find((s) => s.vendor === 'nuance'); const haveDeepgram = speech.find((s) => s.vendor === 'deepgram'); const haveIbm = speech.find((s) => s.vendor === 'ibm'); - if (!haveGoogle || !haveAws || !haveMicrosoft || !haveWellsaid || !haveNuance) { + if (!haveGoogle || !haveAws || !haveMicrosoft || !haveWellsaid || !haveNuance || !haveIbm || !haveDeepgram) { const [r3] = await pp.query(sqlSpeechCredentialsForSP, account_sid); if (r3.length) { if (!haveGoogle) {