Documentation Index
Fetch the complete documentation index at: https://mintlify.com/TextAliveJp/textalive-app-api/llms.txt
Use this file to discover all available pages before exploring further.
IPhrase represents a single phrase of sung lyrics. It extends ITextUnit, which in turn extends IRenderingUnit, so it inherits timing, navigation, and animation properties from both.
Inheritance chain: IPhrase → ITextUnit → IRenderingUnit → TimedObject
IPhrase properties
The words that make up this phrase, in order.
The phrase immediately before this one, or
null if this is the first phrase.The phrase immediately after this one, or
null if this is the last phrase.Number of words in this phrase.
Total number of characters across all words in this phrase.
The first word in this phrase.
The last word in this phrase.
The first character in this phrase.
The last character in this phrase.
IPhrase methods
findIndex
Returns the index of a word or character within this phrase’s flat unit list.The word or character whose index you want.
number
Inherited from ITextUnit
The plain text of this phrase — the concatenated text of all its words.
Inherited from IRenderingUnit
Start time of this phrase in milliseconds.
End time of this phrase in milliseconds.
Duration of this phrase in milliseconds (
endTime - startTime).Assign a function here to override the default template animation for this phrase. The function receives
(now: number, u: IRenderingUnit) on every render frame.progress
Maps a song position to a value in[0, 1] representing how far through this phrase playback has reached.
Position in the song [ms].
number — 0 at startTime, 1 at endTime.
getType
Returns the unit type constant. Returnsnumber — always 1 (UnitTypes.PHRASE) for phrases.
PhraseData
PhraseData is the serialization format used when constructing a video from JSON.