ElevenLabsTTS<T>

Models & Types · AiDotNet.TextToSpeech.ProprietaryAPI

A client of the ElevenLabs text-to-speech API.

Inheritance: CloudTtsClientBase<T> → ElevenLabsTTS<T>

For Beginners

new ElevenLabsTTS<float>(new ElevenLabsTTSOptions { ApiKey = "…" }).Synthesize("Hello") returns the spoken audio.

How It Works

Sends POST {endpoint}/v1/text-to-speech/{voice_id}?output_format=pcm_{rate} with the xi-api-key header and the JSON body { text, model_id, voice_settings }; the response is signed 16-bit little-endian mono PCM at the requested rate.

Constructors

Constructor Summary
ElevenLabsTTS(ElevenLabsTTSOptions options, HttpClient httpClient) Creates the client; a supplied HttpClient is used as is and not disposed.

Properties

Property Summary
string ProviderName { get; }