fix speechmatic cannot update stt url (#410)

This commit is contained in:
Hoan Luu Huu
2025-04-22 20:35:02 +07:00
committed by GitHub
parent bc51b60e9b
commit 92347c26bf

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);