Configuration options for TTSv2 (Deepgram Flux TTS, the /v2/speak endpoint).

interface TTSv2Options {
    apiKey?: string;
    baseUrl: string;
    encoding: "linear16";
    mipOptOut: boolean;
    model: string;
    sampleRate: number;
    wordTokenizer: tokenize.WordTokenizer;
}

Properties

apiKey?: string

Deepgram API key. Falls back to $DEEPGRAM_API_KEY.

baseUrl: string

Base URL for the Deepgram Flux TTS API.

encoding: "linear16"

Audio encoding to use. Only linear16 is supported: the LiveKit pipeline plays raw PCM and this plugin does not decode compressed audio.

mipOptOut: boolean

Opt out of the Deepgram Model Improvement Program. Defaults to false (requests may be used to improve models).

model: string

Flux TTS model to use. Model names follow the flux-{voice}-{language} format.

sampleRate: number

Sample rate of audio in Hz.

wordTokenizer: tokenize.WordTokenizer

Tokenizer used to split incoming text into the words sent to Flux.