interface TTSOptions {
    customPronunciations?: CustomPronunciations;
    instructions?: string;
    location?: string;
    model: string;
    project?: string;
    speaker?: string;
    speakers?: Record<string, string>;
    vertexai: boolean;
    voiceName: string;
}

Properties

customPronunciations?: CustomPronunciations
instructions?: string
location?: string
model: string
project?: string
speaker?: string

Which of speakers this instance voices. Required with speakers, and switchable via updateOptions.

speakers?: Record<string, string>

Speaker name to voice, for a multi-speaker voice config. Replaces voiceName. Needs a model that takes per-part speech metadata (the gemini-3.8 family).

vertexai: boolean
voiceName: string