Skip to content

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.

push(pcm: Any) -> List[dict]

16 kHz audio; the takes heard in it ({score, ok, start, end, pronunciation}).

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.

Attribute Type Description
done bool True once takes takes with the word were heard.