mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
bugfix: nuance on-prem stt
This commit is contained in:
@@ -417,12 +417,9 @@ module.exports = (logger) => {
|
|||||||
const {nuanceOptions = {}} = rOpts;
|
const {nuanceOptions = {}} = rOpts;
|
||||||
opts = {
|
opts = {
|
||||||
...opts,
|
...opts,
|
||||||
...(sttCredentials.access_token) &&
|
...(sttCredentials.access_token) && {NUANCE_ACCESS_TOKEN: sttCredentials.access_token},
|
||||||
{NUANCE_ACCESS_TOKEN: sttCredentials.access_token},
|
...(sttCredentials.nuance_stt_uri) && {NUANCE_KRYPTON_ENDPOINT: sttCredentials.nuance_stt_uri},
|
||||||
...(sttCredentials.krypton_endpoint) &&
|
...(nuanceOptions.topic) && {NUANCE_TOPIC: nuanceOptions.topic},
|
||||||
{NUANCE_KRYPTON_ENDPOINT: sttCredentials.krypton_endpoint},
|
|
||||||
...(nuanceOptions.topic) &&
|
|
||||||
{NUANCE_TOPIC: nuanceOptions.topic},
|
|
||||||
...(nuanceOptions.utteranceDetectionMode) &&
|
...(nuanceOptions.utteranceDetectionMode) &&
|
||||||
{NUANCE_UTTERANCE_DETECTION_MODE: nuanceOptions.utteranceDetectionMode},
|
{NUANCE_UTTERANCE_DETECTION_MODE: nuanceOptions.utteranceDetectionMode},
|
||||||
...(nuanceOptions.punctuation || rOpts.punctuation) && {NUANCE_PUNCTUATION: nuanceOptions.punctuation},
|
...(nuanceOptions.punctuation || rOpts.punctuation) && {NUANCE_PUNCTUATION: nuanceOptions.punctuation},
|
||||||
@@ -646,7 +643,7 @@ module.exports = (logger) => {
|
|||||||
if (recognizer.vendor === 'nuance') {
|
if (recognizer.vendor === 'nuance') {
|
||||||
const {clientId, secret, kryptonEndpoint} = recognizer.nuanceOptions || {};
|
const {clientId, secret, kryptonEndpoint} = recognizer.nuanceOptions || {};
|
||||||
if (clientId && secret) return {client_id: clientId, secret};
|
if (clientId && secret) return {client_id: clientId, secret};
|
||||||
if (kryptonEndpoint) return {krypton_endpoint: kryptonEndpoint};
|
if (kryptonEndpoint) return {nuance_stt_uri: kryptonEndpoint};
|
||||||
}
|
}
|
||||||
else if (recognizer.vendor === 'nvidia') {
|
else if (recognizer.vendor === 'nvidia') {
|
||||||
const {rivaUri} = recognizer.nvidiaOptions || {};
|
const {rivaUri} = recognizer.nvidiaOptions || {};
|
||||||
|
|||||||
Reference in New Issue
Block a user