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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3manylinux: glibc 2.35+ ARM64

pymicro_wakeword-2.0.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.0.0.tar.gz.

File metadata

  • Download URL: pymicro_wakeword-2.0.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.0.0.tar.gz
Algorithm Hash digest
SHA256 5cb5f425de3f55b904e81fd0a14d62ce76a9abb8c41486520deffea63bcb579e
MD5 edcd70aec8ba706d7cf9759ec42affea
BLAKE2b-256 569590820d849b7c384fd16dd3fc47820725a2d7a46b6697baa1dcd9436ba275

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pymicro_wakeword-2.0.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 72c2f421b205c91ebe125e786d32075f0598b73d4d098f71a4a73efea55b2f7c
MD5 1001f29674f0791adabd71868b9a7030
BLAKE2b-256 31f473cc13c3d5d22656c1a0d586c2f78b14c895a0167e8137b159531bab6c1f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pymicro_wakeword-2.0.0-py3-none-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 850916c6a3094a644e136fc55928a416b3d69d850ea383a1b3877c416fa17a48
MD5 c12b9c0abe0973f1b4129ab18f6ec669
BLAKE2b-256 0e7981b1702951ba7aff35d027e1fa9b353d2687d333ca37b5304bdf3e57b0c7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pymicro_wakeword-2.0.0-py3-none-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 a8133e68484271b4a7f73ef1aba5fcb7c3771bb3667fb0a7e98f1527fe80dfa9
MD5 30fa3c0f579a482b9c46e1904ca43f2c
BLAKE2b-256 3841d2dd7b9eb4ea08ba4a97e8659c6475239ef19299340ab1f053978f457f5f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pymicro_wakeword-2.0.0-py3-none-macosx_15_0_universal2.whl
Algorithm Hash digest
SHA256 47aebab1b01c9d5f862e9bde91727ffa4f77c6336c727e6e6969bb76e3f2629e
MD5 43d2f7550ceefc616e23d7e4aa0085b0
BLAKE2b-256 b5f8be54b3df551022a8a895f699b0e11d2c5abc5378b76e12b693659680b15d

See more details on using hashes here.

Provenance

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