update speech version (#485)

* update speech version

* create elevenlabs credential for synthesis

* create elevenlabs credential for synthesis
This commit is contained in:
Hoan Luu Huu
2023-10-15 01:51:19 +07:00
committed by GitHub
parent a92ea9c5da
commit 320baf4ac8
4 changed files with 19 additions and 12 deletions

View File

@@ -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,