ElevenLabsVoice

interface ElevenLabsVoice : ElevenLabsVoiceProperties(source)

Properties

Link copied to clipboard
abstract var customModel: String

This enables specifying a model that doesn't already exist as an ElevenLabsVoiceModelType enum.

Link copied to clipboard
abstract var customVoiceId: String

This enables specifying a voice that doesn't already exist as an ElevenLabsVoiceIdType enum.

Link copied to clipboard
abstract var enableSsmlParsing: Boolean?

Defines the use of https://elevenlabs.io/docs/speech-synthesis/prompting#pronunciation. Disabled by default.

Link copied to clipboard
abstract var fillerInjectionEnabled: Boolean?

This determines whether fillers are injected into the model output before inputting it into the voice provider.
Default `false` because you can achieve better results with prompting the model.

Link copied to clipboard

This is the model that will be used. Defaults to 'eleven_turbo_v2' if not specified.

Link copied to clipboard
abstract var optimizeStreaming: Double

Defines the optimize streaming latency for voice settings. Defaults to 3.

Link copied to clipboard
abstract var similarityBoost: Double

Defines the similarity boost for voice settings.

Link copied to clipboard
abstract var stability: Double

Defines the similarity boost for voice settings.

Link copied to clipboard
abstract var style: Double

Defines the style for voice settings.

Link copied to clipboard
abstract var useSpeakerBoost: Boolean?

Defines the use speaker boost for voice settings.

Link copied to clipboard

This is the provider-specific ID that will be used. Ensure the Voice is present in your 11Labs Voice Library.

Functions

Link copied to clipboard
abstract fun chunkPlan(block: ChunkPlan.() -> Unit)

This is the chunk plan for controlling how the model output is split into chunks before being sent to the voice provider for generation.