Skip to content

Commit

Permalink
create elevenlabs credential for synthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
xquanluu committed Oct 14, 2023
1 parent 63e7bef commit e4bb4f8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/session/call-session.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e4bb4f8

Please sign in to comment.