From 6f857523529b540c308c2eb5dd57de117b2aa78d Mon Sep 17 00:00:00 2001 From: Hoan Luu Huu <110280845+xquanluu@users.noreply.github.com> Date: Tue, 18 Jul 2023 06:15:04 +0700 Subject: [PATCH] fix custom speech cannot update urls (#199) --- lib/routes/api/speech-credentials.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/routes/api/speech-credentials.js b/lib/routes/api/speech-credentials.js index cef0639..0d1592a 100644 --- a/lib/routes/api/speech-credentials.js +++ b/lib/routes/api/speech-credentials.js @@ -478,7 +478,9 @@ router.put('/:sid', async(req, res) => { use_custom_tts, custom_tts_endpoint, use_custom_stt, - custom_stt_endpoint + custom_stt_endpoint, + custom_stt_url, + custom_tts_url } = req.body; const newCred = { @@ -494,7 +496,9 @@ router.put('/:sid', async(req, res) => { tts_region, riva_server_uri, nuance_stt_uri, - nuance_tts_uri + nuance_tts_uri, + custom_stt_url, + custom_tts_url }; logger.info({o, newCred}, 'updating speech credential with this new credential'); obj.credential = encryptCredential(newCred);