fix speechmatic cannot update stt url

This commit is contained in:
Quan HL
2025-04-10 13:32:43 +07:00
committed by Dave Horton
parent bc51b60e9b
commit 5fb1d81869
+4 -2
View File
@@ -490,7 +490,8 @@ router.put('/:sid', async(req, res) => {
deepgram_stt_uri,
deepgram_stt_use_tls,
deepgram_tts_uri,
engine_version
engine_version,
speechmatics_stt_uri
} = req.body;
const newCred = {
@@ -519,7 +520,8 @@ router.put('/:sid', async(req, res) => {
deepgram_stt_uri,
deepgram_stt_use_tls,
deepgram_tts_uri,
engine_version
engine_version,
speechmatics_stt_uri
};
logger.info({o, newCred}, 'updating speech credential with this new credential');
obj.credential = encryptCredential(newCred);