AlignmentSegment

data.datamodel.AlignmentSegment()

A segment of aligned audio and text.

This can be sentence, paragraph, or any other unit of text.

Attributes

Name Type Description
start float Start time of the aligned segment in seconds.
end float End time of the aligned segment in seconds.
text str The aligned text segment.
words list of WordSegment List of word-level alignment data within this segment.
id (str or int, optional) Optional unique identifier for the alignment segment.
duration (float, optional) Duration of the aligned segment in seconds.
score (float, optional) Optional confidence score for the alignment.