Table of Contents

Class SoundEffectRequest

Request body for converting text to sound effects using ElevenLabs API.

public class SoundEffectRequest : AudioRequest
Inheritance
object
RESTRequestBody
SoundEffectRequest
Inherited Members
Extension Methods

Properties

DurationSeconds

Optional. Length of the resulting sound effect in seconds. Must be between 0.5 and 22 seconds (inclusive). If not set, the duration will be automatically determined based on the prompt.

public double? DurationSeconds { get; set; }

Property Value

double?

PromptInfluence

Optional. Value between 0 and 1 that determines how strongly the prompt should be followed. Higher values will follow the prompt more strictly but may reduce the diversity of generations. Default is 0.3.

public double? PromptInfluence { get; set; }

Property Value

double?

Text

Text to convert into a sound effect.

public string Text { get; set; }

Property Value

string