ElevenLabsSpeechRequest
Namespace: Vercel.AI.ElevenLabs
public sealed class ElevenLabsSpeechRequestOne ElevenLabs text-to-speech call.
Inheritance: object
Constructors
Section titled “Constructors”ElevenLabsSpeechRequest(string)
Section titled “ElevenLabsSpeechRequest(string)”public ElevenLabsSpeechRequest(string text)Creates a speech request.
Parameters
| Name | Type | Description |
|---|---|---|
text |
string |
Fields
Section titled “Fields”DefaultVoiceId
Section titled “DefaultVoiceId”public const string DefaultVoiceId = "21m00Tcm4TlvDq8ikWAM"Default voice used when the caller does not set one.
Value: string
Properties
Section titled “Properties”Headers
Section titled “Headers”public IDictionary<string, string>? Headers { get; set; }Headers merged over the provider headers.
Value: IDictionary<string, string>
Instructions
Section titled “Instructions”public string? Instructions { get; set; }Ignored. ElevenLabs does not accept instructions; a warning is returned.
Value: string
Language
Section titled “Language”public string? Language { get; set; }Language code, sent as language_code.
Value: string
OutputFormat
Section titled “OutputFormat”public string OutputFormat { get; set; }Output format, such as mp3 or pcm_44100. Sent as the output_format query parameter.
Value: string
ProviderOptions
Section titled “ProviderOptions”public JsonElement? ProviderOptions { get; set; }Provider options. The elevenlabs object is read.
Value: JsonElement?
public double? Speed { get; set; }Speaking rate, sent in voice_settings.
Value: double?
public string Text { get; }Text to speak.
Value: string
public string? Voice { get; set; }Voice id. Null selects DefaultVoiceId.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product