OpenAITranscriptionConfig
Defined in: core/src/providers/openai-transcription.ts:32
Extends
Section titled “Extends”Properties
Section titled “Properties”apiKey
Section titled “apiKey”apiKey: string;Defined in: core/src/providers/openai-transcription.ts:34
“” sends no Authorization header, for a local server that wants none.
baseUrl?
Section titled “baseUrl?”optional baseUrl?: string;Defined in: core/src/providers/openai-transcription.ts:37
Default https://api.openai.com.
fetchImpl?
Section titled “fetchImpl?”optional fetchImpl?: FetchLike;Defined in: core/src/providers/openai-transcription.ts:46
Swapped in tests, or to route through a proxy. Defaults to global fetch.
headers?
Section titled “headers?”optional headers?: Record<string, string>;Defined in: core/src/providers/openai-transcription.ts:44
optional id?: string;Defined in: core/src/providers/openai-transcription.ts:43
The preset id. Names the provider in errors and on TranscriptionProvider.id. Default
“openai”.
maxAudioBytes?
Section titled “maxAudioBytes?”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.
Inherited from
Section titled “Inherited from”TranscriptionLimits.maxAudioBytes
model: string;Defined in: core/src/providers/openai-transcription.ts:35
optional path?: string;Defined in: core/src/providers/openai-transcription.ts:40
Default /v1/audio/transcriptions, or /audio/transcriptions when the base already ends
in a version.
siteName?
Section titled “siteName?”optional siteName?: string;Defined in: core/src/attribution.ts:15
App name, sent as X-Title (e.g. “Your App”).
Inherited from
Section titled “Inherited from”siteUrl?
Section titled “siteUrl?”optional siteUrl?: string;Defined in: core/src/attribution.ts:13
Site URL, sent as HTTP-Referer (e.g. “https://your.app”).
Inherited from
Section titled “Inherited from”timeoutMs?
Section titled “timeoutMs?”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.