support deepgram tts onprem (#292)

* support deepgram tts onprem

* wip

* wip

* deepgram disable speech test if api_key is missng
This commit is contained in:
Hoan Luu Huu
2024-02-12 21:27:13 +07:00
committed by GitHub
parent 256ca440a0
commit 40e8d08727
3 changed files with 70 additions and 5 deletions
+2
View File
@@ -406,6 +406,8 @@ function decryptCredential(obj, credential, logger, isObscureKey = true) {
else if ('deepgram' === obj.vendor) {
const o = JSON.parse(decrypt(credential));
obj.api_key = isObscureKey ? obscureKey(o.api_key) : o.api_key;
obj.deepgram_stt_uri = o.deepgram_stt_uri;
obj.deepgram_stt_use_tls = o.deepgram_stt_use_tls;
}
else if ('ibm' === obj.vendor) {
const o = JSON.parse(decrypt(credential));