support inworld tts (#1262)

* support inworld tts

* wip

* wip
This commit is contained in:
Hoan Luu Huu
2025-06-27 21:05:18 +07:00
committed by GitHub
parent f18b62e165
commit ab83b21979
6 changed files with 28 additions and 5 deletions

View File

@@ -120,6 +120,12 @@ const speechMapper = (cred) => {
obj.model_id = o.model_id;
obj.options = o.options;
}
else if ('inworld' === obj.vendor) {
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;