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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3manylinux: glibc 2.35+ x86-64

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

Uploaded Python 3manylinux: glibc 2.35+ ARM64

pyopen_wakeword-1.0.1-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.0.1.tar.gz.

File metadata

  • Download URL: pyopen_wakeword-1.0.1.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.0.1.tar.gz
Algorithm Hash digest
SHA256 f09b0ed2ecf7238596de08f580bad321fb18e6ef47270a19cfe2bac61d555533
MD5 954e7ce6de833e6f3e6b79f92502df1f
BLAKE2b-256 58bb2134b37dbcb3dcf35f3520b8bd23b513293756d7aa67f3316574e9cc2eb7

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyopen_wakeword-1.0.1.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.0.1-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for pyopen_wakeword-1.0.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 815ffd9eefea86e77c97fe0fcbf6ee9a849c69ba424fbcf5edb44941f7709d86
MD5 e05563fb4baab1fa4642ad2a57bdf686
BLAKE2b-256 dbc0238e6f444cbef4715eeabc41532f1777372a00d580b16efcdedd1a4d028e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyopen_wakeword-1.0.1-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.0.1-py3-none-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for pyopen_wakeword-1.0.1-py3-none-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 b7586a8a41fc781b89b6e0da89d206984cfb4f4f4ba010e1468ce83657cbb8f6
MD5 85e7cb094bab6cb69fdae9507cd8040e
BLAKE2b-256 30e384efdbd95078a36d55950bfc896ec897f99b4e76d85e3754423f4575a597

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyopen_wakeword-1.0.1-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.0.1-py3-none-manylinux_2_35_aarch64.whl.

File metadata

File hashes

Hashes for pyopen_wakeword-1.0.1-py3-none-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 20208cbab6d273eea9d814c4836680049f59c7270229b333a5c7f15140c3d20a
MD5 06816a6be690bbb4fe3957e89f8502bd
BLAKE2b-256 d95216f68d64f6c0f05c52f96407f150d235443982b84087fa6188ec98410bdb

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyopen_wakeword-1.0.1-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.0.1-py3-none-macosx_15_0_universal2.whl.

File metadata

File hashes

Hashes for pyopen_wakeword-1.0.1-py3-none-macosx_15_0_universal2.whl
Algorithm Hash digest
SHA256 cd9b84929dbecfc2a6dbe2d57c3d2d8b3c7b18746fa086444bfdb51ecbea06e5
MD5 ae08b5ad28694c4e0fec26e2d2f972f8
BLAKE2b-256 7165af78ab6ad2127b9febd5d59dd19da712eb714aad6f141208ac71b45939f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyopen_wakeword-1.0.1-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