Class BidiGenerateMusicGenerationConfig
Implements
Inherited Members
Namespace: Glitch9.AIDevKit.Google.Lyria
Assembly: Glitch9.AIDevKit.Provider.Google.dll
Syntax
public class BidiGenerateMusicGenerationConfig : BidiGenerateMusicClientMessage, IWebSocketMessage
Properties
| Edit this page View SourceBpm
Optional. Beats per minute. Range is [60, 200].
Declaration
[JsonProperty("bpm")]
public int? Bpm { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
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? |
Density
Optional. Density of sounds. Range is [0.0, 1.0].
Declaration
[JsonProperty("density")]
public float? Density { get; set; }
Property Value
| Type | Description |
|---|---|
| float? |
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? |
MusicGenerationMode
Optional. The mode of music generation. Default is QUALITY.
Declaration
[JsonProperty("musicGenerationMode")]
public LyriaGenerationMode? MusicGenerationMode { get; set; }
Property Value
| Type | Description |
|---|---|
| LyriaGenerationMode? |
MuteBass
Optional. The audio output should not contain bass.
Declaration
[JsonProperty("muteBass")]
public bool? MuteBass { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
MuteDrums
Optional. The audio output should not contain drums.
Declaration
[JsonProperty("muteDrums")]
public bool? MuteDrums { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
OnlyBassAndDrums
Optional. The audio output should only contain bass and drums.
Declaration
[JsonProperty("onlyBassAndDrums")]
public bool? OnlyBassAndDrums { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
Scale
Optional. Scale of the generated music.
Declaration
[JsonProperty("scale")]
public LyriaMusicScale? Scale { get; set; }
Property Value
| Type | Description |
|---|---|
| LyriaMusicScale? |
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? |
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? |
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 SourceCreateDefault()
Declaration
public static BidiGenerateMusicGenerationConfig CreateDefault()
Returns
| Type | Description |
|---|---|
| BidiGenerateMusicGenerationConfig |