π΅ DJ Butterfly DAIN AI Service πΆ
π Inspiration
Music production can be expensive, so we aimed to make it more accessible. By leveraging DAIN AI, we explored a new and intriguing technology that pushed us to innovate. We wanted to create a project that leaned towards entertainment and creativity, allowing anyone to generate music effortlessly. One of our team members was a former DJ, so incorporating elements of music production felt like a natural connection to our past hobbies.
πΌ What It Does
DJ Butterfly DAIN AI Service generates full songs with lyrics based on a simple user input like a genre and subject. We migrated the Suno APIβs music generation functionality to DAIN AI for easier access and better integration.
π How We Built It
We started with DAIN AI's weather API boilerplate and called the Suno API to use the music generation service of Suno ai. Since our service runs on localhost, we integrated Express.js to handle requests and Ngrok for local tunneling, ensuring smooth communication between the AI and our server. Users interact with DJ Butterfly through the Butterfly Assistant, which serves as the interface for generating and receiving music.
β‘ Challenges We Ran Into
One of the biggest challenges was setting up the API endpoint to properly listen for an audio URL. Implementing a server for the callback URL was another hurdle, requiring precise handling of asynchronous responses. We also had to ensure that the Butterfly Assistant listened long enough for song generation without timing out. Additionally, preventing frequent error messages before the final output was a constant struggle. Since some of us were new to TypeScript, we had to quickly learn and adapt to the language while developing the project.
π Accomplishments We're Proud Of
Weβre proud of how we simultaneously learned TypeScript, APIs, and AI models while building DJ Butterfly. Successfully implementing local tunneling with Ngrok and Express.js was another major achievement, allowing us to connect our locally hosted service to external APIs. Most importantly, this was the first hackathon for two of our members, marking an exciting milestone for our team as we explored AI-powered music generation.
π What's Next for DJ Butterfly
Looking ahead, we plan to introduce song recommendations based on user prompts, enhancing the personalization of the experience. We also aim to develop AI-generated music videos, bringing the songs to life visually. Additional features like filtering options for instrumentals, vocals, BPM, and melody will allow users to fine tune the final product.
Built With
- dain
- express.js
- ngrok
- suno.ai
- typescript
Log in or sign up for Devpost to join the conversation.