From d2a5d483d06491e4908af58a891a3a1cb8d1d6b2 Mon Sep 17 00:00:00 2001 From: rammohan-kore Date: Mon, 12 Aug 2024 19:04:23 +0530 Subject: [PATCH] feat/856: sending DEEPGRAM_SPEECH_MODEL_VERSION to deepgram (#858) --- lib/utils/transcription-utils.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/utils/transcription-utils.js b/lib/utils/transcription-utils.js index 56ae306b..40986f12 100644 --- a/lib/utils/transcription-utils.js +++ b/lib/utils/transcription-utils.js @@ -45,7 +45,8 @@ const stickyVars = { 'DEEPGRAM_SPEECH_ENDPOINTING', 'DEEPGRAM_SPEECH_UTTERANCE_END_MS', 'DEEPGRAM_SPEECH_VAD_TURNOFF', - 'DEEPGRAM_SPEECH_TAG' + 'DEEPGRAM_SPEECH_TAG', + 'DEEPGRAM_SPEECH_MODEL_VERSION' ], aws: [ 'AWS_VOCABULARY_NAME', @@ -709,7 +710,9 @@ module.exports = (logger) => { ...(deepgramOptions.vadTurnoff) && {DEEPGRAM_SPEECH_VAD_TURNOFF: deepgramOptions.vadTurnoff}, ...(deepgramOptions.tag) && - {DEEPGRAM_SPEECH_TAG: deepgramOptions.tag} + {DEEPGRAM_SPEECH_TAG: deepgramOptions.tag}, + ...(deepgramOptions.version) && + {DEEPGRAM_SPEECH_MODEL_VERSION: deepgramOptions.version} }; } else if ('soniox' === vendor) {