I thought it might be fun to use DSPi and make it into a
Sendspin target, i.e. turn it into a network audio streamer.
Sendspin is the recent free and open standard by the
Open Home Foundation for whole-home, synchronized audio streaming, used by e.g.
Music Assistant. Combining DSPi with it would make that into an interesting and very powerful option for audio streaming.
A few days ago I paired up an ESP32-S3 (running
ESPHome) with DSPi to play around with this. Using ESPHome provides two benefits here:
- It already has Sendspin support, and can stream audio received over the Sendspin protocol over WiFi, out over I2S (to DSPi)
- Home Assistant integration along with it for free.
To control DSPi from ESPHome, I also connected UART/TTL between the two boards, and built an ESPHome component (
esphome-dspi) to communicate with DSPi using its excellent, well-documented (serial) protocol. That component only does the bare minimum now (volume control, mute, input select), but can easily be extended and used for any use case.
The actual Sendspin network audio streamer I called
dspin, and is basically an ESPHome YAML configuration making use of esphome-dspi and standard ESPHome functionality. The only ESP32-S3 with PSRAM (needed for Sendspin audio buffering) I had lying around was a
ESP32-S3-Box-3 which also came with an LCD/Touch screen, so besides a headless configuration (only as a Sendspin network target) I also built simple touchscreen UI. Artwork display, artist/track info and basic play controls turned out to be easy to do.
When
@Weeb Labs released DSPi a 1.1.6 beta with spectrum analyzer support a few days ago I thought that would be fun to play with and make work on the little screen as well. So the third display page now has a live spectrum analyzer bar graph running surprisingly smoothly. Not because this feature made sense yet at this point - dspin supports little else yet of DSPi's functionality - but... why not!
Sendspin streaming from the ESP32 to the DSPi has worked remarkably stable the last few days, and overall this little project has been very quick and smooth. The excellent spec files and documentation inside DSPi have also helped (and my little robot intern) a lot with that. This has been fun.
Anyway, the ESP32-S3-Box-3 is not ideal hardware for this, and quite expensive and probably not that common. I just happened to have one. I'll order and play around with some alternate hardware options soon, and expand its features a bit.