add support for azure custom endpoints

This commit is contained in:
Dave Horton committed 2022-09-28 00:37:50 +01:00
1 parent 67aff2e2a9
commit 613b801ba9
2 files changed
+41 -3

No files matched your search

+8
View File
@@ -67,6 +67,14 @@ const testMicrosoftTts = async(logger, credentials) => {
custom_stt_endpoint
} = credentials;
logger.info({
api_key,
region,
use_custom_tts,
custom_tts_endpoint,
use_custom_stt,
custom_stt_endpoint
}, 'testing microsoft tts');
if (!api_key) throw new Error('testMicrosoftTts: credentials are missing api_key');
if (!region) throw new Error('testMicrosoftTts: credentials are missing region');
try {