estimate

fun estimate(passage: Passage, duration: Double, tokenizer: WordTokenizer, weighting: SpeechWeighting): List<WordTiming>(source)

Estimates word timings by speech weight, reserving a pause at each line break.

The tokenizer and the weighting belong to the language of the passage. An empty passage, nonpositive duration, or weighting with no positive total produces an empty timeline.

weighting must return a nonnegative weight for every word.