add support for azure custom endpoints

This commit is contained in:
Dave Horton
2022-09-27 09:32:30 +01:00
parent 67aff2e2a9
commit 613b801ba9
2 changed files with 41 additions and 3 deletions
+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 {