mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2026-10-26 09:44:11 +00:00
soundhound speech credential support audio endpoint (#520)
* soundhound speech credential support audio endpoint * soundhound speech credential support audio endpoint * wip * wip
This commit is contained in:
1 parent
eb681f9ddf
commit
40754deb3e
4 files changed
+15
-9
No files matched your search
@@ -166,6 +166,7 @@ const encryptCredential = (obj) => {
|
||||
engine_version,
|
||||
service_version,
|
||||
api_uri,
|
||||
houndify_server_uri,
|
||||
options
|
||||
} = obj;
|
||||
|
||||
@@ -329,7 +330,7 @@ const encryptCredential = (obj) => {
|
||||
assert(client_id, 'invalid houndify speech credential: client_id is required');
|
||||
assert(client_key, 'invalid houndify speech credential: client_key is required');
|
||||
assert(user_id, 'invalid houndify speech credential: user_id is required');
|
||||
const houndifyData = JSON.stringify({client_id, client_key, user_id});
|
||||
const houndifyData = JSON.stringify({client_id, client_key, user_id, houndify_server_uri});
|
||||
return encrypt(houndifyData);
|
||||
|
||||
case 'voxist':
|
||||
@@ -557,7 +558,8 @@ router.put('/:sid', async(req, res) => {
|
||||
speechmatics_stt_uri,
|
||||
resemble_tts_use_tls,
|
||||
resemble_tts_uri,
|
||||
api_uri
|
||||
api_uri,
|
||||
houndify_server_uri
|
||||
} = req.body;
|
||||
|
||||
const newCred = {
|
||||
@@ -593,7 +595,8 @@ router.put('/:sid', async(req, res) => {
|
||||
speechmatics_stt_uri,
|
||||
resemble_tts_uri,
|
||||
resemble_tts_use_tls,
|
||||
api_uri
|
||||
api_uri,
|
||||
houndify_server_uri
|
||||
};
|
||||
logger.info({o, newCred}, 'updating speech credential with this new credential');
|
||||
obj.credential = encryptCredential(newCred);
|
||||
|
||||
Reference in new issue
Block a user