Phonlet Wake listens for sounds, not for one memorised phrase. That is why a new wake word needs no new model.
hey nova
01 / TYPE
Write the phrase.
Any English words, names included. Unknown words get a predicted pronunciation.
HHEYNOWVAH
02 / PRONOUNCE
Hear it as sounds.
The phrase becomes phonemes, the units the model already knows.
10 / h0.1 / h
03 / CALIBRATE
Thresholds, calibrated.
Two thresholds set from the phrase’s predicted false alarms. No tuning by hand.
WAKE
04 / LISTEN
One model wakes.
The same 1 MB model listens for every phrase, offline, on the device.
+FOOTPRINT/02
Small enough for a microcontroller.
One int8 acoustic model of about 1 MB listens for every phrase, and a phrase is only data. The engine streams audio in 32 ms frames and keeps a small state between them, so the whole thing runs in about 1 MB of memory, on a laptop or on a microcontroller.
1import { WakeManager } from '/wake/capture.mjs';23// The en-1 model and a keyword file from the generator.4const wake = new WakeManager({5 wake: { model: '/wake/model.pwake', keywords: '/wake/keywords.json' },6 onDetection: (event) => console.log('Wake word:', event.keyword),7 onError: (error) => console.error(error),8});910// Asks for the microphone; detection runs in a worker.11export const start = () => wake.start();12export const stop = () => wake.close();
Runs on this page, unchanged.
wake.mjs
1import { Wake } from '@phonlet-ai/wake-node';23// A phrase is its pronunciations and two calibrated thresholds.4const heyKettle = {5 name: 'hey kettle',6 pronunciations: [[16, 13, 20, 11, 31, 3, 21]],7 threshold_loose: -1.21875,8 threshold_strict: -0.8740234375,9 endpoint: true,10};1112// One engine and one model for every phrase.13const wake = await Wake.create({14 model: 'en-1.pwake',15 keywords: [heyKettle],16 sensitivity: 0.5,17});1819// Push 16 kHz mono Int16 PCM in chunks of any size.20export function onAudio(pcm) {21 for (const hit of wake.process(pcm)) {22 console.log('Wake word:', hit.keyword);23 }24}2526// Release native memory when you are done.27export function close() {28 wake.close();29}
Phonlet Wake Node.js SDK.
wake.py
1from phonlet_wake import Wake23# A phrase is its pronunciations and two calibrated thresholds.4hey_kettle = {5 "name": "hey kettle",6 "pronunciations": [[16, 13, 20, 11, 31, 3, 21]],7 "threshold_loose": -1.21875,8 "threshold_strict": -0.8740234375,9 "endpoint": True,10}1112# One engine and one model for every phrase.13with Wake.create(model="en-1.pwake", keywords=[hey_kettle],14 sensitivity=0.5) as wake:15 # Push 16 kHz mono int16 NumPy arrays in chunks of any size.16 for pcm in audio_chunks(): # your microphone or file17 for hit in wake.process(pcm):18 print("Wake word:", hit.keyword)
Phonlet Wake Python SDK.
wake.c
1#include <stdio.h>2#include "phonlet_wake.h"34// A phrase is its pronunciations and two calibrated thresholds.5static const char *keywords =6 "[{\"name\": \"hey kettle\","7 " \"pronunciations\": [[16, 13, 20, 11, 31, 3, 21]],"8 " \"threshold_loose\": -1.21875,"9 " \"threshold_strict\": -0.8740234375,"10 " \"endpoint\": true}]";1112static pw_wake *wake;1314// One engine and one model for every phrase.15int start(void) {16 const double sensitivity[] = {0.5}; // one per phrase17 return phonlet_wake_init("en-1.pwake", keywords, sensitivity, 1,18 &wake);19}2021// Push 16 kHz mono int16 PCM in chunks of any size.22void on_audio(const int16_t *pcm, int32_t samples) {23 int32_t fired = -1;24 if (phonlet_wake_process(wake, pcm, samples, &fired) == PW_OK25 && fired >= 0)26 printf("Wake word: %d\n", fired);27}2829// Release the session when you are done.30void stop(void) { phonlet_wake_delete(wake); }
Public C API, phonlet_wake.h.
Wake.kt
1// A phrase is its pronunciations and two calibrated thresholds.2val keywords = """3 [{"name": "hey kettle",4 "pronunciations": [[16, 13, 20, 11, 31, 3, 21]],5 "threshold_loose": -1.21875,6 "threshold_strict": -0.8740234375,7 "endpoint": true}]8""".trimIndent()910// One engine and one model for every phrase.11val model = assets.open("en-1.pwake").readBytes()12val wake = Wake.create(model, keywords, 0.5) // one per phrase1314// Push 16 kHz mono PCM from AudioRecord in chunks of any size.15fun onAudio(pcm: ShortArray, samples: Int) {16 val fired = wake.process(pcm, 0, samples) // -1: nothing17 if (fired >= 0) Log.i("Wake", "Wake word: $fired")18}1920// Release native memory when you are done.21fun close() = wake.close()
Phonlet Wake for Android.
main.c
1#include <stdio.h>2#include "esp_wake.h"34// A phrase is its pronunciations and two calibrated thresholds.5static const char keywords[] =6 "[{\"name\": \"hey kettle\","7 " \"pronunciations\": [[16, 13, 20, 11, 31, 3, 21]],"8 " \"threshold_loose\": -1.21875,"9 " \"threshold_strict\": -0.8740234375,"10 " \"endpoint\": true}]";1112// The model, embedded in flash.13extern const uint8_t model[] asm("_binary_model_pwake_start");14extern const uint8_t model_end[] asm("_binary_model_pwake_end");1516static pw_wake *wake;1718void start(void) {19 if (esp_wake_begin(model, model_end - model, keywords, 0.5f,20 &wake) != PW_OK)21 printf("Wake init failed: %s\n", phonlet_wake_error());22}2324// Push 16 kHz mono int16 PCM from the I2S microphone.25void on_audio(const int16_t *pcm, int32_t samples) {26 int32_t fired;27 esp_wake_feed(wake, pcm, samples, &fired);28 if (fired >= 0)29 printf("Wake word: %s\n", esp_wake_keyword_name(fired));30}
ESP-IDF component.
+ESP32-S3/04
Wakes on a chip, not a server.
The same model and the same keyword file run on the ESP32-S3. The ESP-IDF component works on the chip’s vector unit and leaves the second core to your product. Tested on an ESP32-S3-N16R8 with an INMP441 microphone: phrases spoken in the room, detected by name.
openWakeWord and microWakeWord are good open-source wake-word engines, and both train a small model for each word. Phonlet Wake skips the training run: one model hears the sounds of English, so a new phrase is only its pronunciations and two thresholds.
TYPED, NOT TRAINED
Phonlet Wake
A new wake word
Type it. Thresholds are calibrated from text in seconds, in your browser or on the command line.
Models
One 1 MB model for every phrase; it listens for several phrases at once.
Runs on
Linux, Windows, browsers (WebAssembly), Android and ESP32-S3.
Licence
PolyForm Noncommercial 1.0.0; commercial licence on request.
No licence keys. No online checks. The engine never phones home.
+QUESTIONS/07
Curious? Good.
01How can a wake word work without recordings?
The model hears the sounds of English speech, not one fixed phrase. A wake word is a list of pronunciations plus two calibrated thresholds, so adding one never changes the model.
02What about words that are not in the dictionary?
Names and made-up words get a pronunciation predicted from their spelling, marked “Predicted” in the lab. You can also write the sounds yourself, for example zorblax=Z AO R B L AE K S.
03How accurate is it?
Every phrase is calibrated to a false-alarm target, from about 10 per hour of speech at full sensitivity to 0.1, and reports how reliable that calibration is. Accuracy depends on the phrase and the room, so try yours above. We publish no comparative claims before a benchmark with its method.
04How is it different from openWakeWord and microWakeWord?
Both train a small model for each wake word from synthetic speech: openWakeWord runs on Linux-class CPUs, microWakeWord on the ESP32-S3. Phonlet Wake needs no training run. One model hears the sounds of English, so a new phrase is ready in seconds, many phrases share one 1 MB model, and the same file runs from a browser to an ESP32-S3.
05Does my audio leave the device?
No. The engine runs where the microphone is. On this page it runs in a WebAssembly worker in your tab: nothing is uploaded, stored or recorded.
06What makes a good wake word?
Two to four syllables with sounds that are rare in everyday speech. “Hey barista” works well; “the” never will. The generator warns when a phrase is too short, too long or too common.