Class SoundEffectRequest
Request body for converting text to sound effects using ElevenLabs API.
Inherited Members
Namespace: Glitch9.AIDevKit.ElevenLabs
Assembly: Glitch9.AIDevKit.Provider.ElevenLabs.dll
Syntax
public class SoundEffectRequest : ElevenLabsAudioRequest
Properties
| Edit this page View SourceDurationSeconds
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
[JsonProperty("duration_seconds")]
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
[JsonProperty("prompt_influence")]
public double? PromptInfluence { get; set; }
Property Value
| Type | Description |
|---|---|
| double? |
Text
Text to convert into a sound effect.
Declaration
[JsonProperty("text")]
public string Text { get; set; }
Property Value
| Type | Description |
|---|---|
| string |