How adityabala30/esp32-edgeai-sound-classifier works
This repository contains three ESP32 sketches supporting a TinyML sound-classification workflow: microphone testing, WAV recording for model training, and on-device clap classification with serial and OLED output. The README documents the stages and their relationships, but no source excerpts were provided, so the graph reflects documented behavior rather than verified call structure.
Main entry points: sound_classifier.ino Confidence threshold · ESP32_recorder.ino WAV recorder · INMP441_test_ESP_I2S.ino I2S microphone test
Components 12
Audio capture
- I2S microphone test
INMP441_test_ESP_I2S/INMP441_test_ESP_I2S.ino - WAV recorder
ESP32_recorder/ESP32_recorder.ino
Model preparation
- WAV recordings
- Edge Impulse training
On-device classification
- Exported model library
- Classifier sketch
sound_classifier/sound_classifier.ino - Audio window
sound_classifier/sound_classifier.ino - Model inference
sound_classifier/sound_classifier.ino - Confidence threshold
sound_classifier/sound_classifier.ino - Serial results
sound_classifier/sound_classifier.ino - OLED result display
sound_classifier/sound_classifier.ino
Other components
- INMP441 microphone
Connections 12
- INMP441 microphone → I2S microphone test: tests connection
README.md - INMP441 microphone → WAV recorder: captures audio
README.md - WAV recorder → WAV recordings: saves recordings
README.md - WAV recordings → Edge Impulse training: trains model
README.md - Edge Impulse training → Exported model library: exports library
README.md - INMP441 microphone → Classifier sketch: captures via I2S
README.md - Classifier sketch → Audio window: collects
README.md - Audio window → Model inference: processes
README.md - Exported model library → Model inference: provides model
README.md - Model inference → Confidence threshold: scores classes
README.md - Confidence threshold → Serial results: reports result
README.md - Confidence threshold → OLED result display: selects display text
README.md