Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
xquanluu committed Nov 5, 2023
1 parent 6f11ed9 commit 27d2f6e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/routes/api/tts-cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,11 @@ router.post('/Synthesize', async(req, res) => {
DbErrorBadRequest(`There is no available speech credential for ${vendor}${label ? ` and ${label}` : ''}`);
}

let credentials = getSpeechCredential(speechCreds);
let credentials = getSpeechCredential(speechCreds, vendor, label);
if (!credentials) {
throw new
DbErrorBadRequest(`There is no available speech credential for ${vendor}${label ? ` and ${label}` : ''}`);
DbErrorBadRequest(`There is no available speech credential
for ${vendor}${label ? ` and ${label}` : ''} or tested`);
}
/* allow for microsoft custom region voice and api_key to be specified as an override */
if (vendor === 'microsoft' && options.deploymentId) {
Expand Down

0 comments on commit 27d2f6e

Please sign in to comment.