Word

data class Word(val line: Int, val text: String, val start: Double, val end: Double)(source)

One word and its supplied interval in the recording, not validated against its bounds.

Read from JSON under any Json configuration, it refuses a missing field, a value of another type than the field's and a line outside Int, and reads past a field it does not know.

Constructors

Link copied to clipboard
constructor(line: Int, text: String, start: Double, end: Double)

Types

Link copied to clipboard
object Serializer : KSerializer<NarrationAlignment.Word>

Writes a word as JSON, and reads one only from JSON, strictly.

Properties

Link copied to clipboard
val end: Double

End time in seconds from the beginning of the recording.

Link copied to clipboard
val line: Int

Zero-based index of the printed line containing the word.

Link copied to clipboard

Start time in seconds from the beginning of the recording.

Link copied to clipboard

Printed spelling used when the alignment was produced.