Interface PieceInput

One piece of a recording, cut by the caller.

interface PieceInput {
    index: number;
    startMs: number;
    durationMs: number;
    data: Uint8Array<ArrayBufferLike>;
    mimeType: string;
    fileName: string;
}

Properties

index: number

The piece's number in the recording, higher than the number of the piece before it. The job tells pieces apart by it.

startMs: number

Where the piece starts in the recording.

durationMs: number

How long the piece is.

data: Uint8Array<ArrayBufferLike>

The piece's audio, in a container a provider takes.

mimeType: string

The media type of data.

fileName: string

Named with the container's extension, which a provider reads to know the format.