tracking/word/highlighting_controller library

Classes

AsrTokenProcessor
Ingests raw CTC tokens and timestamps from Sherpa-ONNX, filters special/blank tokens, and computes accurate acoustic phoneme durations reflecting real recitation articulation.
DebugLogEvent
HighlightingController
Bridges speech recognition engine output to per-word visual highlighting in the UI.
IsolateCommand
Sealed base class for all commands sent from Main UI Thread ➔ Alignment Worker.
IsolateEvent
Sealed base class for all events emitted from Alignment Worker ➔ Main UI Thread.
JumpToWordCommand
PhonemeAlignmentIsolate
Main UI thread manager for the background alignment isolate.
ProcessedAudioStream
Represents the filtered speech tokens and their acoustic durations.
SetSurahReferenceCommand
SetTajweedModeCommand
StopIsolateCommand
SurahHighlightStore
SyncStreamCommand
TrackerConfig
Unified immutable configuration for recitation tracking and Tajweed evaluation.
UpdateTrackerConfigCommand
VerseMatch
WordMatchedEvent

Enums

MatchingStrictness
Controls ASR speech matching acceptance sensitivity and edit penalties.
RecitationSpeed
Pacing and speed of recitation (مراتب التلاوة). Controls target Harakat counts for variable Madds.
TrackerState
WordHighlightStatus
A single word's recitation status within SurahHighlightStore.

Functions

alignmentWorkerEntrypoint(SendPort mainSendPort) → void