VoiceLabels
class VoiceLabels(val names: Map<String, String>, val tint: (agent: String) -> Color?? = null, val bottom: androidx.compose.ui.unit.Dp = 16.dp, val backdrop: androidx.compose.ui.graphics.layer.GraphicsLayer? = null, val backdropOrigin: () -> Offset = { Offset.Zero }, val darken: Float = 0.0f, val scale: Float = 1.0f)(source)
Who sings each line, by the agent ids lines carry (v1, v2, …, v1000 for a group), and optionally a colour for each, which tints their capsule. Shown only when two voices or more have a name (a singer and their group count).
Properties
Link copied to clipboard
What lies behind the lyrics, for the capsule to blur too: over a video, its picture. The host records it into this layer and tells where the layer stands on screen (backdropOrigin, in root coordinates). Without it the capsule blurs only the lyrics behind it.
Link copied to clipboard
Where backdrop stands, in root coordinates.
Link copied to clipboard
How far BraccatoStage raises its floor for the capsule's own line: the capsule, its distance from the bottom, and a little air. A host drawing a second stage beside it (a shadow) without voices raises that one by the same.