Phonlet Wake on ESP32-S3.
The ESP-IDF component: measured CPU, memory and delay, and how to build it in.
Phonlet Wake runs on ESP32-S3. The engine ships as an ESP-IDF component with its own code for the chip’s vector instructions, and a demo firmware streams an I2S microphone through it. Any phrase you type becomes a wake word on the device, with no recordings and no per-word training.
# Phonlet Wake on ESP32-S3 (measured 2026-10-31)board ESP32-S3-N16R8, 240 MHz, 8 MB octal PSRAMframework ESP-IDF 5.4 componentaudio I2S MEMS microphone, 16 kHz monomodel en-1, int8 weights, ~1 MBmemory 75 KB internal RAM + 934 KB PSRAMcpu 19% of one core (6.2 ms per 32 ms frame)delay +96 ms by default, configurable 0-224 mskeywords any phrase, enrolled from textExample
Embed the model in flash, describe your phrases as JSON (each phrase’s pronunciations and two calibrated thresholds), start the engine once, and pass every I2S read to it:
#include <stdio.h>#include "esp_wake.h" // A phrase is its pronunciations and two calibrated thresholds.static const char keywords[] = "[{\"name\": \"hey kettle\"," " \"pronunciations\": [[16, 13, 20, 11, 31, 3, 21]]," " \"threshold_loose\": -1.21875," " \"threshold_strict\": -0.8740234375," " \"endpoint\": true}]"; // The model, embedded in flash.extern const uint8_t model[] asm("_binary_model_pwake_start");extern const uint8_t model_end[] asm("_binary_model_pwake_end"); static pw_wake *wake; void start(void) { if (esp_wake_begin(model, model_end - model, keywords, 0.5f, &wake) != PW_OK) printf("Wake init failed: %s\n", phonlet_wake_error());} // Push 16 kHz mono int16 PCM from the I2S microphone.void on_audio(const int16_t *pcm, int32_t samples) { int32_t fired; esp_wake_feed(wake, pcm, samples, &fired); if (fired >= 0) printf("Wake word: %s\n", esp_wake_keyword_name(fired));}Measured on hardware
An ESP32-S3-N16R8 at 240 MHz with 8 MB of octal PSRAM, an INMP441 microphone, ESP-IDF 5.4, and six phrases listening at once (31 October 2026). In the first live test on this board, each of the six phrases was detected when spoken.
The engine works through a few 32 ms frames at a time to save memory traffic. One configuration setting trades CPU for response time; it changes when a detection is reported, not which phrases are detected:
| Setting | Added delay | CPU (one core) |
|---|---|---|
| Fastest response | 0 ms | 46% |
| Balanced | 32 ms | 28% |
| Default | 96 ms | 19% |
| Lowest CPU | 224 ms | 16% |
The second core stays free for your application, Wi-Fi, or audio playback.
What your board needs
- An ESP32-S3 with PSRAM. The model’s weights take about 1 MB: 75 KB in internal RAM, the rest in PSRAM.
- An I2S MEMS microphone, read at 16 kHz.
- One mono audio stream. Microphone arrays, voice activity detection, and noise suppression stay in your own audio pipeline, in front of the engine.
Get the component
The ESP32-S3 SDK, the en-1 model and the threshold generator are in release v0.1.0, free for non-commercial use. For a product you sell, get a commercial licence.
git clone --depth 1 --branch v0.1.0 https://github.com/phonlet-ai/wake.gitcurl -L -o main/model.pwake https://github.com/phonlet-ai/wake/releases/download/v0.1.0/phonlet-wake-en-1.pwake# In your project CMakeLists.txt, before project():# set(EXTRA_COMPONENT_DIRS path/to/wake/sdk/esp32/wake)The component builds the engine from the repository checkout, so clone it and point EXTRA_COMPONENT_DIRS at sdk/esp32/wake. Embed the model as model.pwake (EMBED_FILES in main/CMakeLists.txt) and your keyword file with EMBED_TXTFILES; demos/esp32 in the repository is a complete project.