Interface DeepgramBatchSTTProviderConfig

Configuration for the DeepgramBatchSTTProvider.

See

DeepgramBatchSTTProvider for usage examples

interface DeepgramBatchSTTProviderConfig {
    apiKey: string;
    model?: string;
    language?: string;
    fetchImpl?: {
        (input, init?): Promise<Response>;
        (input, init?): Promise<Response>;
    };
}

Properties

apiKey: string

Deepgram API key used for authentication. Sent as Authorization: Token <apiKey> in the request header.

model?: string

Deepgram model to use for transcription. See https://developers.deepgram.com/docs/models for available models.

Default

'nova-2'
language?: string

BCP-47 language code, e.g. 'en-US', 'fr-FR', 'de-DE'. When omitted, Deepgram applies automatic language detection.

Default

'en-US' (set at transcribe-time if not configured here)
fetchImpl?: {
    (input, init?): Promise<Response>;
    (input, init?): Promise<Response>;
}

Custom fetch implementation for dependency injection in tests. When omitted, the global fetch is used. This allows tests to intercept HTTP calls without mocking globals.

Type declaration

    • (input, init?): Promise<Response>
    • Parameters

      • input: RequestInfo | URL
      • Optional init: RequestInit

      Returns Promise<Response>

    • (input, init?): Promise<Response>
    • Parameters

      • input: string | Request | URL
      • Optional init: RequestInit

      Returns Promise<Response>

Default

globalThis.fetch