Skip to content
providerkit
GitHub

TranscriptionProviderConfig

Defined in: core/src/providers/transcription-factory.ts:14

apiKey: string;

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


optional baseUrl?: string;

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

Replaces the preset’s host, for a server that copies its route (Groq, a local Whisper server, a proxy). The preset’s default model is a fact about its own host, so it does not follow you here: pass the model.


optional fetchImpl?: FetchLike;

Defined in: core/src/providers/transcription-factory.ts:26

Swapped in tests, or to route through a proxy. Defaults to global fetch.


optional headers?: Record<string, string>;

Defined in: core/src/providers/transcription-factory.ts:24


optional maxAudioBytes?: number;

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

Largest recording sent, in bytes. Default 25 MiB, OpenAI’s documented limit; Deepgram’s own wire defaults to its 2 GB. Over it is refused before any request. Never cut.

TranscriptionLimits.maxAudioBytes


optional model?: string;

Defined in: core/src/providers/transcription-factory.ts:17

Absent: the preset’s transcription.defaultModel. A preset without one needs this.


optional siteName?: string;

Defined in: core/src/attribution.ts:15

App name, sent as X-Title (e.g. “Your App”).

Attribution.siteName


optional siteUrl?: string;

Defined in: core/src/attribution.ts:13

Site URL, sent as HTTP-Referer (e.g. “https://your.app”).

Attribution.siteUrl


optional timeoutMs?: number;

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

One deadline for the whole call: the upload, the work and the reply. Default 600,000: ten minutes, past which Deepgram itself answers 504.

TranscriptionLimits.timeoutMs