ElevenLabsTTSOptions

Options & Configuration · AiDotNet.TextToSpeech.ProprietaryAPI

Options for the ElevenLabs text-to-speech client (POST /v1/text-to-speech/{voice_id}).

Inheritance: CloudTtsOptions → ElevenLabsTTSOptions

For Beginners

Set ApiKey to your ElevenLabs key and, optionally, VoiceId to one of your voices.

How It Works

Defaults: the public endpoint https://api.elevenlabs.io, the eleven_multilingual_v2 model, the premade voice “Rachel” (21m00Tcm4TlvDq8ikWAM) and 24 kHz PCM (output_format=pcm_24000; the API’s PCM rates are 8, 16, 22.05, 24, 32, 44.1 and 48 kHz). The voice settings are left to the voice’s defaults unless set.

Constructors

Constructor Summary
ElevenLabsTTSOptions() Creates the default options.
ElevenLabsTTSOptions(ElevenLabsTTSOptions other) Initializes a new instance by copying from another instance.

Properties

Property Summary
bool? UseSpeakerBoost { get; set; } Gets or sets whether to boost similarity to the original speaker, or null for the voice’s default.
double? SimilarityBoost { get; set; } Gets or sets the similarity boost (0–1), or null for the voice’s default.
double? Speed { get; set; } Gets or sets the speaking speed, or null for the voice’s default.
double? Stability { get; set; } Gets or sets the voice stability (0–1), or null for the voice’s default.
double? Style { get; set; } Gets or sets the style exaggeration (0–1), or null for the voice’s default.
string ModelId { get; set; } Gets or sets the model (eleven_multilingual_v2).