Options for AssemblyAI Streaming TTS.

interface TTSOptions {
    apiKey?: string;
    baseUrl?: string;
    language?: null | string;
    model?: string;
    sampleRate?: number;
    textPacing?: boolean;
    tokenizer?: tokenize.SentenceTokenizer;
    voice?: string;
    wordTimestamps?: boolean;
}

Properties

apiKey?: string

Defaults to ASSEMBLYAI_API_KEY.

baseUrl?: string

Streaming TTS host, including its wss scheme.

language?: null | string

Language code or English language name. Omit to use the voice's default language.

model?: string

Model name or alias.

sampleRate?: number

PCM output sample rate.

textPacing?: boolean

Pace later sentence requests behind audio already generated for the stream.

Sentence tokenizer used to split streamed LLM output into requests.

voice?: string

Catalog voice UUID or slug. Defaults to Keegan.

wordTimestamps?: boolean

Request and emit word-level timestamps.