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 authored and GitHub committed 2023-10-14 20:51:19 +02:00
1 parent a92ea9c5da
commit 320baf4ac8
4 files changed
+19 -12

No files matched your search

+5 -2
View File
@@ -84,8 +84,11 @@ const speechMapper = (cred) => {
else if ('cobalt' === obj.vendor) {
const o = JSON.parse(decrypt(credential));
obj.cobalt_server_uri = o.cobalt_server_uri;
}
else if (obj.vendor.startsWith('custom:')) {
} else if ('elevenlabs' === obj.vendor) {
const o = JSON.parse(decrypt(credential));
obj.api_key = o.api_key;
obj.model_id = o.model_id;
} else if (obj.vendor.startsWith('custom:')) {
const o = JSON.parse(decrypt(credential));
obj.auth_token = o.auth_token;
obj.custom_stt_url = o.custom_stt_url;