SpokenWords

Decides whether recognized words faithfully represent the printed words.

Types

Link copied to clipboard
data class Check(val matches: List<WordMatch>, val faithful: Set<Int>)

The alignment between written and heard words and the aligned pairs accepted.

Functions

Link copied to clipboard
fun check(expected: List<String>, heard: List<String>, quirks: RecognizerQuirks, elisions: Elisions, threshold: Double = SpokenLineTracker.closeSimilarityThreshold): SpokenWords.Check

Aligns heard words with expected words and applies explicit recognizer quirks.