Search Results for

    Show / Hide Table of Contents

    Class BidiGenerateMusicGenerationConfig

    Inheritance
    object
    BidiGenerateMusicClientMessage
    BidiGenerateMusicGenerationConfig
    Implements
    IWebSocketMessage
    Inherited Members
    BidiGenerateMusicClientMessage.Cts
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.Google.Lyria
    Assembly: Glitch9.AIDevKit.Provider.Google.dll
    Syntax
    public class BidiGenerateMusicGenerationConfig : BidiGenerateMusicClientMessage, IWebSocketMessage

    Properties

    | Edit this page View Source

    Bpm

    Optional. Beats per minute. Range is [60, 200].

    Declaration
    [JsonProperty("bpm")]
    public int? Bpm { get; set; }
    Property Value
    Type Description
    int?
    | Edit this page View Source

    Brightness

    Optional. Higher value produces brighter audio. Range is [0.0, 1.0].

    Declaration
    [JsonProperty("brightness")]
    public float? Brightness { get; set; }
    Property Value
    Type Description
    float?
    | Edit this page View Source

    Density

    Optional. Density of sounds. Range is [0.0, 1.0].

    Declaration
    [JsonProperty("density")]
    public float? Density { get; set; }
    Property Value
    Type Description
    float?
    | Edit this page View Source

    Guidance

    Optional. Controls how closely the model follows prompts. Higher guidance follows more closely, but will make transitions more abrupt. Range is [0.0, 6.0]. Default is 4.0.

    Declaration
    [JsonProperty("guidance")]
    public float? Guidance { get; set; }
    Property Value
    Type Description
    float?
    | Edit this page View Source

    MusicGenerationMode

    Optional. The mode of music generation. Default is QUALITY.

    Declaration
    [JsonProperty("musicGenerationMode")]
    public LyriaGenerationMode? MusicGenerationMode { get; set; }
    Property Value
    Type Description
    LyriaGenerationMode?
    | Edit this page View Source

    MuteBass

    Optional. The audio output should not contain bass.

    Declaration
    [JsonProperty("muteBass")]
    public bool? MuteBass { get; set; }
    Property Value
    Type Description
    bool?
    | Edit this page View Source

    MuteDrums

    Optional. The audio output should not contain drums.

    Declaration
    [JsonProperty("muteDrums")]
    public bool? MuteDrums { get; set; }
    Property Value
    Type Description
    bool?
    | Edit this page View Source

    OnlyBassAndDrums

    Optional. The audio output should only contain bass and drums.

    Declaration
    [JsonProperty("onlyBassAndDrums")]
    public bool? OnlyBassAndDrums { get; set; }
    Property Value
    Type Description
    bool?
    | Edit this page View Source

    Scale

    Optional. Scale of the generated music.

    Declaration
    [JsonProperty("scale")]
    public LyriaMusicScale? Scale { get; set; }
    Property Value
    Type Description
    LyriaMusicScale?
    | Edit this page View Source

    Seed

    Optional. Seeds audio generation. If not set, the request uses a randomly generated seed.

    Declaration
    [JsonProperty("seed")]
    public int? Seed { get; set; }
    Property Value
    Type Description
    int?
    | Edit this page View Source

    Temperature

    Optional. Controls the variance in audio generation.

    Higher values produce higher variance. Range is [0.0, 3.0]. Default is 1.1.

    Declaration
    [JsonProperty("temperature")]
    public float? Temperature { get; set; }
    Property Value
    Type Description
    float?
    | Edit this page View Source

    TopK

    Optional. Controls how the model selects tokens for output.

    Samples the topK tokens with the highest probabilities. Range is [1, 1000]. Default is 40.

    Declaration
    [JsonProperty("topK")]
    public int? TopK { get; set; }
    Property Value
    Type Description
    int?

    Methods

    | Edit this page View Source

    CreateDefault()

    Declaration
    public static BidiGenerateMusicGenerationConfig CreateDefault()
    Returns
    Type Description
    BidiGenerateMusicGenerationConfig

    Implements

    IWebSocketMessage

    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