alkove.Enroller
class Enroller( models: Models, word: Union[Word, dict, str], *, takes: int = 3, chain: str = 'raw',)The user says the word takes times: thresholds set from these takes and from what is heard between them.
Methods
Section titled “Methods”push()
Section titled “push()”push(pcm: Any) -> List[dict]16 kHz audio; the takes heard in it ({score, ok, start, end, pronunciation}).
result()
Section titled “result()”result() -> Tuple[Word, List[dict], List[dict]]The word set on the takes, the takes, and what to warn about; ValueError (word.no-take) when no take was heard.
Attributes
Section titled “Attributes”| Attribute | Type | Description |
|---|---|---|
done |
bool |
True once takes takes with the word were heard. |