Class SoundEffectRequest
Request body for converting text to sound effects using ElevenLabs API.
Inherited Members
Namespace: Glitch9.AIDevKit.ElevenLabs
Assembly: .dll
Syntax
public class SoundEffectRequest : AudioRequest
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.
Declaration
public double? DurationSeconds { get; set; }
Property Value
Type | Description |
---|---|
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.
Declaration
public double? PromptInfluence { get; set; }
Property Value
Type | Description |
---|---|
double? |
Text
Text to convert into a sound effect.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
string |