Skip to content

alkove.SpeechTracker

class SpeechTracker(speech: Optional[SpeechParams] = None, frame_secs: float = 0.03)

Cue’s state machine on its probabilities, frame by frame: what Processor and the web SDK decide, for frameworks that want each step.

push(p: float, k: int) -> Optional[dict]

Frame k’s probability; a speechstart or speechend event when speech starts or ends.

reset() -> None

Back to silence, with no speechend for the speech it was in.

Attribute Type Description
active bool Speech is open: a frame went over confidence, and stop_secs under exit_confidence have not passed yet.
confirmed bool The open speech lasted start_secs: its speechstart was given.