Table of Contents

Class SpeechGenerationRequestBase<TSelf, TPrompt>

Namespace
Glitch9.AIDevKit
public abstract class SpeechGenerationRequestBase<TSelf, TPrompt> : AudioGenerationRequest<TSelf, TPrompt>, IGenerativeRequest, ISequentialRequest where TSelf : SpeechGenerationRequestBase<TSelf, TPrompt> where TPrompt : IPrompt

Type Parameters

TSelf
TPrompt
Inheritance
object
FluentApiRequest<TSelf, Generated<AudioClip>>
GenerativeRequest<TSelf, TPrompt, Generated<AudioClip>, float[], IGenerativeAudioEvent>
AudioGenerationRequest<TSelf, TPrompt>
SpeechGenerationRequestBase<TSelf, TPrompt>
Implements
Derived
Inherited Members
Extension Methods

Constructors

SpeechGenerationRequestBase(TPrompt)

protected SpeechGenerationRequestBase(TPrompt prompt)

Parameters

prompt TPrompt

Properties

SimilarityBoost

Only applicable when using ElevenLabs API. Optional. Determines how closely the AI should adhere to the original voice when attempting to replicate it.

public double? SimilarityBoost { get; set; }

Property Value

double?

Stability

Only applicable when using ElevenLabs API. Optional. Determines how stable the voice is and the randomness between each generation. Lower values introduce broader emotional range for the voice. Higher values can result in a monotonous voice with limited emotion.

public double? Stability { get; set; }

Property Value

double?

Style

Only applicable when using ElevenLabs API. Optional. Determines the style exaggeration of the voice. This setting attempts to amplify the style of the original speaker. This setting consumes additional computational resources and might increase latency if set to anything other than 0.

public double? Style { get; set; }

Property Value

double?

UseSpeakerBoost

Only applicable when using ElevenLabs API. Optional. This setting boosts the similarity to the original speaker. Using this setting requires a slightly higher computational load, which in turn increases latency.

public bool? UseSpeakerBoost { get; set; }

Property Value

bool?

UseStyleExaggeration

Only applicable when using ElevenLabs API. Optional. The use of style exaggeration in the voice output.

public bool? UseStyleExaggeration { get; set; }

Property Value

bool?

Voice

public string Voice { get; set; }

Property Value

string

Methods

GetRequestParameters()

public override Dictionary<string, object> GetRequestParameters()

Returns

Dictionary<string, object>

SetVoice(Api, string)

Sets the voice preset name (string-based, for future compatibility).

public TSelf SetVoice(Api api, string voice)

Parameters

api Api
voice string

Returns

TSelf

SetVoice(Voice)

public TSelf SetVoice(Voice voice)

Parameters

voice Voice

Returns

TSelf