Voice interfaces traditionally depended on powerful processors or cloud services.
TinyML changes this by enabling small microcontrollers and DSP-class devices to listen continuously for:
- wake words,
- short commands,
- acoustic events.
The key is not simply running a neural network.
An always-on voice system must minimize energy during the long periods when nothing important is happening.
Fundamentals and Technology Overview
What Is Keyword Spotting?
Keyword spotting identifies a small vocabulary of words or phrases.
Examples include:
- "start",
- "stop",
- wake phrase.
It is much lighter than full speech-to-text.
Why TinyML Fits Keyword Detection
Keyword models can be compact.
MLPerf Tiny's keyword spotting benchmark uses small convolutional models designed for resource-constrained hardware.
Always-On Architecture
A typical pipeline is:
Microphone → Audio Buffer → Feature Extraction → TinyML Model → Wake Event
Microphone
Common options include:
- analog microphone + ADC,
- PDM microphone,
- I2S digital microphone.
Audio Sampling
Voice systems commonly sample at rates sufficient for speech bandwidth.
Higher sample rates increase:
- memory,
- processing,
- power.
Ring Buffer
A ring buffer stores the latest audio window continuously.
The model evaluates overlapping windows.
Feature Extraction
Raw audio is often converted into compact features such as:
- FFT spectrum,
- mel filterbank,
- MFCC.
This reduces the workload for the neural network.
DSP Role
DSP instructions accelerate:
- filtering,
- FFT,
- MFCC.
This is why audio TinyML often benefits from:
- Cortex-M DSP extensions,
- dedicated DSP cores.
Neural Network
Common architectures include:
- DS-CNN,
- 1D depthwise CNN,
- small convolutional networks.
Streaming Wake Word
MLPerf Tiny added a streaming wake-word benchmark because isolated inference does not capture real always-on behavior.
The streaming test measures:
- continuous audio handling,
- detection timing,
- duty cycle,
- power.
Why Duty Cycle Matters
An efficient always-on system spends most of its time:
- idle,
- waiting,
- sleeping.
A low active duty cycle means the processor has time to return to low-power states.
Idle Power
Always-on voice products may spend more energy listening than running the model.
Therefore measure:
- idle listening power,
- active inference energy.
Event-Driven Architecture
The keyword model can wake:
- application CPU,
- Wi-Fi,
- display,
- larger speech processor.
This avoids powering the entire system continuously.
Two-Stage Voice Architecture
Stage 1
Ultra-low-power wake-word detector.
Stage 2
Larger speech-recognition system.
This architecture is common because it minimizes average energy.
Performance, Memory, and Data Processing
On-Device Privacy
TinyML lets the device determine whether the wake word occurred without streaming all ambient audio to the cloud.
Offline Operation
Basic voice commands can work without internet access.
CEVA Example
TensorFlow documented CEVA's use of TensorFlow Lite for Microcontrollers to implement:
- always-on wake-word detection,
- embedded speech commands
on a low-power DSP-based platform.
Noise Robustness
Real environments contain:
- music,
- traffic,
- conversation,
- machine noise.
Training data should include realistic background noise.
Accent Diversity
Voice models should include speakers with:
- different accents,
- pitch,
- speaking styles.
MLPerf's benchmark uses Google's Speech Commands dataset with diverse utterances.
False Acceptance
A false acceptance occurs when the system detects the wake word incorrectly.
Too many false triggers waste:
- battery,
- user trust.
False Rejection
A false rejection occurs when the actual keyword is missed.
Good systems balance both.
Detection Window
Streaming systems must detect the word within a limited time after it occurs.
MLPerf's streaming methodology measures detection timing directly.
Memory Requirements
TinyML voice models need memory for:
- audio buffer,
- feature buffer,
- model weights,
- activations.
INT8 Quantization
INT8 is widely used because it reduces:
- model size,
- RAM,
- compute cost.
CMSIS-NN
On Cortex-M, optimized kernels such as CMSIS-NN can accelerate the classifier.
DMA
DMA can stream microphone samples into memory while the CPU works on the previous block.
Double Buffering
Buffer A:
- receives audio.
Buffer B:
- undergoes feature extraction.
Then the buffers swap.
Implementation, Testing, and Optimization
Low-Power States
Between active processing windows, the MCU can enter:
- sleep,
- low-power idle.
Hardware Accelerator
A small NPU or DSP can reduce energy further when inference runs frequently.
Keyword Detection vs Speech Recognition
Keyword spotting recognizes a small set of phrases.
Full speech recognition converts continuous speech to text and requires much more compute and memory.
Local Command Recognition
TinyML can support a small vocabulary such as:
- start,
- stop,
- left,
- right.
This is useful in:
- appliances,
- industrial tools,
- wearables.
Industrial Voice Interfaces
Local keyword recognition can be useful where:
- gloves make buttons inconvenient,
- network access is unreliable.
Safety
Voice recognition should not be the only mechanism for safety-critical commands.
Use deterministic confirmation for dangerous operations.
Common Mistake: Benchmarking Only Active Inference
Always-on products spend most of their time listening.
Measure full duty-cycle energy.
Common Mistake: Clean Training Audio
Real deployment noise must be included.
Common Mistake: Large Vocabulary
A larger vocabulary increases:
- model complexity,
- false confusion.
Common Mistake: No Confidence Threshold Tuning
Thresholds strongly influence false triggers and missed detections.
Development Workflow
- Define vocabulary.
- Collect real audio.
- Add background noise.
- Extract features.
- Train small model.
- Quantize to INT8.
- Deploy to MCU.
- Measure streaming latency.
- Measure duty cycle and energy.
- Tune false-accept/reject thresholds.
Conclusion
TinyML makes always-on voice practical because small models can run continuously near the microphone using very little power.
The strongest architecture combines:
low-power audio capture + efficient DSP features + compact neural network + aggressive sleep states.
The correct benchmark is not just one inference time.
It is the complete always-on behavior:
idle power + duty cycle + detection accuracy + response latency.