AI Dev Kit
Search Results for

    Show / Hide Table of Contents

    Class SoundEffectRequest

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

    Inheritance
    object
    RequestBody
    AudioRequest
    SoundEffectRequest
    Inherited Members
    AudioRequest.OutputFormat
    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

    Extension Methods

    RequestExtensions.ExecuteAsync(SoundEffectRequest)
    In this article
    Back to top Generated by DocFX