From e4bb4f80b8360fb333ed8a8117c35b0f431433e1 Mon Sep 17 00:00:00 2001 From: Quan HL Date: Sat, 14 Oct 2023 20:26:11 +0700 Subject: [PATCH] create elevenlabs credential for synthesis --- lib/session/call-session.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/session/call-session.js b/lib/session/call-session.js index fb6d99807..c4ad54a90 100644 --- a/lib/session/call-session.js +++ b/lib/session/call-session.js @@ -830,8 +830,12 @@ class CallSession extends Emitter { speech_credential_sid: credential.speech_credential_sid, cobalt_server_uri: credential.cobalt_server_uri }; - } - else if (vendor.startsWith('custom:')) { + } else if ('elevenlabs' === vendor) { + return { + api_key: credential.api_key, + model_id: credential.model_id + }; + } else if (vendor.startsWith('custom:')) { return { speech_credential_sid: credential.speech_credential_sid, auth_token: credential.auth_token,