@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 +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -2
- package/dist/index.d.ts +11 -2
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1404,6 +1404,14 @@ interface StreamOptions {
|
|
|
1404
1404
|
* engine's default when unset). Tee only; the server refuses anything else.
|
|
1405
1405
|
*/
|
|
1406
1406
|
sampleRate?: number;
|
|
1407
|
+
/**
|
|
1408
|
+
* Bridge only: the name of a media profile on the server whose bridge
|
|
1409
|
+
* settings (wire rate, noise suppression, echo cancellation, VAD, barge-in)
|
|
1410
|
+
* the bridge runs with, as an `answer` with `wsUri` would. Unset, the bridge
|
|
1411
|
+
* runs at the leg's own rate with uplink processing off. Refused on a tee,
|
|
1412
|
+
* and an unknown name rejects with `bad_request`.
|
|
1413
|
+
*/
|
|
1414
|
+
profile?: string;
|
|
1407
1415
|
}
|
|
1408
1416
|
/** Options for {@link Call.streamStop}. */
|
|
1409
1417
|
interface StreamStopOptions {
|
|
@@ -1759,8 +1767,9 @@ declare class Call {
|
|
|
1759
1767
|
* direction: "caller",
|
|
1760
1768
|
* sampleRate: 16000,
|
|
1761
1769
|
* });
|
|
1762
|
-
* // Hand the leg to a voice agent; the agent is now the far side
|
|
1763
|
-
*
|
|
1770
|
+
* // Hand the leg to a voice agent; the agent is now the far side, with the
|
|
1771
|
+
* // server's `voice_ai` profile's rate, echo cancellation and barge-in.
|
|
1772
|
+
* await call.streamStart("wss://ai.example/agent", { mode: "bridge", profile: "voice_ai" });
|
|
1764
1773
|
* ```
|
|
1765
1774
|
*
|
|
1766
1775
|
* A bridge on a leg that already has one re-points it in place. `wsUri` may
|
package/dist/index.d.ts
CHANGED
|
@@ -1404,6 +1404,14 @@ interface StreamOptions {
|
|
|
1404
1404
|
* engine's default when unset). Tee only; the server refuses anything else.
|
|
1405
1405
|
*/
|
|
1406
1406
|
sampleRate?: number;
|
|
1407
|
+
/**
|
|
1408
|
+
* Bridge only: the name of a media profile on the server whose bridge
|
|
1409
|
+
* settings (wire rate, noise suppression, echo cancellation, VAD, barge-in)
|
|
1410
|
+
* the bridge runs with, as an `answer` with `wsUri` would. Unset, the bridge
|
|
1411
|
+
* runs at the leg's own rate with uplink processing off. Refused on a tee,
|
|
1412
|
+
* and an unknown name rejects with `bad_request`.
|
|
1413
|
+
*/
|
|
1414
|
+
profile?: string;
|
|
1407
1415
|
}
|
|
1408
1416
|
/** Options for {@link Call.streamStop}. */
|
|
1409
1417
|
interface StreamStopOptions {
|
|
@@ -1759,8 +1767,9 @@ declare class Call {
|
|
|
1759
1767
|
* direction: "caller",
|
|
1760
1768
|
* sampleRate: 16000,
|
|
1761
1769
|
* });
|
|
1762
|
-
* // Hand the leg to a voice agent; the agent is now the far side
|
|
1763
|
-
*
|
|
1770
|
+
* // Hand the leg to a voice agent; the agent is now the far side, with the
|
|
1771
|
+
* // server's `voice_ai` profile's rate, echo cancellation and barge-in.
|
|
1772
|
+
* await call.streamStart("wss://ai.example/agent", { mode: "bridge", profile: "voice_ai" });
|
|
1764
1773
|
* ```
|
|
1765
1774
|
*
|
|
1766
1775
|
* A bridge on a leg that already has one re-points it in place. `wsUri` may
|
package/dist/index.js
CHANGED
|
@@ -1312,8 +1312,9 @@ var Call = class {
|
|
|
1312
1312
|
* direction: "caller",
|
|
1313
1313
|
* sampleRate: 16000,
|
|
1314
1314
|
* });
|
|
1315
|
-
* // Hand the leg to a voice agent; the agent is now the far side
|
|
1316
|
-
*
|
|
1315
|
+
* // Hand the leg to a voice agent; the agent is now the far side, with the
|
|
1316
|
+
* // server's `voice_ai` profile's rate, echo cancellation and barge-in.
|
|
1317
|
+
* await call.streamStart("wss://ai.example/agent", { mode: "bridge", profile: "voice_ai" });
|
|
1317
1318
|
* ```
|
|
1318
1319
|
*
|
|
1319
1320
|
* A bridge on a leg that already has one re-points it in place. `wsUri` may
|
|
@@ -1337,6 +1338,9 @@ var Call = class {
|
|
|
1337
1338
|
if (options?.sampleRate !== void 0) {
|
|
1338
1339
|
args.sample_rate = options.sampleRate;
|
|
1339
1340
|
}
|
|
1341
|
+
if (options?.profile !== void 0) {
|
|
1342
|
+
args.profile = options.profile;
|
|
1343
|
+
}
|
|
1340
1344
|
await this.sip(SipVerb.StreamStart, args);
|
|
1341
1345
|
}
|
|
1342
1346
|
/**
|