mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
update speech version (#485)
* update speech version * create elevenlabs credential for synthesis * create elevenlabs credential for synthesis
This commit is contained in:
@@ -830,8 +830,12 @@ class CallSession extends Emitter {
|
|||||||
speech_credential_sid: credential.speech_credential_sid,
|
speech_credential_sid: credential.speech_credential_sid,
|
||||||
cobalt_server_uri: credential.cobalt_server_uri
|
cobalt_server_uri: credential.cobalt_server_uri
|
||||||
};
|
};
|
||||||
}
|
} else if ('elevenlabs' === vendor) {
|
||||||
else if (vendor.startsWith('custom:')) {
|
return {
|
||||||
|
api_key: credential.api_key,
|
||||||
|
model_id: credential.model_id
|
||||||
|
};
|
||||||
|
} else if (vendor.startsWith('custom:')) {
|
||||||
return {
|
return {
|
||||||
speech_credential_sid: credential.speech_credential_sid,
|
speech_credential_sid: credential.speech_credential_sid,
|
||||||
auth_token: credential.auth_token,
|
auth_token: credential.auth_token,
|
||||||
|
|||||||
@@ -84,8 +84,11 @@ const speechMapper = (cred) => {
|
|||||||
else if ('cobalt' === obj.vendor) {
|
else if ('cobalt' === obj.vendor) {
|
||||||
const o = JSON.parse(decrypt(credential));
|
const o = JSON.parse(decrypt(credential));
|
||||||
obj.cobalt_server_uri = o.cobalt_server_uri;
|
obj.cobalt_server_uri = o.cobalt_server_uri;
|
||||||
}
|
} else if ('elevenlabs' === obj.vendor) {
|
||||||
else if (obj.vendor.startsWith('custom:')) {
|
const o = JSON.parse(decrypt(credential));
|
||||||
|
obj.api_key = o.api_key;
|
||||||
|
obj.model_id = o.model_id;
|
||||||
|
} else if (obj.vendor.startsWith('custom:')) {
|
||||||
const o = JSON.parse(decrypt(credential));
|
const o = JSON.parse(decrypt(credential));
|
||||||
obj.auth_token = o.auth_token;
|
obj.auth_token = o.auth_token;
|
||||||
obj.custom_stt_url = o.custom_stt_url;
|
obj.custom_stt_url = o.custom_stt_url;
|
||||||
|
|||||||
14
package-lock.json
generated
14
package-lock.json
generated
@@ -14,7 +14,7 @@
|
|||||||
"@jambonz/db-helpers": "^0.9.1",
|
"@jambonz/db-helpers": "^0.9.1",
|
||||||
"@jambonz/http-health-check": "^0.0.1",
|
"@jambonz/http-health-check": "^0.0.1",
|
||||||
"@jambonz/realtimedb-helpers": "^0.8.6",
|
"@jambonz/realtimedb-helpers": "^0.8.6",
|
||||||
"@jambonz/speech-utils": "^0.0.21",
|
"@jambonz/speech-utils": "^0.0.22",
|
||||||
"@jambonz/stats-collector": "^0.1.9",
|
"@jambonz/stats-collector": "^0.1.9",
|
||||||
"@jambonz/time-series": "^0.2.8",
|
"@jambonz/time-series": "^0.2.8",
|
||||||
"@jambonz/verb-specifications": "^0.0.37",
|
"@jambonz/verb-specifications": "^0.0.37",
|
||||||
@@ -2983,9 +2983,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@jambonz/speech-utils": {
|
"node_modules/@jambonz/speech-utils": {
|
||||||
"version": "0.0.21",
|
"version": "0.0.22",
|
||||||
"resolved": "https://registry.npmjs.org/@jambonz/speech-utils/-/speech-utils-0.0.21.tgz",
|
"resolved": "https://registry.npmjs.org/@jambonz/speech-utils/-/speech-utils-0.0.22.tgz",
|
||||||
"integrity": "sha512-I9ULe9PHMIISZ5gr58SZ+9I5hL1F24XjFPqPlulfaoe6vJ4EgSKs1l1fWKPCuZQmv6Cf259gK5H+bjGTqjVRQw==",
|
"integrity": "sha512-+gFWDTNUbf3RwG9a7PInJom0YKiGgW8i2m6WFRjJuSk1StiY4BKWr+sE6JL9SBHz9UrjyLb8P2tfJKwoo/JKSA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@aws-sdk/client-polly": "^3.359.0",
|
"@aws-sdk/client-polly": "^3.359.0",
|
||||||
"@google-cloud/text-to-speech": "^4.2.1",
|
"@google-cloud/text-to-speech": "^4.2.1",
|
||||||
@@ -12949,9 +12949,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@jambonz/speech-utils": {
|
"@jambonz/speech-utils": {
|
||||||
"version": "0.0.21",
|
"version": "0.0.22",
|
||||||
"resolved": "https://registry.npmjs.org/@jambonz/speech-utils/-/speech-utils-0.0.21.tgz",
|
"resolved": "https://registry.npmjs.org/@jambonz/speech-utils/-/speech-utils-0.0.22.tgz",
|
||||||
"integrity": "sha512-I9ULe9PHMIISZ5gr58SZ+9I5hL1F24XjFPqPlulfaoe6vJ4EgSKs1l1fWKPCuZQmv6Cf259gK5H+bjGTqjVRQw==",
|
"integrity": "sha512-+gFWDTNUbf3RwG9a7PInJom0YKiGgW8i2m6WFRjJuSk1StiY4BKWr+sE6JL9SBHz9UrjyLb8P2tfJKwoo/JKSA==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@aws-sdk/client-polly": "^3.359.0",
|
"@aws-sdk/client-polly": "^3.359.0",
|
||||||
"@google-cloud/text-to-speech": "^4.2.1",
|
"@google-cloud/text-to-speech": "^4.2.1",
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
"@jambonz/db-helpers": "^0.9.1",
|
"@jambonz/db-helpers": "^0.9.1",
|
||||||
"@jambonz/http-health-check": "^0.0.1",
|
"@jambonz/http-health-check": "^0.0.1",
|
||||||
"@jambonz/realtimedb-helpers": "^0.8.6",
|
"@jambonz/realtimedb-helpers": "^0.8.6",
|
||||||
"@jambonz/speech-utils": "^0.0.21",
|
"@jambonz/speech-utils": "^0.0.22",
|
||||||
"@jambonz/stats-collector": "^0.1.9",
|
"@jambonz/stats-collector": "^0.1.9",
|
||||||
"@jambonz/time-series": "^0.2.8",
|
"@jambonz/time-series": "^0.2.8",
|
||||||
"@jambonz/verb-specifications": "^0.0.37",
|
"@jambonz/verb-specifications": "^0.0.37",
|
||||||
|
|||||||
Reference in New Issue
Block a user