support elevenlabs options (#553)

* support elevenlabs options

* elevenlabs options from synthezier

* wip

* fix
This commit is contained in:
Hoan Luu Huu
2023-11-30 21:28:12 +07:00
committed by GitHub
parent eb2d90ffaa
commit 0a0cbd57ba
5 changed files with 2250 additions and 23 deletions

View File

@@ -833,7 +833,8 @@ class CallSession extends Emitter {
} else if ('elevenlabs' === vendor) {
return {
api_key: credential.api_key,
model_id: credential.model_id
model_id: credential.model_id,
options: credential.options
};
} else if ('assemblyai' === vendor) {
return {

View File

@@ -127,6 +127,7 @@ class TaskSay extends Task {
model,
salt,
credentials,
options: this.options,
disableTtsCache : this.disableTtsCache
});
this.logger.debug(`file ${filePath}, served from cache ${servedFromCache}`);

View File

@@ -91,6 +91,7 @@ const speechMapper = (cred) => {
const o = JSON.parse(decrypt(credential));
obj.api_key = o.api_key;
obj.model_id = o.model_id;
obj.options = o.options;
} else if ('assemblyai' === obj.vendor) {
const o = JSON.parse(decrypt(credential));
obj.api_key = o.api_key;