mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-02-14 18:30:59 +00:00
Support resemble tts (#1322)
* support resemble tts * update speech utils version
This commit is contained in:
@@ -1146,6 +1146,13 @@ class CallSession extends Emitter {
|
|||||||
options: credential.options
|
options: credential.options
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
else if ('resemble' === vendor) {
|
||||||
|
return {
|
||||||
|
api_key: credential.api_key,
|
||||||
|
resemble_tts_use_tls: credential.resemble_tts_use_tls,
|
||||||
|
resemble_tts_uri: credential.resemble_tts_uri,
|
||||||
|
};
|
||||||
|
}
|
||||||
else if ('inworld' === vendor) {
|
else if ('inworld' === vendor) {
|
||||||
return {
|
return {
|
||||||
api_key: credential.api_key,
|
api_key: credential.api_key,
|
||||||
|
|||||||
@@ -452,6 +452,7 @@ class TaskSay extends TtsTask {
|
|||||||
.replace('playht_', 'playht.')
|
.replace('playht_', 'playht.')
|
||||||
.replace('cartesia_', 'cartesia.')
|
.replace('cartesia_', 'cartesia.')
|
||||||
.replace('rimelabs_', 'rimelabs.')
|
.replace('rimelabs_', 'rimelabs.')
|
||||||
|
.replace('resemble_', 'resemble.')
|
||||||
.replace('inworld_', 'inworld.')
|
.replace('inworld_', 'inworld.')
|
||||||
.replace('verbio_', 'verbio.')
|
.replace('verbio_', 'verbio.')
|
||||||
.replace('elevenlabs_', 'elevenlabs.');
|
.replace('elevenlabs_', 'elevenlabs.');
|
||||||
@@ -517,6 +518,9 @@ 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',
|
||||||
|
// Resemble
|
||||||
|
'resemble.connect_time_ms': 'connect_ms',
|
||||||
|
'resemble.final_response_time_ms': 'final_response_ms',
|
||||||
// inworld
|
// inworld
|
||||||
'inworld.name_lookup_time_ms': 'name_lookup_ms',
|
'inworld.name_lookup_time_ms': 'name_lookup_ms',
|
||||||
'inworld.connect_time_ms': 'connect_ms',
|
'inworld.connect_time_ms': 'connect_ms',
|
||||||
|
|||||||
@@ -124,6 +124,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 ('resemble' === obj.vendor) {
|
||||||
|
const o = JSON.parse(decrypt(credential));
|
||||||
|
obj.api_key = o.api_key;
|
||||||
|
obj.resemble_tts_use_tls = o.resemble_tts_use_tls;
|
||||||
|
obj.resemble_tts_uri = o.resemble_tts_uri;
|
||||||
|
}
|
||||||
else if ('inworld' === obj.vendor) {
|
else if ('inworld' === 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.15",
|
"@jambonz/realtimedb-helpers": "^0.8.15",
|
||||||
"@jambonz/speech-utils": "^0.2.15",
|
"@jambonz/speech-utils": "^0.2.17",
|
||||||
"@jambonz/stats-collector": "^0.1.10",
|
"@jambonz/stats-collector": "^0.1.10",
|
||||||
"@jambonz/time-series": "^0.2.14",
|
"@jambonz/time-series": "^0.2.14",
|
||||||
"@jambonz/verb-specifications": "^0.0.113",
|
"@jambonz/verb-specifications": "^0.0.113",
|
||||||
@@ -1376,9 +1376,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@jambonz/speech-utils": {
|
"node_modules/@jambonz/speech-utils": {
|
||||||
"version": "0.2.15",
|
"version": "0.2.17",
|
||||||
"resolved": "https://registry.npmjs.org/@jambonz/speech-utils/-/speech-utils-0.2.15.tgz",
|
"resolved": "https://registry.npmjs.org/@jambonz/speech-utils/-/speech-utils-0.2.17.tgz",
|
||||||
"integrity": "sha512-orEpZXk0/wU9RUVbe/Ap85ec692k2EaAMfBLtaYYmsDMJ4Dt+gZ3QRlsZiuTujfla9Xl1x1So0E9nCK7cja20A==",
|
"integrity": "sha512-YcBq8bOvo5QfQJQXP4e2N0sCPqkoW0jNM4eHhspJotJc7V9DB3T5VVA6SGUsDXDZUwyT0JPI3Tx+xof02eWQ2Q==",
|
||||||
|
"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.15",
|
"@jambonz/realtimedb-helpers": "^0.8.15",
|
||||||
"@jambonz/speech-utils": "^0.2.15",
|
"@jambonz/speech-utils": "^0.2.17",
|
||||||
"@jambonz/stats-collector": "^0.1.10",
|
"@jambonz/stats-collector": "^0.1.10",
|
||||||
"@jambonz/time-series": "^0.2.14",
|
"@jambonz/time-series": "^0.2.14",
|
||||||
"@jambonz/verb-specifications": "^0.0.113",
|
"@jambonz/verb-specifications": "^0.0.113",
|
||||||
|
|||||||
Reference in New Issue
Block a user