Skip to content

OHF-Voice/pymicro-wakeword

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3b051ac · Oct 10, 2024

History

3 Commits
Oct 10, 2024
Oct 10, 2024
Oct 10, 2024
Oct 10, 2024
Oct 10, 2024
Oct 10, 2024
Oct 10, 2024
Oct 10, 2024
Oct 10, 2024
Oct 10, 2024
Oct 10, 2024
Oct 10, 2024
Oct 10, 2024
Oct 10, 2024
Oct 10, 2024
Oct 10, 2024

Repository files navigation

Python microWakeWord

Python library for microWakeWord.

Install

pip3 install pymicro-wakeword

Usage

from pymicro_wakeword import MicroWakeWord, Model

mww = MicroWakeWord.from_builtin(Model.OKAY_NABU)

# Audio must be 16-bit mono at 16Khz
while audio := get_10ms_of_audio():
    assert len(audio) == 160 * 2  # 160 samples
    if mww.process_streaming(audio):
        print("Detected!")

Command-Line

WAVE files

python3 -m pymicro_wakeword --model 'okay_nabu' /path/to/*.wav

Live

arecord -r 16000 -c 1 -f S16_LE -t raw | \
  python3 -m pymicro_wakeword --model 'okay_nabu'

About

Tensorflow-based wake word detection

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages