add support for azure custom endpoints

This commit is contained in:
Dave Horton
2022-09-27 09:32:30 +01:00
parent fe7f0900ce
commit 67aff2e2a9
2 changed files with 49 additions and 5 deletions
+12 -1
View File
@@ -54,7 +54,18 @@ const testAwsStt = (logger, credentials) => {
};
const testMicrosoftTts = async(logger, credentials) => {
const {api_key, region} = credentials;
const {
api_key,
region,
// eslint-disable-next-line no-unused-vars
use_custom_tts,
// eslint-disable-next-line no-unused-vars
custom_tts_endpoint,
// eslint-disable-next-line no-unused-vars
use_custom_stt,
// eslint-disable-next-line no-unused-vars
custom_stt_endpoint
} = credentials;
if (!api_key) throw new Error('testMicrosoftTts: credentials are missing api_key');
if (!region) throw new Error('testMicrosoftTts: credentials are missing region');