ElevenLabsBuilder class

ElevenLabs-specific LLM builder with provider-specific configuration methods

This builder provides a layered configuration approach where ElevenLabs-specific parameters are handled separately from the generic LLMBuilder, keeping the main builder clean and focused.

Use this for ElevenLabs-specific parameters only. For common parameters like apiKey, model, temperature, etc., continue using the base LLMBuilder methods.

Constructors

ElevenLabsBuilder.new(LLMBuilder _baseBuilder)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build() Future<ChatCapability>
Builds and returns a configured LLM provider instance
buildAudio() Future<AudioCapability>
Builds a provider with AudioCapability
forBalanced() ElevenLabsBuilder
Configure for balanced speech (recommended default)
forConversational() ElevenLabsBuilder
Configure for natural conversational speech
forExpressive() ElevenLabsBuilder
Configure for expressive speech with more variability
forHighQuality() ElevenLabsBuilder
Configure for high-quality speech with maximum stability
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
similarityBoost(double similarityBoost) ElevenLabsBuilder
Sets similarity boost parameter for ElevenLabs TTS (0.0-1.0)
stability(double stability) ElevenLabsBuilder
Sets stability parameter for ElevenLabs TTS (0.0-1.0)
style(double style) ElevenLabsBuilder
Sets style parameter for ElevenLabs TTS (0.0-1.0)
toString() String
A string representation of this object.
inherited
useSpeakerBoost(bool enable) ElevenLabsBuilder
Enables or disables speaker boost for ElevenLabs TTS
voiceId(String voiceId) ElevenLabsBuilder
Sets voice ID for ElevenLabs TTS

Operators

operator ==(Object other) bool
The equality operator.
inherited