Fix/11labs no client config (#1149)

* update to verb specs

* add parameter to api call when there is not client config provided
This commit is contained in:
Dave Horton
2025-04-12 10:36:35 -04:00
committed by GitHub
parent d310ba0ed1
commit 305facb03b
3 changed files with 8 additions and 6 deletions

View File

@@ -164,7 +164,9 @@ class TaskLlmElevenlabs_S2S extends Task {
try {
const {host, path} = await this.getSignedUrl();
const args = [ep.uuid, 'session.create', this.input_sample_rate, this.output_sample_rate, host, path];
const args = this.conversation_initiation_client_data ?
[ep.uuid, 'session.create', this.input_sample_rate, this.output_sample_rate, host, path] :
[ep.uuid, 'session.create', this.input_sample_rate, this.output_sample_rate, host, path, 'no_initial_config'];
await this._api(ep, args);
} catch (err) {
this.logger.error({err}, 'TaskLlmElevenlabs_S2S:_startListening');

8
package-lock.json generated
View File

@@ -18,7 +18,7 @@
"@jambonz/speech-utils": "^0.2.3",
"@jambonz/stats-collector": "^0.1.10",
"@jambonz/time-series": "^0.2.13",
"@jambonz/verb-specifications": "^0.0.101",
"@jambonz/verb-specifications": "^0.0.102",
"@opentelemetry/api": "^1.8.0",
"@opentelemetry/exporter-jaeger": "^1.23.0",
"@opentelemetry/exporter-trace-otlp-http": "^0.50.0",
@@ -1512,9 +1512,9 @@
}
},
"node_modules/@jambonz/verb-specifications": {
"version": "0.0.101",
"resolved": "https://registry.npmjs.org/@jambonz/verb-specifications/-/verb-specifications-0.0.101.tgz",
"integrity": "sha512-tgVyttFTaiEOCUhQU15m7jaw+IUTvEV2P6g4argARaNuva5DH01Dzi2FJyqlCmGzsTmuVUjOmh13PfC/cIpEsA==",
"version": "0.0.102",
"resolved": "https://registry.npmjs.org/@jambonz/verb-specifications/-/verb-specifications-0.0.102.tgz",
"integrity": "sha512-hpxzrzmSv3uRjjI503lFsDddVhfI5oFHWfGaym2RCUuKhv+hX5UKjW1joU1MRXyG2ZX4Oh5BRMAcjEI9lTxoLA==",
"dependencies": {
"debug": "^4.3.4",
"pino": "^8.8.0"

View File

@@ -34,7 +34,7 @@
"@jambonz/speech-utils": "^0.2.3",
"@jambonz/stats-collector": "^0.1.10",
"@jambonz/time-series": "^0.2.13",
"@jambonz/verb-specifications": "^0.0.101",
"@jambonz/verb-specifications": "^0.0.102",
"@opentelemetry/api": "^1.8.0",
"@opentelemetry/exporter-jaeger": "^1.23.0",
"@opentelemetry/exporter-trace-otlp-http": "^0.50.0",