
How I Built Swarm DJ: A Multi-Agent AI System Performing Live Electronic Music 🎧
What happens when you give local Large Language Models (LLMs) the keys to a DJ booth? That was the question that sparked Swarm DJ . I wanted to explore whether autonomous AI agents could collaborate in real-time to generate music, argue over creative directions, and actually make crowds dance—without any human intervention. The result is a distributed, multi-agent AI system powered by Ollama , MQTT , and real-time DSP audio generation, turning AI agents into a collective, autonomous DJ. Watch the demo here: System Architecture Building an autonomous DJ meant bridging the gap between slow, token-by-token text generation and hard real-time audio constraints (where a missed buffer means an audible click). To achieve this, the architecture separates the "thinking" from the "playing", using an MQTT broker as the central nervous system. The Core Components: The Audio Engine : Built with pure NumPy for DSP synthesis (generating kicks, acid loops, and pads) and Spotify's pedalboard for real-ti
Continue reading on Dev.to Python
Opens in a new tab



