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.
Methods
Section titled “Methods”push()
Section titled “push()”push(p: float, k: int) -> Optional[dict]Frame k’s probability; a speechstart or speechend event when speech starts or ends.
reset()
Section titled “reset()”reset() -> NoneBack to silence, with no speechend for the speech it was in.
Attributes
Section titled “Attributes”| 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. |