EchoPlay — voice-controlled music player
EchoPlay divides voice recognition between a microcontroller and a Raspberry Pi. The STM32 captures audio with DMA and computes short-time spectra. The Pi aggregates these features and selects one of two learned classifiers according to playback state. A genre utterance selects a playlist; subsequent utterances control playback through a Bluetooth speaker.
Watch on YouTube ↗STM32 microphone board
DMA captures audio. Overlapping windows and a real FFT produce spectra on the microcontroller.
Wi-Fi → Raspberry Pi
TCP carries the spectra to the Pi, where genre and command classifiers interpret the utterance.
Bluetooth speaker
VLC plays the selected playlist. Voice commands start, pause, and change tracks.
Capture on the board
The DFSDM microphone feeds a DMA buffer. The firmware consumes the two halves of the buffer as data becomes available, collecting 8,192 audio samples per utterance.
Transform short windows
A 256-sample Hamming window precedes a CMSIS real FFT. The firmware takes 128 magnitudes per window and uses a 128-sample overlap. It packs two half-spectra per network write and pads the final half-window with zeros.
Build one feature vector
Each capture supplies 8,192 float32 values over TCP. On the Pi, the receiver averages 64 rows of 128 bins, divides by 128 and appends a zero bin. The resulting 129 features are the input to either classifier.
Select the model by state
Genre mode recognizes Classic, Hits, Rock or Pop. Command mode recognizes Start, Pause, Next, Back and Choose. Choose returns to genre selection. The Pi controls VLC playback through the paired Bluetooth speaker.