Skip to content
providerkit
GitHub

TranscriptionRequest

Defined in: core/src/transcription-core.ts:15

audio: Blob;

Defined in: core/src/transcription-core.ts:21

The recording. A File is a Blob. Its type is required (“audio/wav”, “audio/mpeg”): Deepgram reads the format from the Content-Type it becomes, OpenAI from the file name it implies. Empty, untyped or over maxAudioBytes is refused before any request.


optional diarize?: boolean;

Defined in: core/src/transcription-core.ts:27

Label who speaks each segment. Absent or false: no speaker labels.


optional language?: string;

Defined in: core/src/transcription-core.ts:25

BCP-47, such as “pt-BR”. Absent: the provider detects the language.


optional model?: string;

Defined in: core/src/transcription-core.ts:23

This call’s model. Absent: the provider’s.


optional signal?: AbortSignal;

Defined in: core/src/transcription-core.ts:29

The caller’s Stop. Never retried and never turned into a timeout.