mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
* #508 - add support for azureOptions.speechSegmentationSilenceTimeoutMs * update verb specs
This commit is contained in:
@@ -34,6 +34,7 @@ const stickyVars = {
|
|||||||
'AZURE_SERVICE_ENDPOINT',
|
'AZURE_SERVICE_ENDPOINT',
|
||||||
'AZURE_INITIAL_SPEECH_TIMEOUT_MS',
|
'AZURE_INITIAL_SPEECH_TIMEOUT_MS',
|
||||||
'AZURE_USE_OUTPUT_FORMAT_DETAILED',
|
'AZURE_USE_OUTPUT_FORMAT_DETAILED',
|
||||||
|
'AZURE_SPEECH_SEGMENTATION_SILENCE_TIMEOUT_MS'
|
||||||
],
|
],
|
||||||
deepgram: [
|
deepgram: [
|
||||||
'DEEPGRAM_SPEECH_KEYWORDS',
|
'DEEPGRAM_SPEECH_KEYWORDS',
|
||||||
@@ -418,6 +419,7 @@ module.exports = (logger) => {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
else if ('microsoft' === vendor) {
|
else if ('microsoft' === vendor) {
|
||||||
|
const {azureOptions = {}} = rOpts;
|
||||||
opts = {
|
opts = {
|
||||||
...opts,
|
...opts,
|
||||||
...(rOpts.hints?.length > 0 && typeof rOpts.hints[0] === 'string' &&
|
...(rOpts.hints?.length > 0 && typeof rOpts.hints[0] === 'string' &&
|
||||||
@@ -436,6 +438,8 @@ module.exports = (logger) => {
|
|||||||
...(rOpts.requestSnr && {AZURE_REQUEST_SNR: 1}),
|
...(rOpts.requestSnr && {AZURE_REQUEST_SNR: 1}),
|
||||||
...(rOpts.audioLogging && {AZURE_AUDIO_LOGGING: 1}),
|
...(rOpts.audioLogging && {AZURE_AUDIO_LOGGING: 1}),
|
||||||
...{AZURE_USE_OUTPUT_FORMAT_DETAILED: 1},
|
...{AZURE_USE_OUTPUT_FORMAT_DETAILED: 1},
|
||||||
|
...(azureOptions.speechSegmentationSilenceTimeoutMs &&
|
||||||
|
{AZURE_SPEECH_SEGMENTATION_SILENCE_TIMEOUT_MS: azureOptions.speechSegmentationSilenceTimeoutMs}),
|
||||||
...(sttCredentials && {
|
...(sttCredentials && {
|
||||||
...(sttCredentials.api_key && {AZURE_SUBSCRIPTION_KEY: sttCredentials.api_key}),
|
...(sttCredentials.api_key && {AZURE_SUBSCRIPTION_KEY: sttCredentials.api_key}),
|
||||||
...(sttCredentials.region && {AZURE_REGION: sttCredentials.region}),
|
...(sttCredentials.region && {AZURE_REGION: sttCredentials.region}),
|
||||||
|
|||||||
14
package-lock.json
generated
14
package-lock.json
generated
@@ -18,7 +18,7 @@
|
|||||||
"@jambonz/speech-utils": "^0.0.22",
|
"@jambonz/speech-utils": "^0.0.22",
|
||||||
"@jambonz/stats-collector": "^0.1.9",
|
"@jambonz/stats-collector": "^0.1.9",
|
||||||
"@jambonz/time-series": "^0.2.8",
|
"@jambonz/time-series": "^0.2.8",
|
||||||
"@jambonz/verb-specifications": "^0.0.41",
|
"@jambonz/verb-specifications": "^0.0.44",
|
||||||
"@opentelemetry/api": "^1.4.0",
|
"@opentelemetry/api": "^1.4.0",
|
||||||
"@opentelemetry/exporter-jaeger": "^1.9.0",
|
"@opentelemetry/exporter-jaeger": "^1.9.0",
|
||||||
"@opentelemetry/exporter-trace-otlp-http": "^0.35.0",
|
"@opentelemetry/exporter-trace-otlp-http": "^0.35.0",
|
||||||
@@ -3181,9 +3181,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@jambonz/verb-specifications": {
|
"node_modules/@jambonz/verb-specifications": {
|
||||||
"version": "0.0.41",
|
"version": "0.0.44",
|
||||||
"resolved": "https://registry.npmjs.org/@jambonz/verb-specifications/-/verb-specifications-0.0.41.tgz",
|
"resolved": "https://registry.npmjs.org/@jambonz/verb-specifications/-/verb-specifications-0.0.44.tgz",
|
||||||
"integrity": "sha512-e8swr+UbZdqzVOvGN36IgyGjv8lva+9wN6C4bCiXczjNnxRuk+ihy5Dg6guCOK5G/6qfkaG59591EiClMviLDQ==",
|
"integrity": "sha512-mXTbZlJ3AprxooSNvEHYt/9wsky4wHT4mJmL2XrkZGQY6fG/LzVNFVy0Tvx0xZzAVJMY9SmNcDiM0HBNnAufIg==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"debug": "^4.3.4",
|
"debug": "^4.3.4",
|
||||||
"pino": "^8.8.0"
|
"pino": "^8.8.0"
|
||||||
@@ -13275,9 +13275,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@jambonz/verb-specifications": {
|
"@jambonz/verb-specifications": {
|
||||||
"version": "0.0.41",
|
"version": "0.0.44",
|
||||||
"resolved": "https://registry.npmjs.org/@jambonz/verb-specifications/-/verb-specifications-0.0.41.tgz",
|
"resolved": "https://registry.npmjs.org/@jambonz/verb-specifications/-/verb-specifications-0.0.44.tgz",
|
||||||
"integrity": "sha512-e8swr+UbZdqzVOvGN36IgyGjv8lva+9wN6C4bCiXczjNnxRuk+ihy5Dg6guCOK5G/6qfkaG59591EiClMviLDQ==",
|
"integrity": "sha512-mXTbZlJ3AprxooSNvEHYt/9wsky4wHT4mJmL2XrkZGQY6fG/LzVNFVy0Tvx0xZzAVJMY9SmNcDiM0HBNnAufIg==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"debug": "^4.3.4",
|
"debug": "^4.3.4",
|
||||||
"pino": "^8.8.0"
|
"pino": "^8.8.0"
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
"@jambonz/speech-utils": "^0.0.22",
|
"@jambonz/speech-utils": "^0.0.22",
|
||||||
"@jambonz/stats-collector": "^0.1.9",
|
"@jambonz/stats-collector": "^0.1.9",
|
||||||
"@jambonz/time-series": "^0.2.8",
|
"@jambonz/time-series": "^0.2.8",
|
||||||
"@jambonz/verb-specifications": "^0.0.41",
|
"@jambonz/verb-specifications": "^0.0.44",
|
||||||
"@opentelemetry/api": "^1.4.0",
|
"@opentelemetry/api": "^1.4.0",
|
||||||
"@opentelemetry/exporter-jaeger": "^1.9.0",
|
"@opentelemetry/exporter-jaeger": "^1.9.0",
|
||||||
"@opentelemetry/exporter-trace-otlp-http": "^0.35.0",
|
"@opentelemetry/exporter-trace-otlp-http": "^0.35.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user