Voice keyword detection on an ESP32-S3
Train a tiny neural network to recognise “yes” and “no”, then run it on an ESP32-S3 with a microphone, with no internet connection needed.
What this proves to recruiters
- You can take machine learning onto real hardware.
- You understand audio features like MFCCs.
- You can work within tight memory limits.
Skills you will use
- TinyML
- MFCC features
- Quantisation
- Embedded C++
Parts list
You can buy the listed parts online here:
| Part | Qty | Approx. price | Shop |
|---|---|---|---|
| ESP32-S3 DevKit with PSRAM | 1 | ₹900 | Find on Amazon |
| INMP441 I²S MEMS microphone | 1 | ₹250 | Find on Amazon |
| Breadboard, 830 points | 1 | ₹90 | Find on Amazon |
| Jumper wire set (male-male and male-female) | 1 | ₹120 | Find on Amazon |
| LED pack, assorted colours | 1 | ₹60 | Find on Amazon |
| Total, about | ₹1,400 | ||
Prices are rough online prices in India and change with the seller. You may already have some parts, or find them in your college lab.
As an Amazon Associate I earn from qualifying purchases. Buying through these links costs you nothing extra and helps keep this site free.
Free software
- Edge Impulse (free for personal projects) or TensorFlow Lite for Microcontrollers
- Google Speech Commands dataset
Steps
- Collect or download one-second clips of “yes”, “no”, other words and background noise.
- Turn each clip into MFCC features, an image-like summary of the sound.
- Train a small convolutional network and check accuracy on clips it has not seen.
- Quantise it to 8-bit integers and check the accuracy drop is small.
- Deploy to the ESP32-S3 and light an LED for each word.
- Measure how long one inference takes and how much RAM the model uses.
Make it stand out
- Add your own wake word.
- Measure false triggers per hour with background noise.
Put it on your resume
Trained and quantised a keyword-spotting CNN (MFCC input) and deployed it on ESP32-S3 at [x]% accuracy and [y] ms per inference.
Replace each [x] with a number you measured. Real numbers make a line believable.
Keep going
This project fits stage 4, “Running DSP and AI on hardware”, of the Signal processing and edge AI roadmap. See also how freshers get into embedded AI and DSP engineer jobs.