diff --git a/lib/routes/api/speech-credentials.js b/lib/routes/api/speech-credentials.js index 70f08c24..4d0337cb 100644 --- a/lib/routes/api/speech-credentials.js +++ b/lib/routes/api/speech-credentials.js @@ -19,7 +19,8 @@ const { testDeepgramStt, testSonioxStt, testIbmTts, - testIbmStt + testIbmStt, + testElevenlabs } = require('../../utils/speech-utils'); const {promisePool} = require('../../db'); @@ -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) {