ElevenLabsConfig class
ElevenLabs provider configuration
This class contains all configuration options for the ElevenLabs providers. ElevenLabs specializes in text-to-speech and speech-to-text capabilities.
Constructors
- ElevenLabsConfig.new({required String apiKey, String baseUrl = ProviderDefaults.elevenLabsBaseUrl, String? voiceId, String? model, Duration? timeout, double? stability, double? similarityBoost, double? style, bool? useSpeakerBoost, LLMConfig? originalConfig})
-
const
- ElevenLabsConfig.fromLLMConfig(LLMConfig config)
-
Create ElevenLabsConfig from unified LLMConfig
factory
Properties
- apiKey → String
-
final
- baseUrl → String
-
final
- defaultSTTModel → String
-
Get the default STT model (matches ElevenLabs API documentation)
no setter
- defaultTTSModel → String
-
Get the default TTS model (matches ElevenLabs API documentation)
no setter
- defaultVoiceId → String
-
Get the default voice ID
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- model → String?
-
final
- originalConfig → LLMConfig?
-
Get the original LLMConfig for HTTP configuration
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- similarityBoost → double?
-
final
- stability → double?
-
final
- style → double?
-
final
-
supportedAudioFormats
→ List<
String> -
Get supported audio formats
no setter
- supportsRealTimeStreaming → bool
-
Check if this configuration supports real-time streaming
no setter
- supportsSpeechToText → bool
-
Check if this configuration supports speech-to-text
no setter
- supportsTextToSpeech → bool
-
Check if this configuration supports text-to-speech
no setter
- supportsVoiceCloning → bool
-
Check if this configuration supports voice cloning
no setter
- timeout → Duration?
-
final
- useSpeakerBoost → bool?
-
final
- voiceId → String?
-
final
-
voiceSettings
→ Map<
String, dynamic> -
Get voice settings for TTS
no setter
Methods
-
copyWith(
{String? apiKey, String? baseUrl, String? voiceId, String? model, Duration? timeout, double? stability, double? similarityBoost, double? style, bool? useSpeakerBoost}) → ElevenLabsConfig -
getExtension<
T> (String key) → T? - Get extension value from original config
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited