Skip to content

alkove.Listener

class Listener(models: Models, words: Iterable, context: str = 'pause')

Spot and the words it listens for, on 16 kHz audio of any block size: a wake word on a raw microphone.

set_words(words: Iterable, context: str = 'pause') -> None

Listen for other words from the next frame on, on the same clock.

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

16 kHz audio, any length; one Heard per 30 ms frame it completes.