Table of Contents

Enum LiveMusicPlaybackControl

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

The playback control signal to apply to the music generation.

[JsonConverter(typeof(JsonStringEnumConverter<LiveMusicPlaybackControl>))]
public enum LiveMusicPlaybackControl
Extension Methods

Fields

[JsonPropertyName("PLAYBACK_CONTROL_UNSPECIFIED")] PLAYBACK_CONTROL_UNSPECIFIED = 0

This value is unused.

[JsonPropertyName("PLAY")] PLAY = 1

Start generating the music.

[JsonPropertyName("PAUSE")] PAUSE = 2

Hold the music generation. Use PLAY to resume from the current position.

[JsonPropertyName("STOP")] STOP = 3

Stop the music generation and reset the context (prompts retained). Use PLAY to restart the music generation.

[JsonPropertyName("RESET_CONTEXT")] RESET_CONTEXT = 4

Reset the context of the music generation without stopping it. Retains the current prompts and config.