mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
@@ -769,8 +769,10 @@ ${credential.label ? `, label: ${credential.label}` : ''} is chosen`);
|
|||||||
region: credential.region,
|
region: credential.region,
|
||||||
use_custom_stt: credential.use_custom_stt,
|
use_custom_stt: credential.use_custom_stt,
|
||||||
custom_stt_endpoint: credential.custom_stt_endpoint,
|
custom_stt_endpoint: credential.custom_stt_endpoint,
|
||||||
|
custom_stt_endpoint_url: credential.custom_stt_endpoint_url,
|
||||||
use_custom_tts: credential.use_custom_tts,
|
use_custom_tts: credential.use_custom_tts,
|
||||||
custom_tts_endpoint: credential.custom_tts_endpoint
|
custom_tts_endpoint: credential.custom_tts_endpoint,
|
||||||
|
custom_tts_endpoint_url: credential.custom_tts_endpoint_url
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
else if ('wellsaid' === vendor) {
|
else if ('wellsaid' === vendor) {
|
||||||
|
|||||||
@@ -46,8 +46,10 @@ const speechMapper = (cred) => {
|
|||||||
obj.region = o.region;
|
obj.region = o.region;
|
||||||
obj.use_custom_stt = o.use_custom_stt;
|
obj.use_custom_stt = o.use_custom_stt;
|
||||||
obj.custom_stt_endpoint = o.custom_stt_endpoint;
|
obj.custom_stt_endpoint = o.custom_stt_endpoint;
|
||||||
|
obj.custom_stt_endpoint_url = o.custom_stt_endpoint_url;
|
||||||
obj.use_custom_tts = o.use_custom_tts;
|
obj.use_custom_tts = o.use_custom_tts;
|
||||||
obj.custom_tts_endpoint = o.custom_tts_endpoint;
|
obj.custom_tts_endpoint = o.custom_tts_endpoint;
|
||||||
|
obj.custom_tts_endpoint_url = o.custom_tts_endpoint_url;
|
||||||
}
|
}
|
||||||
else if ('wellsaid' === obj.vendor) {
|
else if ('wellsaid' === obj.vendor) {
|
||||||
const o = JSON.parse(decrypt(credential));
|
const o = JSON.parse(decrypt(credential));
|
||||||
|
|||||||
@@ -399,6 +399,8 @@ module.exports = (logger) => {
|
|||||||
{AZURE_SPEECH_ALTERNATIVE_LANGUAGE_CODES: [...new Set(rOpts.altLanguages)].join(',')}),
|
{AZURE_SPEECH_ALTERNATIVE_LANGUAGE_CODES: [...new Set(rOpts.altLanguages)].join(',')}),
|
||||||
...(rOpts.requestSnr && {AZURE_REQUEST_SNR: 1}),
|
...(rOpts.requestSnr && {AZURE_REQUEST_SNR: 1}),
|
||||||
...(rOpts.profanityOption && {AZURE_PROFANITY_OPTION: rOpts.profanityOption}),
|
...(rOpts.profanityOption && {AZURE_PROFANITY_OPTION: rOpts.profanityOption}),
|
||||||
|
...(sttCredentials.use_custom_stt && sttCredentials.custom_stt_endpoint_url &&
|
||||||
|
{AZURE_SERVICE_ENDPOINT: sttCredentials.custom_stt_endpoint_url}),
|
||||||
...(rOpts.azureServiceEndpoint && {AZURE_SERVICE_ENDPOINT: rOpts.azureServiceEndpoint}),
|
...(rOpts.azureServiceEndpoint && {AZURE_SERVICE_ENDPOINT: rOpts.azureServiceEndpoint}),
|
||||||
...(rOpts.initialSpeechTimeoutMs > 0 &&
|
...(rOpts.initialSpeechTimeoutMs > 0 &&
|
||||||
{AZURE_INITIAL_SPEECH_TIMEOUT_MS: rOpts.initialSpeechTimeoutMs}),
|
{AZURE_INITIAL_SPEECH_TIMEOUT_MS: rOpts.initialSpeechTimeoutMs}),
|
||||||
@@ -406,11 +408,11 @@ module.exports = (logger) => {
|
|||||||
...(rOpts.audioLogging && {AZURE_AUDIO_LOGGING: 1}),
|
...(rOpts.audioLogging && {AZURE_AUDIO_LOGGING: 1}),
|
||||||
...{AZURE_USE_OUTPUT_FORMAT_DETAILED: 1},
|
...{AZURE_USE_OUTPUT_FORMAT_DETAILED: 1},
|
||||||
...(sttCredentials && {
|
...(sttCredentials && {
|
||||||
AZURE_SUBSCRIPTION_KEY: sttCredentials.api_key,
|
...(sttCredentials.api_key && {AZURE_SUBSCRIPTION_KEY: sttCredentials.api_key}),
|
||||||
AZURE_REGION: sttCredentials.region,
|
...(sttCredentials.region && {AZURE_REGION: sttCredentials.region}),
|
||||||
}),
|
}),
|
||||||
...(sttCredentials.use_custom_stt && sttCredentials.custom_stt_endpoint &&
|
...(sttCredentials.use_custom_stt && sttCredentials.custom_stt_endpoint &&
|
||||||
{AZURE_SERVICE_ENDPOINT_ID: sttCredentials.custom_stt_endpoint})
|
{AZURE_SERVICE_ENDPOINT_ID: sttCredentials.custom_stt_endpoint}),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
else if ('nuance' === vendor) {
|
else if ('nuance' === vendor) {
|
||||||
|
|||||||
Reference in New Issue
Block a user