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.1.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.1-py3-none-win_amd64.whl (1.9 MB view details)

Uploaded Python 3Windows x86-64

pymicro_wakeword-2.2.1-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.1-py3-none-manylinux_2_35_aarch64.whl (1.6 MB view details)

Uploaded Python 3manylinux: glibc 2.35+ ARM64

pymicro_wakeword-2.2.1-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.1.tar.gz.

File metadata

  • Download URL: pymicro_wakeword-2.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 b8bec035334cfcee75aa2874454e12d5f7be6c4f5d8a8ae1f636ce641ac27411
MD5 831e9cc073e10105af891118d25371a7
BLAKE2b-256 f67de6c0c28df10d6e8f73199dd1c2a92b332b741eb2cc8f95b2b218fa9a074e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymicro_wakeword-2.2.1.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.1-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for pymicro_wakeword-2.2.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 fcc44965ed506638a6e30e6c8e4b43b4d3b3bc7ff1795012ab9ce719eb3e2adb
MD5 6f93b7d52e5821733018dc1e8f677a5d
BLAKE2b-256 95e289a76fc15df4629beac2a3d15249b27743ec1b1b73d707d7b9036675bc52

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymicro_wakeword-2.2.1-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.1-py3-none-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for pymicro_wakeword-2.2.1-py3-none-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 e00629bd2e85321d30cb89670226a85316a39df50ebde4eedd5eb4c8bb94014d
MD5 7418589ce3cd278d64e99cdc2cefd455
BLAKE2b-256 e8c733c80411d374577b2eb81465d1aa53b41449adc333cb5b05341334e57792

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymicro_wakeword-2.2.1-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.1-py3-none-manylinux_2_35_aarch64.whl.

File metadata

File hashes

Hashes for pymicro_wakeword-2.2.1-py3-none-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 b82b7ffec689865b25a6bf2738efd9c6f4255b22cdab5f64f9d1a76084adf366
MD5 965671c1a93ccfb216cd9d17312d2580
BLAKE2b-256 1d5a0c9d60a1c8c2c2d7b9746e8b27b7980236da9980f77c62421937a779eda0

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymicro_wakeword-2.2.1-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.1-py3-none-macosx_15_0_universal2.whl.

File metadata

File hashes

Hashes for pymicro_wakeword-2.2.1-py3-none-macosx_15_0_universal2.whl
Algorithm Hash digest
SHA256 a65a5a7234cd5ccd3885656f99cca7230ff5a07e7f05900ad5568365be27134b
MD5 4bfb5ed3376452f7fe05e8775bb382ed
BLAKE2b-256 83cfb9bb645584b61d0a77d2e13e991e93117ddf22feea60c7c4db09aead4fdb

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymicro_wakeword-2.2.1-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