interface TTSOptions {
    apiKey?: string;
    applyLanguageTextNormalization?: boolean;
    applyTextNormalization?: "on" | "auto" | "off";
    autoMode?: boolean;
    baseURL?: string;
    chunkLengthSchedule?: number[];
    enableLogging?: boolean;
    enableSsmlParsing?: boolean;
    encoding?: TTSEncoding;
    inactivityTimeout?: number;
    language?: string;
    languageCode?: string;
    model?: string;
    modelID?: string;
    preferredAlignment?: "normalized" | "original";
    pronunciationDictionaryLocators?: PronunciationDictionaryLocator[];
    streamingLatency?: number;
    syncAlignment?: boolean;
    voice?: Voice;
    voiceId?: string;
    voiceSettings?: VoiceSettings;
    wordTokenizer?: tokenize.WordTokenizer | tokenize.SentenceTokenizer;
}

Properties

apiKey?: string
applyLanguageTextNormalization?: boolean
applyTextNormalization?: "on" | "auto" | "off"
autoMode?: boolean
baseURL?: string
chunkLengthSchedule?: number[]
enableLogging?: boolean
enableSsmlParsing?: boolean
encoding?: TTSEncoding
inactivityTimeout?: number
language?: string

Language code used to enforce a language for the model and text normalization. If the model does not support language overrides, it will be ignored.

languageCode?: string
model?: string

TTS model to use. Defaults to eleven_turbo_v2_5. eleven_v3, eleven_v3_conversational, eleven_v4 and eleven_v4_turbo go through ElevenLabs' text-to-dialogue API instead (single voice per instance, same as other models).

modelID?: string
preferredAlignment?: "normalized" | "original"
pronunciationDictionaryLocators?: PronunciationDictionaryLocator[]
streamingLatency?: number
syncAlignment?: boolean
voice?: Voice
voiceId?: string
voiceSettings?: VoiceSettings