wordAtFraction

fun wordAtFraction(fraction: Double, ofLine: Int, timings: List<WordTiming>): SpokenWord?(source)

Returns the word at a fractional position through one line.

This maps progress through an unaligned recording onto the shape of an aligned one; it is an estimate of position, not a measurement of the reader's speech.

timings must be sorted in passage and non-overlapping time order.


fun wordAtFraction(fraction: Double, ofLines: IntRange, timings: List<WordTiming>): SpokenWord?(source)

Returns the word at a fractional position through a consecutive run of lines.

timings must be sorted in passage and non-overlapping time order.