From b32e9d2b522f8863d9ac57fee7ced2fd8523a435 Mon Sep 17 00:00:00 2001 From: Quan HL Date: Sat, 8 Jul 2023 15:35:26 +0700 Subject: [PATCH] fix custom speech cannot update urls --- 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 cef06390..0d1592a0 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);