add support for deepgram keyterms (#1071)

This commit is contained in:
Dave Horton
2025-02-07 13:12:25 -05:00
committed by GitHub
parent f241faa871
commit 55b408eecb
3 changed files with 10 additions and 7 deletions

View File

@@ -44,7 +44,8 @@ const stickyVars = {
'DEEPGRAM_SPEECH_VAD_TURNOFF',
'DEEPGRAM_SPEECH_TAG',
'DEEPGRAM_SPEECH_MODEL_VERSION',
'DEEPGRAM_SPEECH_FILLER_WORDS'
'DEEPGRAM_SPEECH_FILLER_WORDS',
'DEEPGRAM_SPEECH_KEYTERMS',
],
aws: [
'AWS_VOCABULARY_NAME',
@@ -841,7 +842,9 @@ module.exports = (logger) => {
...(deepgramOptions.version) &&
{DEEPGRAM_SPEECH_MODEL_VERSION: deepgramOptions.version},
...(deepgramOptions.fillerWords) &&
{DEEPGRAM_SPEECH_FILLER_WORDS: deepgramOptions.fillerWords}
{DEEPGRAM_SPEECH_FILLER_WORDS: deepgramOptions.fillerWords},
...((Array.isArray(deepgramOptions.keyterms) && deepgramOptions.keyterms.length > 0) &&
{DEEPGRAM_SPEECH_KEYTERMS: deepgramOptions.keyterms.join(',')})
};
}
else if ('soniox' === vendor) {

8
package-lock.json generated
View File

@@ -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.95",
"@jambonz/verb-specifications": "^0.0.96",
"@opentelemetry/api": "^1.8.0",
"@opentelemetry/exporter-jaeger": "^1.23.0",
"@opentelemetry/exporter-trace-otlp-http": "^0.50.0",
@@ -1550,9 +1550,9 @@
}
},
"node_modules/@jambonz/verb-specifications": {
"version": "0.0.95",
"resolved": "https://registry.npmjs.org/@jambonz/verb-specifications/-/verb-specifications-0.0.95.tgz",
"integrity": "sha512-36JB/Dc6k2KFqPzaZjREKfF+2sHYkQeJPMQkqeT61V/WHqso+MpWAKxPhBIu2B1E+6D/VS2jUrHRRmahU4nIVQ==",
"version": "0.0.96",
"resolved": "https://registry.npmjs.org/@jambonz/verb-specifications/-/verb-specifications-0.0.96.tgz",
"integrity": "sha512-ggql6YBpG3+U1CMiMMxQaufliXt29xn6KcCkFVZbVL4e2TjYOVqgtzSYwXxQ8+ahAj+OzrEk09paHJFNglsXZg==",
"dependencies": {
"debug": "^4.3.4",
"pino": "^8.8.0"

View File

@@ -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.95",
"@jambonz/verb-specifications": "^0.0.96",
"@jambonz/time-series": "^0.2.13",
"@opentelemetry/api": "^1.8.0",
"@opentelemetry/exporter-jaeger": "^1.23.0",