Package-level declarations

Types

Link copied to clipboard
class Elisions(fullForms: Map<String, List<String>>)

The full forms of each elided spelling a work prints, from the work's own data.

Link copied to clipboard
data class LineSegment

One drawable part of a line, preserving the marks and spacing around a word.

Link copied to clipboard
data class NarrationAlignment(val piece: String, val duration: Double, val words: List<NarrationAlignment.Word>, val recording: String? = null)

Word-timing metadata supplied for a recorded narration.

Link copied to clipboard

Builds and queries word-level timelines for recorded speech.

Link copied to clipboard

A served document that is not UTF-8 text, with or without a byte order mark.

Link copied to clipboard
data class Passage(val lines: List<String>)

The printed lines read as one continuous passage.

Link copied to clipboard

Derives ordered piece states from the pieces attempted and cleared.

Link copied to clipboard

What a reader has done with one piece of a staged reading.

Link copied to clipboard

Shapes the gain at the edges of a playback buffer.

Link copied to clipboard
data class PublishedAlignment(val version: String, val alignment: NarrationAlignment)

A narration alignment as the server publishes it: the alignment and the version it was published under.

Link copied to clipboard

Explicit spellings that one recognizer may return for particular written words.

Link copied to clipboard
class SpokenLineTracker(lines: List<String>, val quirks: RecognizerQuirks, val elisions: Elisions, val tokenizer: WordTokenizer)

Checks a complete spoken attempt against one or more printed lines.

Link copied to clipboard
data class SpokenWord

One spoken word together with its position and source range in the passage.

Link copied to clipboard

Decides whether recognized words faithfully represent the printed words.

Link copied to clipboard

Where one stage of a staged reading stands.

Link copied to clipboard
data class UnknownStageState(val raw: Int) : Exception

A stored stage state this build does not know, perhaps written by a newer one.

Link copied to clipboard
data class VerseLayoutPlan

The chosen column and visual row starts for every line of verse.

Link copied to clipboard

Plans line turnovers for a whole passage rather than letting each line wrap alone.

Link copied to clipboard

Reduces audio samples to normalized display amplitudes.

Link copied to clipboard
data class WordAttempt(val word: String, val check: WordCheck)

A printed word paired with the result of one reading attempt.

Link copied to clipboard
@Serializable
enum WordCheck : Enum<WordCheck>

The persisted result of checking one printed word.

Link copied to clipboard

How one printed word is presented while a reading is in progress.

Link copied to clipboard
data class WordTiming

The interval in which one word is spoken in a recording.

Link copied to clipboard
class WordTokenizer(val interiorMarks: Set<Int>)

Splits printed lines into the words a reader actually says.

Functions

Link copied to clipboard
fun TranscriptAligner.timings(words: List<SpokenWord>, heard: List<RecognizedWord>, duration: Double, weighting: SpeechWeighting): List<WordTiming>

Aligns recognized words with printed words and returns passage-aware timings.