@siphon-project/control 0.11.0 → 0.12.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 +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -2
- package/dist/index.d.ts +17 -2
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -952,6 +952,8 @@ function recordStartArgs(options) {
|
|
|
952
952
|
if (options.maxDurationMs !== void 0) args.max_duration_ms = options.maxDurationMs;
|
|
953
953
|
if (options.silenceMs !== void 0) args.silence_ms = options.silenceMs;
|
|
954
954
|
if (options.path !== void 0) args.path = options.path;
|
|
955
|
+
if (options.format !== void 0) args.format = options.format;
|
|
956
|
+
if (options.bitrateBps !== void 0) args.bitrate_bps = options.bitrateBps;
|
|
955
957
|
return args;
|
|
956
958
|
}
|
|
957
959
|
function recordStopArgs(recordingId) {
|
|
@@ -1620,7 +1622,8 @@ var Call = class {
|
|
|
1620
1622
|
await this.sip(SipVerb.StreamStop, { mode: options?.mode ?? "tee" });
|
|
1621
1623
|
}
|
|
1622
1624
|
/**
|
|
1623
|
-
* Record this call's decoded audio to a wav
|
|
1625
|
+
* Record this call's decoded audio to a file: wav by default, or Ogg Opus
|
|
1626
|
+
* with `format: "ogg_opus"`.
|
|
1624
1627
|
*
|
|
1625
1628
|
* The reply names the `recordingId` a later {@link Call.recordStop}
|
|
1626
1629
|
* addresses. It is **not** the file: `RecordingFinished` fires when the file
|