mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
more changes for wellsaid
This commit is contained in:
@@ -57,6 +57,7 @@ module.exports = (logger, srf) => {
|
|||||||
const haveGoogle = speech.find((s) => s.vendor === 'google');
|
const haveGoogle = speech.find((s) => s.vendor === 'google');
|
||||||
const haveAws = speech.find((s) => s.vendor === 'aws');
|
const haveAws = speech.find((s) => s.vendor === 'aws');
|
||||||
const haveMicrosoft = speech.find((s) => s.vendor === 'microsoft');
|
const haveMicrosoft = speech.find((s) => s.vendor === 'microsoft');
|
||||||
|
const haveWellsaid = speech.find((s) => s.vendor === 'wellsaid');
|
||||||
if (!haveGoogle || !haveAws || !haveMicrosoft) {
|
if (!haveGoogle || !haveAws || !haveMicrosoft) {
|
||||||
const [r3] = await pp.query(sqlSpeechCredentialsForSP, account_sid);
|
const [r3] = await pp.query(sqlSpeechCredentialsForSP, account_sid);
|
||||||
if (r3.length) {
|
if (r3.length) {
|
||||||
@@ -72,6 +73,10 @@ module.exports = (logger, srf) => {
|
|||||||
const ms = r3.find((s) => s.vendor === 'microsoft');
|
const ms = r3.find((s) => s.vendor === 'microsoft');
|
||||||
if (ms) speech.push(speechMapper(ms));
|
if (ms) speech.push(speechMapper(ms));
|
||||||
}
|
}
|
||||||
|
if (!haveWellsaid) {
|
||||||
|
const wellsaid = r3.find((s) => s.vendor === 'wellsaid');
|
||||||
|
if (wellsaid) speech.push(speechMapper(wellsaid));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user