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
Release history Release notifications | RSS feed
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.0.tar.gz
(7.1 MB
view details)
File details
Details for the file pyopen_wakeword-1.0.0.tar.gz.
File metadata
- Download URL: pyopen_wakeword-1.0.0.tar.gz
- Upload date:
- Size: 7.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d90f27caddd290bd957ab1042b7afd0f1c0cd24fc66567d4a4892b72b2f0a16
|
|
| MD5 |
031e02fd618a2b54ffb1734aa7346e60
|
|
| BLAKE2b-256 |
d400dbbf633446e8410007d9d0274de827095f63cfafa9967288ee60ec131194
|