Interface DeepgramTextToSpeechProviderConfig

Configuration for the DeepgramTextToSpeechProvider.

interface DeepgramTextToSpeechProviderConfig {
    apiKey: string;
    baseUrl?: string;
    voice?: string;
    fetchImpl?: {
        (input, init?): Promise<Response>;
        (input, init?): Promise<Response>;
    };
}

Properties

apiKey: string

Deepgram API key. Sent as Authorization: Token <apiKey>.

baseUrl?: string

Base URL for the Deepgram API.

Default

'https://api.deepgram.com/v1'
voice?: string

Default Aura voice model.

Default

'aura-2-thalia-en'
fetchImpl?: {
    (input, init?): Promise<Response>;
    (input, init?): Promise<Response>;
}

Custom fetch implementation for dependency injection in tests.

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>