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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3manylinux: glibc 2.35+ ARM64

pymicro_wakeword-2.1.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.1.0.tar.gz.

File metadata

  • Download URL: pymicro_wakeword-2.1.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.1.0.tar.gz
Algorithm Hash digest
SHA256 31144af89257c37cd3923dccf814c6774aadb37b3cf5a548fb466cd6ae247dc4
MD5 46c95f6fe520596fe648afedb39a2bcb
BLAKE2b-256 671b2afe5abca38c6040c68ccd6f07ac264b793c00c8e91fb4cb838c30c3a1e4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pymicro_wakeword-2.1.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 41a1772c1095e5be58a3d002e016736f0376e62751cd46666e5e0998dc3dacd9
MD5 6be6169abb58bf5eac6a9cfb2ae1d5b3
BLAKE2b-256 7a7fbb31c81b376bf68b9846a76642dd6a67c1991b1f8263843f40e710d29ee3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pymicro_wakeword-2.1.0-py3-none-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 55994f8503782d7b24ae7d05ce5e638aedd2d4c577e8a38878cc894a0db0caeb
MD5 f4264364a803ac8d0e8904b86bafb845
BLAKE2b-256 e4431a52bc9b00c7a2faf473e91d3c401cd0dc77434a40f7f3c8df342bf9b096

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pymicro_wakeword-2.1.0-py3-none-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 5ee7948e040abe8ba3e76ed5e647b8efe34637b7b486c8084d2183588f940bc6
MD5 31bcdf021315d34acbb44b3179b59802
BLAKE2b-256 1e36a1aff63937d0a25ebbe4dfafb8c7d7f0fce09e56b4c58979ef427493b629

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pymicro_wakeword-2.1.0-py3-none-macosx_15_0_universal2.whl
Algorithm Hash digest
SHA256 500e7e19c798802b15608d3214576ec92d5f269a6aec63f51c1bfe9d1ff9944e
MD5 8cffc2c96a78778d7fcb8952904144dc
BLAKE2b-256 92e4d08a33c76c8c9ebc860b866b8fbd9c356b59588a234686f3a4946d93ad55

See more details on using hashes here.

Provenance

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