Every lyrics line in Accompanist Lyrics Core implementsDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/6xingyv/accompanist-lyrics-core/llms.txt
Use this file to discover all available pages before exploring further.
ISyncedLine, the minimal interface that exposes timing information. SyncedLine is the concrete implementation used for line-level (non-karaoke) lyrics; UncheckedSyncedLine is a lenient variant produced during parsing before validation. Both classes carry the line’s text content, an optional translation string, and the millisecond timestamps that bound the line on the playback timeline.
ISyncedLine
ISyncedLine is the common interface implemented by all line types — including SyncedLine, UncheckedSyncedLine, and the KaraokeLine hierarchy.
Start time of the line in milliseconds.
End time of the line in milliseconds.
Length of the line in milliseconds. Implementations compute this as
end - start.SyncedLine
SyncedLine represents a fully validated, single line of lyrics with millisecond timestamps. The init block enforces end >= start; construction throws IllegalArgumentException if that constraint is violated.
Constructor parameters
The display text of the lyrics line.
An optional translation of the line, or
null if no translation is available.Start time in milliseconds. Must be less than or equal to
end.End time in milliseconds. Must be greater than or equal to
start; otherwise construction throws IllegalArgumentException.Properties
The display text of the lyrics line.
Optional translation string;
null when not provided.Start time of the line in milliseconds.
End time of the line in milliseconds.
Computed as
end - start. Always non-negative due to the init constraint.Extension method: toKaraokeLine()
SyncedLine into a KaraokeLine.MainKaraokeLine containing a single KaraokeSyllable that spans the full line duration. The syllable’s content is set to this.content, and alignment is set to KaraokeAlignment.Unspecified.
UncheckedSyncedLine
UncheckedSyncedLine is a lenient counterpart to SyncedLine used during parsing. It tolerates end < start by clamping duration to 0 rather than throwing. Call toSyncedLine() once the data is validated to obtain a checked SyncedLine.
Constructor parameters
The display text of the lyrics line.
Optional translation string, or
null.Start time in milliseconds. May be greater than
end without throwing.End time in milliseconds.
Properties
The display text of the lyrics line.
Optional translation;
null when not provided.Start time in milliseconds.
End time in milliseconds.
end - start if non-negative, otherwise 0. Never negative.Method: toSyncedLine()
UncheckedSyncedLine to a SyncedLine. The resulting SyncedLine enforces end >= start; call this only after confirming the timestamps are valid, or wrap in a try/catch.