mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2026-02-09 02:29:59 +00:00
support assemblyai v3 (#475)
* support assemblyai v3 * update verb specification
This commit is contained in:
@@ -158,6 +158,7 @@ const encryptCredential = (obj) => {
|
||||
user_id,
|
||||
voice_engine,
|
||||
engine_version,
|
||||
service_version,
|
||||
options
|
||||
} = obj;
|
||||
|
||||
@@ -292,7 +293,7 @@ const encryptCredential = (obj) => {
|
||||
|
||||
case 'assemblyai':
|
||||
assert(api_key, 'invalid assemblyai speech credential: api_key is required');
|
||||
const assemblyaiData = JSON.stringify({api_key});
|
||||
const assemblyaiData = JSON.stringify({api_key, service_version});
|
||||
return encrypt(assemblyaiData);
|
||||
|
||||
case 'voxist':
|
||||
@@ -516,6 +517,7 @@ router.put('/:sid', async(req, res) => {
|
||||
deepgram_tts_uri,
|
||||
playht_tts_uri,
|
||||
engine_version,
|
||||
service_version,
|
||||
speechmatics_stt_uri
|
||||
} = req.body;
|
||||
|
||||
@@ -548,6 +550,7 @@ router.put('/:sid', async(req, res) => {
|
||||
deepgram_tts_uri,
|
||||
playht_tts_uri,
|
||||
engine_version,
|
||||
service_version,
|
||||
speechmatics_stt_uri
|
||||
};
|
||||
logger.info({o, newCred}, 'updating speech credential with this new credential');
|
||||
|
||||
Reference in New Issue
Block a user