A fallback model with optional extra configuration. Extra fields are passed through to the provider.

interface TTSFallbackModel {
    extraKwargs?: Record<string, unknown>;
    model: string;
    voice: string;
}

Properties

extraKwargs?: Record<string, unknown>

Extra configuration for the model.

model: string

Model name (e.g. "cartesia/sonic", "elevenlabs/eleven_flash_v2", "rime/arcana").

voice: string

Voice to use for the model.