From d88321c24d7f79a6802cac80574032b0e6fcd88e Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Fri, 4 Nov 2022 09:36:44 -0400 Subject: [PATCH] fixes for custom voice testing in azure --- lib/session/call-session.js | 4 +++- lib/utils/db-utils.js | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/session/call-session.js b/lib/session/call-session.js index 85933519..01d39ce7 100644 --- a/lib/session/call-session.js +++ b/lib/session/call-session.js @@ -551,7 +551,9 @@ class CallSession extends Emitter { api_key: credential.api_key, region: credential.region, 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) { diff --git a/lib/utils/db-utils.js b/lib/utils/db-utils.js index ba9ef20d..cde3d704 100644 --- a/lib/utils/db-utils.js +++ b/lib/utils/db-utils.js @@ -39,6 +39,8 @@ const speechMapper = (cred) => { obj.region = o.region; obj.use_custom_stt = o.use_custom_stt; 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) { const o = JSON.parse(decrypt(credential));