Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
xquanluu committed Oct 12, 2023
1 parent 4e47042 commit 7aa9ed7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/routes/api/speech-credentials.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ const {
testDeepgramStt,
testSonioxStt,
testIbmTts,
testIbmStt
testIbmStt,
testElevenlabs
} = require('../../utils/speech-utils');
const {promisePool} = require('../../db');

Expand Down Expand Up @@ -747,7 +748,7 @@ router.get('/:sid/test', async(req, res) => {
const {api_key, model_id} = credential;
if (cred.use_for_tts) {
try {
await testWellSaidTts(logger, {api_key, model_id});
await testElevenlabs(logger, {api_key, model_id});
results.tts.status = 'ok';
SpeechCredential.ttsTestResult(sid, true);
} catch (err) {
Expand Down

0 comments on commit 7aa9ed7

Please sign in to comment.