mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2026-07-24 13:02:16 +00:00
remove use_streaming from speech credential (#294)
* remove use_streaming from speech credential * wip
This commit is contained in:
@@ -135,8 +135,7 @@ const encryptCredential = (obj) => {
|
||||
auth_token = '',
|
||||
cobalt_server_uri,
|
||||
model_id,
|
||||
options,
|
||||
use_streaming
|
||||
options
|
||||
} = obj;
|
||||
|
||||
switch (vendor) {
|
||||
@@ -217,7 +216,7 @@ const encryptCredential = (obj) => {
|
||||
case 'elevenlabs':
|
||||
assert(api_key, 'invalid elevenLabs speech credential: api_key is required');
|
||||
assert(model_id, 'invalid elevenLabs speech credential: model_id is required');
|
||||
const elevenlabsData = JSON.stringify({api_key, model_id, options, use_streaming});
|
||||
const elevenlabsData = JSON.stringify({api_key, model_id, options});
|
||||
return encrypt(elevenlabsData);
|
||||
|
||||
case 'assemblyai':
|
||||
@@ -420,7 +419,6 @@ router.put('/:sid', async(req, res) => {
|
||||
cobalt_server_uri,
|
||||
model_id,
|
||||
options,
|
||||
use_streaming,
|
||||
deepgram_stt_uri,
|
||||
deepgram_stt_use_tls,
|
||||
} = req.body;
|
||||
@@ -446,7 +444,6 @@ router.put('/:sid', async(req, res) => {
|
||||
cobalt_server_uri,
|
||||
model_id,
|
||||
options,
|
||||
use_streaming,
|
||||
deepgram_stt_uri,
|
||||
deepgram_stt_use_tls,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user