Create a new ElevenLabs voice provider.
Your ElevenLabs API key
The base URL for the ElevenLabs API (defaults to the official API)
Additional options for the provider
Optional
cacheMaxAge?: null | numberMaximum age of cached responses in seconds (default: 1 hour). Set to null to disable caching.
Optional
normalizeVolume?: booleanWhether to automatically normalize audio volume during playback (default: false)
Optional
printVoiceProperties?: booleanWhether to print voice properties for debugging
Optional
validateResponses?: booleanWhether to validate API responses against the schema
Readonly
apiReadonly
cacheThe name of the voice provider
Get the current volume normalization setting
Set the volume normalization setting
Whether to normalize audio volume
Get the default voice for a given language code.
The options for getting the default voice
The language code to match (e.g., "en-US")
A promise that resolves to the first available voice or null if none is available
Get available voices for a given language code.
The options for getting voices
The language code to match (e.g., "en-US")
The minimum number of voices to return
A promise that resolves to an array of ElevenLabs voices
A voice provider that uses the ElevenLabs API for high-quality text-to-speech. This provider requires an API key from ElevenLabs.
Example