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 authored and GitHub committed 2024-02-12 09:27:13 -05:00
1 parent 256ca440a0
commit 40e8d08727
3 files changed
+70 -5

No files matched your search

+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));