fixes for custom voice testing in azure

This commit is contained in:
Dave Horton
2022-11-04 09:36:44 -04:00
parent 6e1761bab6
commit d88321c24d
2 changed files with 5 additions and 1 deletions

View File

@@ -551,7 +551,9 @@ class CallSession extends Emitter {
api_key: credential.api_key, api_key: credential.api_key,
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,
use_custom_tts: credential.use_custom_tts,
custom_tts_endpoint: credential.custom_tts_endpoint
}; };
} }
else if ('wellsaid' === vendor) { else if ('wellsaid' === vendor) {

View File

@@ -39,6 +39,8 @@ 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.use_custom_tts = o.use_custom_tts;
obj.custom_tts_endpoint = o.custom_tts_endpoint;
} }
else if ('wellsaid' === obj.vendor) { else if ('wellsaid' === obj.vendor) {
const o = JSON.parse(decrypt(credential)); const o = JSON.parse(decrypt(credential));