From 7da11df88eca52bca77c54e4b77846f347f87fac Mon Sep 17 00:00:00 2001 From: Hoan Luu Huu <110280845+xquanluu@users.noreply.github.com> Date: Mon, 15 Apr 2024 06:39:07 +0700 Subject: [PATCH] default DEEPGRAM_SPEECH_UTTERANCE_END_MS is 1000 (#719) --- lib/utils/transcription-utils.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/utils/transcription-utils.js b/lib/utils/transcription-utils.js index 106bb9dc..e83aa99f 100644 --- a/lib/utils/transcription-utils.js +++ b/lib/utils/transcription-utils.js @@ -690,7 +690,9 @@ module.exports = (logger) => { ...(deepgramOptions.keywords) && {DEEPGRAM_SPEECH_KEYWORDS: deepgramOptions.keywords.join(',')}, ...('endpointing' in deepgramOptions) && - {DEEPGRAM_SPEECH_ENDPOINTING: deepgramOptions.endpointing === false ? 'false' : deepgramOptions.endpointing}, + {DEEPGRAM_SPEECH_ENDPOINTING: deepgramOptions.endpointing === false ? 'false' : deepgramOptions.endpointing, + // default DEEPGRAM_SPEECH_UTTERANCE_END_MS is 1000, will be override by user settings later if there is. + DEEPGRAM_SPEECH_UTTERANCE_END_MS: 1000}, ...(deepgramOptions.utteranceEndMs) && {DEEPGRAM_SPEECH_UTTERANCE_END_MS: deepgramOptions.utteranceEndMs}, ...(deepgramOptions.vadTurnoff) &&