@siphon-project/control 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1318,8 +1318,9 @@ var Call = class {
1318
1318
  * direction: "caller",
1319
1319
  * sampleRate: 16000,
1320
1320
  * });
1321
- * // Hand the leg to a voice agent; the agent is now the far side.
1322
- * await call.streamStart("wss://ai.example/agent", { mode: "bridge" });
1321
+ * // Hand the leg to a voice agent; the agent is now the far side, with the
1322
+ * // server's `voice_ai` profile's rate, echo cancellation and barge-in.
1323
+ * await call.streamStart("wss://ai.example/agent", { mode: "bridge", profile: "voice_ai" });
1323
1324
  * ```
1324
1325
  *
1325
1326
  * A bridge on a leg that already has one re-points it in place. `wsUri` may
@@ -1343,6 +1344,9 @@ var Call = class {
1343
1344
  if (options?.sampleRate !== void 0) {
1344
1345
  args.sample_rate = options.sampleRate;
1345
1346
  }
1347
+ if (options?.profile !== void 0) {
1348
+ args.profile = options.profile;
1349
+ }
1346
1350
  await this.sip(SipVerb.StreamStart, args);
1347
1351
  }
1348
1352
  /**