Skip to content

Phonlet Wake 0.1.0

Latest

Choose a tag to compare

@kiwina kiwina released this 24 Nov 12:21
· 2 commits to main since this release

The first public release of Phonlet Wake: on-device wake-word detection for any phrase you can type. One English model (en-1, about 1 MB) listens for several phrases at once, offline, with a sensitivity for each. A phrase is data, made from text in seconds by the threshold generator: no recordings, no training, no cloud.

Try it in the browser: https://phonletai.com/#lab · Make a keyword file: https://phonletai.com/generator/ · Docs: https://phonletai.com/docs/ · For AI coding agents: https://phonletai.com/agents.md

Get started

  1. Make a keyword file: type your phrases at https://phonletai.com/generator/, or run the generator below:
    chmod +x wake-threshold-0.2.0-x86_64-unknown-linux-musl
    ./wake-threshold-0.2.0-x86_64-unknown-linux-musl "hey nova" "okay kettle" --out keywords.json
  2. Install the SDK for your platform (table below), for example Python:
    pip install https://github.com/phonlet-ai/wake/releases/download/v0.1.0/phonlet_wake-0.1.0-py3-none-linux_x86_64.whl \
                https://github.com/phonlet-ai/wake/releases/download/v0.1.0/phonlet_wake_model_en-0.1.0-py3-none-any.whl
  3. Feed 16 kHz mono 16-bit PCM and read the detections. Code for every platform: https://phonletai.com/docs/

Files

File What it is
phonlet-wake-en-1.pwake The en-1 model (1,013,825 bytes, SHA-256 8be3687d…4af8), for every SDK
phonlet-wake-en-1-keywords.json Five English phrases as a keyword file (hey phonlet, ok phonlet, hey assistant, assistant, hey wake)
wake-threshold-0.2.0-x86_64-unknown-linux-musl The threshold generator: phrases in, keyword file out (static Linux x64 binary, no dependencies)
wake-threshold-0.2.0.wasm The same generator as WebAssembly, for a page or service with no backend
wake-native-0.1.0-linux-x64-gnu.tar.gz C / C++ on Linux x64: phonlet_wake.h, libkws_engine.so, a CMake package and a command-line detector
wake-native-0.1.0-windows-x64.zip C / C++ and .NET on Windows x64: kws_engine.dll (no runtime install needed), import library, header
phonlet_wake-0.1.0-py3-none-linux_x86_64.whl, phonlet_wake_model_en-0.1.0-py3-none-any.whl Python SDK (CPython 3.11+, Linux x64) and the model package
phonlet-ai-wake-node-0.1.0.tgz, phonlet-ai-wake-node-linux-x64-gnu-0.1.0.tgz, phonlet-ai-wake-model-en-0.1.0.tgz Node.js SDK, its Linux x64 native add-on and the model package: npm install the three together
phonlet-ai-wake-web-0.1.0.tgz, phonlet-ai-wake-react-0.1.0.tgz Browser SDK (WebAssembly in a worker, scalar and SIMD) and the React hook
phonlet-wake-android-0.1.0.aar Android library (arm64-v8a, armeabi-v7a, x86_64)
wake-demo-{native,nodejs,python,web}-0.1.0.tar.gz Runnable demos
SHA256SUMS Checksums of every file: sha256sum -c SHA256SUMS

.NET: use kws_engine.dll from the Windows zip with sdk/dotnet. ESP32-S3: add the ESP-IDF component in sdk/esp32/wake and embed the model and your keyword file. macOS and other targets build from source.

The Linux x64 native libraries (C, Python, Node.js) need glibc 2.32 and the libstdc++ of GCC 11 or newer (Ubuntu 22.04, Debian 12, RHEL 9 or later). The generator binary is static and runs on any x64 Linux.

Footprint

  • Memory while listening: about 1.05 MB (C API, Linux x64, four phrases); each extra phrase adds about 1.5 KB.
  • CPU: 0.7% of one laptop core natively (AMD Ryzen 7 7735HS), about 8% in a browser tab (WebAssembly), 19% of one 240 MHz ESP32-S3 core.

Licence

PolyForm Noncommercial 1.0.0: free for personal use, study, research with no commercial aim, charities, schools, public research and government. A product you sell, a device you ship or a service your company runs needs a commercial licence: contact@phonletai.com. Third-party components and training data are listed in THIRD_PARTY_NOTICES.md.