Skip to main content

A TensorFlow based wake word detection training framework using synthetic sample generation suitable for certain microcontrollers.

Project description

Python microWakeWord

Python library for microWakeWord.

Uses a pre-compiled Tensorflow Lite library.

Install

pip3 install pymicro-wakeword

Usage

from pymicro_wakeword import MicroWakeWord, MicroWakeWordFeatures, Model

mww = MicroWakeWord.from_builtin(Model.OKAY_NABU)
mww_features = MicroWakeWordFeatures()

# Audio must be 16-bit mono at 16Khz
while audio := get_10ms_of_audio():
    assert len(audio) == 160 * 2  # 160 samples
    for features in mww_features.process_streaming(audio):
        if mww.process_streaming(features):
            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'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pymicro_wakeword-2.2.0.tar.gz (2.1 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pymicro_wakeword-2.2.0-py3-none-win_amd64.whl (1.9 MB view details)

Uploaded Python 3Windows x86-64

pymicro_wakeword-2.2.0-py3-none-manylinux_2_35_x86_64.whl (2.1 MB view details)

Uploaded Python 3manylinux: glibc 2.35+ x86-64

pymicro_wakeword-2.2.0-py3-none-manylinux_2_35_aarch64.whl (1.6 MB view details)

Uploaded Python 3manylinux: glibc 2.35+ ARM64

pymicro_wakeword-2.2.0-py3-none-macosx_15_0_universal2.whl (1.7 MB view details)

Uploaded Python 3macOS 15.0+ universal2 (ARM64, x86-64)

File details

Details for the file pymicro_wakeword-2.2.0.tar.gz.

File metadata

  • Download URL: pymicro_wakeword-2.2.0.tar.gz
  • Upload date:
  • Size: 2.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pymicro_wakeword-2.2.0.tar.gz
Algorithm Hash digest
SHA256 a28e14a2154ff4d59cdb55173f316978a81af801b03e395519cbe1ba21123f30
MD5 053a62cad477987e60a81b48dc76f1e7
BLAKE2b-256 3a09fd3e6deea98f4a6a6b44ffc7cbcc6330b08e5c17f5970cd35b5bb11df3ab

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymicro_wakeword-2.2.0.tar.gz:

Publisher: publish.yml on OHF-Voice/pymicro-wakeword

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pymicro_wakeword-2.2.0-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for pymicro_wakeword-2.2.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 f75eb5cd5551097de0661e059df295389ce089464d910bc9b87765837a9fd478
MD5 3c3830870a15391bc2dd22a2ee0283d6
BLAKE2b-256 29f39b0fc152103c545676a9d6fea3270867f395eb4929d8c2a22426a0c558b1

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymicro_wakeword-2.2.0-py3-none-win_amd64.whl:

Publisher: publish.yml on OHF-Voice/pymicro-wakeword

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pymicro_wakeword-2.2.0-py3-none-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for pymicro_wakeword-2.2.0-py3-none-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 d33f730f5d28cf346e7540ea1951ce07bdb60c9d69e6b9ae632498d8cea02760
MD5 3ae9c2578e09e7639d5718b060628a5c
BLAKE2b-256 e7512f4236e158d562e4ecd85c2c8da7f06c3f1e620d0a8c4d67f207126b4723

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymicro_wakeword-2.2.0-py3-none-manylinux_2_35_x86_64.whl:

Publisher: publish.yml on OHF-Voice/pymicro-wakeword

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pymicro_wakeword-2.2.0-py3-none-manylinux_2_35_aarch64.whl.

File metadata

File hashes

Hashes for pymicro_wakeword-2.2.0-py3-none-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 3e0d9ce1baf8911c0ed6e3511a980de3fd6bb208b124f36fb43dbcf247fe12ce
MD5 a44ada4d29180fb94522694e30829edb
BLAKE2b-256 5fd6b66bf6e5df0fe086e9affe198cdbf80b022014d4052361024bf9eef70676

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymicro_wakeword-2.2.0-py3-none-manylinux_2_35_aarch64.whl:

Publisher: publish.yml on OHF-Voice/pymicro-wakeword

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pymicro_wakeword-2.2.0-py3-none-macosx_15_0_universal2.whl.

File metadata

File hashes

Hashes for pymicro_wakeword-2.2.0-py3-none-macosx_15_0_universal2.whl
Algorithm Hash digest
SHA256 949fcc3e706766b729c14707115517356b3eafe1a6c4023aeb45535ee9972749
MD5 6502933cb4ae9f92dba6edc2d60252b8
BLAKE2b-256 1713d244b87fa0e54547333b9a22ec28ebb0736de2545458b4639f7fbc1aba54

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymicro_wakeword-2.2.0-py3-none-macosx_15_0_universal2.whl:

Publisher: publish.yml on OHF-Voice/pymicro-wakeword

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page