From 7fa0041f6bf7692a8eb352c799fe0c7a36db61d3 Mon Sep 17 00:00:00 2001 From: Hoan Luu Huu <110280845+xquanluu@users.noreply.github.com> Date: Sun, 16 Feb 2025 04:39:30 +0700 Subject: [PATCH] support deepgram options noDelay (#1083) * support deepgram options noDelay * update verb specification version --- lib/utils/transcription-utils.js | 3 +++ package-lock.json | 9 +++++---- package.json | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/lib/utils/transcription-utils.js b/lib/utils/transcription-utils.js index ef5c2795..294b6397 100644 --- a/lib/utils/transcription-utils.js +++ b/lib/utils/transcription-utils.js @@ -30,6 +30,7 @@ const stickyVars = { 'DEEPGRAM_SPEECH_TIER', 'DEEPGRAM_SPEECH_MODEL', 'DEEPGRAM_SPEECH_ENABLE_SMART_FORMAT', + 'DEEPGRAM_SPEECH_ENABLE_NO_DELAY', 'DEEPGRAM_SPEECH_ENABLE_AUTOMATIC_PUNCTUATION', 'DEEPGRAM_SPEECH_PROFANITY_FILTER', 'DEEPGRAM_SPEECH_REDACT', @@ -805,6 +806,8 @@ module.exports = (logger) => { {DEEPGRAM_SPEECH_ENABLE_AUTOMATIC_PUNCTUATION: 1}, ...(deepgramOptions.smartFormatting) && {DEEPGRAM_SPEECH_ENABLE_SMART_FORMAT: 1}, + ...(deepgramOptions.noDelay) && + {DEEPGRAM_SPEECH_ENABLE_NO_DELAY: 1}, ...(deepgramOptions.profanityFilter) && {DEEPGRAM_SPEECH_PROFANITY_FILTER: 1}, ...(deepgramOptions.redact) && diff --git a/package-lock.json b/package-lock.json index 154c911c..e833c1b8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,7 @@ "@jambonz/speech-utils": "^0.2.3", "@jambonz/stats-collector": "^0.1.10", "@jambonz/time-series": "^0.2.13", - "@jambonz/verb-specifications": "^0.0.96", + "@jambonz/verb-specifications": "^0.0.97", "@opentelemetry/api": "^1.8.0", "@opentelemetry/exporter-jaeger": "^1.23.0", "@opentelemetry/exporter-trace-otlp-http": "^0.50.0", @@ -1550,9 +1550,10 @@ } }, "node_modules/@jambonz/verb-specifications": { - "version": "0.0.96", - "resolved": "https://registry.npmjs.org/@jambonz/verb-specifications/-/verb-specifications-0.0.96.tgz", - "integrity": "sha512-ggql6YBpG3+U1CMiMMxQaufliXt29xn6KcCkFVZbVL4e2TjYOVqgtzSYwXxQ8+ahAj+OzrEk09paHJFNglsXZg==", + "version": "0.0.97", + "resolved": "https://registry.npmjs.org/@jambonz/verb-specifications/-/verb-specifications-0.0.97.tgz", + "integrity": "sha512-CncykmCwc8YZcDYwFDq88n6IAyoQNae3lSF2BI5etoBKMujzxOty227lq6zgeXun9UYYDy/CONk5MiLO29kcBg==", + "license": "MIT", "dependencies": { "debug": "^4.3.4", "pino": "^8.8.0" diff --git a/package.json b/package.json index 7983f060..a50f1b07 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "@jambonz/realtimedb-helpers": "^0.8.8", "@jambonz/speech-utils": "^0.2.3", "@jambonz/stats-collector": "^0.1.10", - "@jambonz/verb-specifications": "^0.0.96", + "@jambonz/verb-specifications": "^0.0.97", "@jambonz/time-series": "^0.2.13", "@opentelemetry/api": "^1.8.0", "@opentelemetry/exporter-jaeger": "^1.23.0",