Interface WeightedPrompt

Maps a prompt to a relative weight to steer music generation.

interface WeightedPrompt {
    text?: string;
    weight?: number;
}

Properties

Properties

text?: string

Text prompt.

weight?: number

Weight of the prompt. The weight is used to control the relative importance of the prompt. Higher weights are more important than lower weights.

Weight must not be 0. Weights of all weighted_prompts in this LiveMusicClientContent message will be normalized.