fix Speech credential test for azure (#322)

This commit is contained in:
Hoan Luu Huu authored and GitHub committed 2024-05-14 06:56:06 -04:00
1 parent c0fab2880b
commit 82c16380f5
2 files changed
+8 -6

No files matched your search

+1 -1
View File
@@ -613,7 +613,7 @@ router.get('/:sid/test', async(req, res) => {
}
if (cred.use_for_stt) {
try {
await testMicrosoftStt(logger, {api_key, region});
await testMicrosoftStt(logger, {api_key, region, use_custom_stt, custom_stt_endpoint_url});
results.stt.status = 'ok';
SpeechCredential.sttTestResult(sid, true);
} catch (err) {