support mod_playht_tts (#711)

* support mod_playht_tts

* update speech utils version
This commit is contained in:
Hoan Luu Huu
2024-04-08 21:21:54 +07:00
committed by GitHub
parent 9b722ae36d
commit 4a52be9171
4 changed files with 21 additions and 8 deletions

View File

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