mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2026-10-04 02:04:18 +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:
co-authored by
vasudevan-Kore
parent
30a799030c
commit
3cad5219b4
@@ -130,6 +130,7 @@ const encryptCredential = (obj) => {
|
|||||||
deepgram_stt_uri,
|
deepgram_stt_uri,
|
||||||
deepgram_stt_use_tls,
|
deepgram_stt_use_tls,
|
||||||
deepgram_tts_uri,
|
deepgram_tts_uri,
|
||||||
|
playht_tts_uri,
|
||||||
use_custom_tts,
|
use_custom_tts,
|
||||||
custom_tts_endpoint,
|
custom_tts_endpoint,
|
||||||
custom_tts_endpoint_url,
|
custom_tts_endpoint_url,
|
||||||
@@ -252,7 +253,7 @@ const encryptCredential = (obj) => {
|
|||||||
assert(api_key, 'invalid playht speech credential: api_key is required');
|
assert(api_key, 'invalid playht speech credential: api_key is required');
|
||||||
assert(user_id, 'invalid playht speech credential: user_id 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');
|
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);
|
return encrypt(playhtData);
|
||||||
|
|
||||||
case 'cartesia':
|
case 'cartesia':
|
||||||
@@ -490,6 +491,7 @@ router.put('/:sid', async(req, res) => {
|
|||||||
deepgram_stt_uri,
|
deepgram_stt_uri,
|
||||||
deepgram_stt_use_tls,
|
deepgram_stt_use_tls,
|
||||||
deepgram_tts_uri,
|
deepgram_tts_uri,
|
||||||
|
playht_tts_uri,
|
||||||
engine_version,
|
engine_version,
|
||||||
speechmatics_stt_uri
|
speechmatics_stt_uri
|
||||||
} = req.body;
|
} = req.body;
|
||||||
@@ -520,6 +522,7 @@ router.put('/:sid', async(req, res) => {
|
|||||||
deepgram_stt_uri,
|
deepgram_stt_uri,
|
||||||
deepgram_stt_use_tls,
|
deepgram_stt_use_tls,
|
||||||
deepgram_tts_uri,
|
deepgram_tts_uri,
|
||||||
|
playht_tts_uri,
|
||||||
engine_version,
|
engine_version,
|
||||||
speechmatics_stt_uri
|
speechmatics_stt_uri
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -667,6 +667,7 @@ function decryptCredential(obj, credential, logger, isObscureKey = true) {
|
|||||||
obj.api_key = isObscureKey ? obscureKey(o.api_key) : o.api_key;
|
obj.api_key = isObscureKey ? obscureKey(o.api_key) : o.api_key;
|
||||||
obj.user_id = o.user_id;
|
obj.user_id = o.user_id;
|
||||||
obj.voice_engine = o.voice_engine;
|
obj.voice_engine = o.voice_engine;
|
||||||
|
obj.playht_tts_uri = o.playht_tts_uri;
|
||||||
obj.options = o.options;
|
obj.options = o.options;
|
||||||
} else if ('cartesia' === obj.vendor) {
|
} else if ('cartesia' === obj.vendor) {
|
||||||
const o = JSON.parse(decrypt(credential));
|
const o = JSON.parse(decrypt(credential));
|
||||||
|
|||||||
+1
-1
@@ -31,7 +31,7 @@
|
|||||||
"@jambonz/lamejs": "^1.2.2",
|
"@jambonz/lamejs": "^1.2.2",
|
||||||
"@jambonz/mw-registrar": "^0.2.7",
|
"@jambonz/mw-registrar": "^0.2.7",
|
||||||
"@jambonz/realtimedb-helpers": "^0.8.13",
|
"@jambonz/realtimedb-helpers": "^0.8.13",
|
||||||
"@jambonz/speech-utils": "^0.2.6",
|
"@jambonz/speech-utils": "^0.2.8",
|
||||||
"@jambonz/time-series": "^0.2.8",
|
"@jambonz/time-series": "^0.2.8",
|
||||||
"@jambonz/verb-specifications": "^0.0.72",
|
"@jambonz/verb-specifications": "^0.0.72",
|
||||||
"@soniox/soniox-node": "^1.2.2",
|
"@soniox/soniox-node": "^1.2.2",
|
||||||
|
|||||||
Reference in New Issue
Block a user