mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-19 04:17:44 +00:00
@@ -1109,6 +1109,13 @@ class CallSession extends Emitter {
|
|||||||
options: credential.options
|
options: credential.options
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
else if ('inworld' === vendor) {
|
||||||
|
return {
|
||||||
|
api_key: credential.api_key,
|
||||||
|
model_id: credential.model_id,
|
||||||
|
options: credential.options
|
||||||
|
};
|
||||||
|
}
|
||||||
else if ('assemblyai' === vendor) {
|
else if ('assemblyai' === vendor) {
|
||||||
return {
|
return {
|
||||||
speech_credential_sid: credential.speech_credential_sid,
|
speech_credential_sid: credential.speech_credential_sid,
|
||||||
|
|||||||
@@ -397,6 +397,7 @@ class TaskSay extends TtsTask {
|
|||||||
.replace('playht_', 'playht.')
|
.replace('playht_', 'playht.')
|
||||||
.replace('cartesia_', 'cartesia.')
|
.replace('cartesia_', 'cartesia.')
|
||||||
.replace('rimelabs_', 'rimelabs.')
|
.replace('rimelabs_', 'rimelabs.')
|
||||||
|
.replace('inworld_', 'inworld.')
|
||||||
.replace('verbio_', 'verbio.')
|
.replace('verbio_', 'verbio.')
|
||||||
.replace('elevenlabs_', 'elevenlabs.');
|
.replace('elevenlabs_', 'elevenlabs.');
|
||||||
if (spanMapping[newKey]) newKey = spanMapping[newKey];
|
if (spanMapping[newKey]) newKey = spanMapping[newKey];
|
||||||
@@ -461,6 +462,11 @@ const spanMapping = {
|
|||||||
'rimelabs.name_lookup_time_ms': 'name_lookup_ms',
|
'rimelabs.name_lookup_time_ms': 'name_lookup_ms',
|
||||||
'rimelabs.connect_time_ms': 'connect_ms',
|
'rimelabs.connect_time_ms': 'connect_ms',
|
||||||
'rimelabs.final_response_time_ms': 'final_response_ms',
|
'rimelabs.final_response_time_ms': 'final_response_ms',
|
||||||
|
// inworld
|
||||||
|
'inworld.name_lookup_time_ms': 'name_lookup_ms',
|
||||||
|
'inworld.connect_time_ms': 'connect_ms',
|
||||||
|
'inworld.final_response_time_ms': 'final_response_ms',
|
||||||
|
'inworld.x_envoy_upstream_service_time': 'upstream_service_time',
|
||||||
// verbio
|
// verbio
|
||||||
'verbio.name_lookup_time_ms': 'name_lookup_ms',
|
'verbio.name_lookup_time_ms': 'name_lookup_ms',
|
||||||
'verbio.connect_time_ms': 'connect_ms',
|
'verbio.connect_time_ms': 'connect_ms',
|
||||||
|
|||||||
@@ -185,6 +185,9 @@ class TtsTask extends Task {
|
|||||||
} else if (vendor === 'rimelabs') {
|
} else if (vendor === 'rimelabs') {
|
||||||
credentials = credentials || {};
|
credentials = credentials || {};
|
||||||
credentials.model_id = this.options.model_id || credentials.model_id;
|
credentials.model_id = this.options.model_id || credentials.model_id;
|
||||||
|
} else if (vendor === 'inworld') {
|
||||||
|
credentials = credentials || {};
|
||||||
|
credentials.model_id = this.options.model_id || credentials.model_id;
|
||||||
} else if (vendor === 'whisper') {
|
} else if (vendor === 'whisper') {
|
||||||
credentials = credentials || {};
|
credentials = credentials || {};
|
||||||
credentials.model_id = this.options.model_id || credentials.model_id;
|
credentials.model_id = this.options.model_id || credentials.model_id;
|
||||||
|
|||||||
@@ -120,6 +120,12 @@ const speechMapper = (cred) => {
|
|||||||
obj.model_id = o.model_id;
|
obj.model_id = o.model_id;
|
||||||
obj.options = o.options;
|
obj.options = o.options;
|
||||||
}
|
}
|
||||||
|
else if ('inworld' === obj.vendor) {
|
||||||
|
const o = JSON.parse(decrypt(credential));
|
||||||
|
obj.api_key = o.api_key;
|
||||||
|
obj.model_id = o.model_id;
|
||||||
|
obj.options = o.options;
|
||||||
|
}
|
||||||
else if ('assemblyai' === obj.vendor) {
|
else if ('assemblyai' === obj.vendor) {
|
||||||
const o = JSON.parse(decrypt(credential));
|
const o = JSON.parse(decrypt(credential));
|
||||||
obj.api_key = o.api_key;
|
obj.api_key = o.api_key;
|
||||||
|
|||||||
9
package-lock.json
generated
9
package-lock.json
generated
@@ -15,7 +15,7 @@
|
|||||||
"@jambonz/http-health-check": "^0.0.1",
|
"@jambonz/http-health-check": "^0.0.1",
|
||||||
"@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.12",
|
"@jambonz/speech-utils": "^0.2.13",
|
||||||
"@jambonz/stats-collector": "^0.1.10",
|
"@jambonz/stats-collector": "^0.1.10",
|
||||||
"@jambonz/time-series": "^0.2.13",
|
"@jambonz/time-series": "^0.2.13",
|
||||||
"@jambonz/verb-specifications": "^0.0.105",
|
"@jambonz/verb-specifications": "^0.0.105",
|
||||||
@@ -1466,9 +1466,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@jambonz/speech-utils": {
|
"node_modules/@jambonz/speech-utils": {
|
||||||
"version": "0.2.12",
|
"version": "0.2.13",
|
||||||
"resolved": "https://registry.npmjs.org/@jambonz/speech-utils/-/speech-utils-0.2.12.tgz",
|
"resolved": "https://registry.npmjs.org/@jambonz/speech-utils/-/speech-utils-0.2.13.tgz",
|
||||||
"integrity": "sha512-1xik/ZRUtPE2SOztxweGI+RTXUbiUXRShJ8G/l7VJJBkSWbfKKerYIRfHicAPumHicaUrbqSzZ6hr0eghv80KA==",
|
"integrity": "sha512-8ISTWTfz3fWtPmzPDsZG8zgnf6pTjLA1WasMAF/d/ktGswqVsbhoPcDh5ZyZ7BsEqOMLMIv2Hn0ESmrBuMn5kw==",
|
||||||
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"23": "^0.0.0",
|
"23": "^0.0.0",
|
||||||
"@aws-sdk/client-polly": "^3.496.0",
|
"@aws-sdk/client-polly": "^3.496.0",
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
"@jambonz/http-health-check": "^0.0.1",
|
"@jambonz/http-health-check": "^0.0.1",
|
||||||
"@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.12",
|
"@jambonz/speech-utils": "^0.2.13",
|
||||||
"@jambonz/stats-collector": "^0.1.10",
|
"@jambonz/stats-collector": "^0.1.10",
|
||||||
"@jambonz/time-series": "^0.2.13",
|
"@jambonz/time-series": "^0.2.13",
|
||||||
"@jambonz/verb-specifications": "^0.0.105",
|
"@jambonz/verb-specifications": "^0.0.105",
|
||||||
|
|||||||
Reference in New Issue
Block a user