Skip to main content

An open-source audio wake word (or phrase) detection framework with a focus on performance and simplicity.

Project description

Python openWakeWord

Alternative Python library for openWakeWord.

Uses a pre-compiled Tensorflow Lite library.

Install

pip3 install pyopen-wakeword

Usage

from pyopen_wakeword import OpenWakeWord, OpenWakeWordFeatures, Model

oww = OpenWakeWord.from_builtin(Model.OKAY_NABU)
oww_features = OpenWakeWordFeatures()

# Audio must be 16-bit mono at 16Khz
while audio := get_10ms_of_audio():
    assert len(audio) == 160 * 2  # 160 samples
    for features in oww_features.process_streaming(audio):
        for prob in oww.process_streaming(features):
            if prob > 0.5:
                print("Detected!")

Command-Line

WAVE files

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

Live

arecord -r 16000 -c 1 -f S16_LE -t raw | \
  python3 -m pyopen_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

pyopen_wakeword-1.1.0.tar.gz (7.1 MB view details)

Uploaded Source

Built Distributions

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

pyopen_wakeword-1.1.0-py3-none-win_amd64.whl (7.0 MB view details)

Uploaded Python 3Windows x86-64

pyopen_wakeword-1.1.0-py3-none-manylinux_2_35_x86_64.whl (7.1 MB view details)

Uploaded Python 3manylinux: glibc 2.35+ x86-64

pyopen_wakeword-1.1.0-py3-none-manylinux_2_35_aarch64.whl (6.6 MB view details)

Uploaded Python 3manylinux: glibc 2.35+ ARM64

pyopen_wakeword-1.1.0-py3-none-macosx_15_0_universal2.whl (6.7 MB view details)

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

File details

Details for the file pyopen_wakeword-1.1.0.tar.gz.

File metadata

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

File hashes

Hashes for pyopen_wakeword-1.1.0.tar.gz
Algorithm Hash digest
SHA256 080c0bda64d9aa4dd254413ba6fa417bd090c566c0610ebbb571d81f27851602
MD5 8626becb4b1180d56aa8690532c6ef2a
BLAKE2b-256 523e37c8601f87173acfed77a3133c69eb350d2563f41174d70129ff51e6b297

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyopen_wakeword-1.1.0.tar.gz:

Publisher: publish.yml on rhasspy/pyopen-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 pyopen_wakeword-1.1.0-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for pyopen_wakeword-1.1.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 93c4ba03b434fb4130282a254000e58e29cf3dc49b610ce7e998abc785a27a90
MD5 8d557a44620e9f4451963376415b1522
BLAKE2b-256 69d1d788a1edf7c200b73c3a8b0cc73ebd8b1013e352222fb8521415dbb7e2c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyopen_wakeword-1.1.0-py3-none-win_amd64.whl:

Publisher: publish.yml on rhasspy/pyopen-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 pyopen_wakeword-1.1.0-py3-none-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for pyopen_wakeword-1.1.0-py3-none-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 754347a59de2b3d378a0cbc404a8b41164036e74fa1c185f88056974e4bfb6b4
MD5 f8479743d89f26c81d962699525ee03a
BLAKE2b-256 f0d7228edc51d9b35b9d46cf685509e79144262ffd8756a49243a27da3302059

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyopen_wakeword-1.1.0-py3-none-manylinux_2_35_x86_64.whl:

Publisher: publish.yml on rhasspy/pyopen-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 pyopen_wakeword-1.1.0-py3-none-manylinux_2_35_aarch64.whl.

File metadata

File hashes

Hashes for pyopen_wakeword-1.1.0-py3-none-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 32a865123ebcc270ce6408b675456c3aecd8a6f0ddfe6311680616c9c01f990a
MD5 553cbe1f0a688d8a1e22b31ae40994ff
BLAKE2b-256 8c74746a3b3f81e2c1c69fc736c9e630f983797e413f7f58c1eac59d66d6687d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyopen_wakeword-1.1.0-py3-none-manylinux_2_35_aarch64.whl:

Publisher: publish.yml on rhasspy/pyopen-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 pyopen_wakeword-1.1.0-py3-none-macosx_15_0_universal2.whl.

File metadata

File hashes

Hashes for pyopen_wakeword-1.1.0-py3-none-macosx_15_0_universal2.whl
Algorithm Hash digest
SHA256 81f31adc31ba9e85b5c83f1b16f571f630ad867710f111443ecf42523f73fe08
MD5 42cd2172083a3e07f00fe45920d15b7e
BLAKE2b-256 1f0a45c9c7c1405f13e632d694ed1fac48e8c9f1421eed930a8cb1afc5eda17e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyopen_wakeword-1.1.0-py3-none-macosx_15_0_universal2.whl:

Publisher: publish.yml on rhasspy/pyopen-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