Skip to content

CoworkCaptureSession

A recording in progress (cowork.capture.record).

file: string;

Workspace-relative path the recording lands at.


id: string;

onAudio: (cb) => () => void;

Live audio (live: true): 16 kHz mono Int16 frames of 20 ms. Returns the unsubscribe.

Parameter Type
cb (frame) => void

() => void


onStop: (cb) => () => void;

Called once when the recording ends — Stop on the pill, the system, or stop(). Returns the unsubscribe.

Parameter Type
cb (result) => void

() => void


stop: () => Promise<CoworkCaptureResult>;

Promise<CoworkCaptureResult>