mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2026-10-30 19:34:14 +00:00
feat/864 playht on prem (#432)
* feat/864 playht on prem * feat/864 update speech utils version --------- Co-authored-by: vasudevan-Kore <vasudev.anubrolu@kore.com>
This commit is contained in:
1 parent
30a799030c
commit
3cad5219b4
3 files changed
+6
-2
No files matched your search
@@ -130,6 +130,7 @@ const encryptCredential = (obj) => {
|
||||
deepgram_stt_uri,
|
||||
deepgram_stt_use_tls,
|
||||
deepgram_tts_uri,
|
||||
playht_tts_uri,
|
||||
use_custom_tts,
|
||||
custom_tts_endpoint,
|
||||
custom_tts_endpoint_url,
|
||||
@@ -252,7 +253,7 @@ const encryptCredential = (obj) => {
|
||||
assert(api_key, 'invalid playht speech credential: api_key is required');
|
||||
assert(user_id, 'invalid playht speech credential: user_id is required');
|
||||
assert(voice_engine, 'invalid voice_engine speech credential: voice_engine is required');
|
||||
const playhtData = JSON.stringify({api_key, user_id, voice_engine, options});
|
||||
const playhtData = JSON.stringify({api_key, user_id, voice_engine, playht_tts_uri, options});
|
||||
return encrypt(playhtData);
|
||||
|
||||
case 'cartesia':
|
||||
@@ -490,6 +491,7 @@ router.put('/:sid', async(req, res) => {
|
||||
deepgram_stt_uri,
|
||||
deepgram_stt_use_tls,
|
||||
deepgram_tts_uri,
|
||||
playht_tts_uri,
|
||||
engine_version,
|
||||
speechmatics_stt_uri
|
||||
} = req.body;
|
||||
@@ -520,6 +522,7 @@ router.put('/:sid', async(req, res) => {
|
||||
deepgram_stt_uri,
|
||||
deepgram_stt_use_tls,
|
||||
deepgram_tts_uri,
|
||||
playht_tts_uri,
|
||||
engine_version,
|
||||
speechmatics_stt_uri
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user