Search Results for

    Show / Hide Table of Contents

    Class SoundEffectRequest

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

    Inheritance
    object
    ElevenLabsAudioRequest
    SoundEffectRequest
    Inherited Members
    ElevenLabsAudioRequest.OutputFormat
    ElevenLabsAudioRequest.AudioFormat
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.ElevenLabs
    Assembly: Glitch9.AIDevKit.Provider.ElevenLabs.dll
    Syntax
    public class SoundEffectRequest : ElevenLabsAudioRequest

    Properties

    | Edit this page View Source

    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
    [JsonProperty("duration_seconds")]
    public double? DurationSeconds { get; set; }
    Property Value
    Type Description
    double?
    | Edit this page View Source

    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?
    | Edit this page View Source

    Text

    Text to convert into a sound effect.

    Declaration
    [JsonProperty("text")]
    public string Text { get; set; }
    Property Value
    Type Description
    string

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation