mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +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_INITIAL_SPEECH_TIMEOUT_MS',
|
||||
'AZURE_USE_OUTPUT_FORMAT_DETAILED',
|
||||
'AZURE_SPEECH_SEGMENTATION_SILENCE_TIMEOUT_MS'
|
||||
],
|
||||
deepgram: [
|
||||
'DEEPGRAM_SPEECH_KEYWORDS',
|
||||
@@ -418,6 +419,7 @@ module.exports = (logger) => {
|
||||
};
|
||||
}
|
||||
else if ('microsoft' === vendor) {
|
||||
const {azureOptions = {}} = rOpts;
|
||||
opts = {
|
||||
...opts,
|
||||
...(rOpts.hints?.length > 0 && typeof rOpts.hints[0] === 'string' &&
|
||||
@@ -436,6 +438,8 @@ module.exports = (logger) => {
|
||||
...(rOpts.requestSnr && {AZURE_REQUEST_SNR: 1}),
|
||||
...(rOpts.audioLogging && {AZURE_AUDIO_LOGGING: 1}),
|
||||
...{AZURE_USE_OUTPUT_FORMAT_DETAILED: 1},
|
||||
...(azureOptions.speechSegmentationSilenceTimeoutMs &&
|
||||
{AZURE_SPEECH_SEGMENTATION_SILENCE_TIMEOUT_MS: azureOptions.speechSegmentationSilenceTimeoutMs}),
|
||||
...(sttCredentials && {
|
||||
...(sttCredentials.api_key && {AZURE_SUBSCRIPTION_KEY: sttCredentials.api_key}),
|
||||
...(sttCredentials.region && {AZURE_REGION: sttCredentials.region}),
|
||||
|
||||
Reference in New Issue
Block a user