Music Sensor to control RGB downlights

Hi all,
Has anyone created an integration to make your RGB downlights act as a music visualizer (goes with the beat of the music)?
I’ve seen some projects with LED strips and ESP8266/Sonoff but nothing that can control WiFi RGB downlights.

If I can control the RGB colours of the downlight via home assistant - perhaps there is an add-on that can pick up the music source? Either directly from SONOS / SPOTIFY or externally using a microphone and RPi?

I’ve searched all over the place but can’t find a solution.