support cartesia tts (#1008)

* support cartesia tts

* update speech util version

* update speech utils version
This commit is contained in:
Hoan Luu Huu
2024-12-19 19:35:47 +07:00
committed by GitHub
parent ba3f46df64
commit 17250f8386
5 changed files with 226 additions and 8 deletions

View File

@@ -105,6 +105,13 @@ const speechMapper = (cred) => {
obj.voice_engine = o.voice_engine;
obj.options = o.options;
}
else if ('cartesia' === obj.vendor) {
const o = JSON.parse(decrypt(credential));
obj.api_key = o.api_key;
obj.model_id = o.model_id;
obj.embedding = o.embedding;
obj.options = o.options;
}
else if ('rimelabs' === obj.vendor) {
const o = JSON.parse(decrypt(credential));
obj.api_key = o.api_key;