Member Junction
    Preparing search index...

    Interface StoreRealtimeRecordingInput

    interface StoreRealtimeRecordingInput {
        Audio: Buffer;
        ContextUser: UserInfo;
        Description?: string;
        FileName?: string;
        Media: RealtimeRecordingMedia;
        MimeType: string;
        Peaks?: number[];
        PreserveExistingRecording?: boolean;
        Provider: IMetadataProvider;
        SessionID: string;
        StartedAt: Date;
        StorageAccountID: string;
    }
    Index

    Properties

    Audio: Buffer

    The encoded recording bytes (e.g. a WAV from the server mixer, or the browser's seekable WAV).

    ContextUser: UserInfo
    Description?: string

    Description stored on the MJ: Files row (e.g. how a recovered recording was assembled).

    FileName?: string

    Name of the uploaded file. Defaults to recording.<ext>.

    What was captured, stamped on the session.

    MimeType: string

    MIME type of the audio (audio/wav, audio/webm, audio/ogg, audio/mp4).

    Peaks?: number[]

    Optional capture-time waveform peaks (max-abs per bucket, normalized 0..1). When present, written as a peaks.json sidecar in the SAME session folder as the recording so a viewer can render the waveform without re-decoding the audio. Best-effort — a sidecar failure never fails the recording.

    PreserveExistingRecording?: boolean

    When true, the order becomes re-check -> stamp -> link: the session is re-read immediately before the stamp and, if it already has a RecordingFileID, that recording is left alone (nothing is linked or stamped; the result is Superseded). The link is written only after the stamp saved, so a superseded or failed store never leaves a link row. Best effort, not a guarantee: without a compare-and-set, a recording stamped inside the one load -> save window is still overwritten. Recovery sets this. Left false (the default) for the end-of-call upload, which links and then stamps unconditionally.

    SessionID: string

    The AIAgentSession id the recording belongs to.

    StartedAt: Date

    The recording t0 (alignment origin), stamped on the session.

    StorageAccountID: string

    The resolved storage account id (see resolveRecordingStorageAccountID).