Inspiration

We wanted to use images to discover a vibe that can be used to play music. When out and about in nature or in the city exploring, sometimes the picture isn't enough to capture the feeling of the moment, to help with that we think creating sounds is more memorable and a more intimate experience.

What it does

When the user uploads an image, Gemini deduces a vibe which is translated to 6 cohesive sounds by Eleven Labs, the user can then play a piece using either their keyboard, playstation controller, or our customer built esp32 controller (simulated in Wokwi because we didn't have access to hardware)

How we built it

Frontend - React Backend - FastAPI Image Analysis - Gemini API Audio Generation - ElevenLabs API Playback - Web audio Custom controller Hardware - C++, Wokwi for VSCode, Wokwi CLI, Platform IO for VSCode We used react for frontend, FastAPI for backend, Gemini API for image analysis, Elevenlabs for audio

Challenges we ran into

  • Getting sounds to match and sound like music
  • converting audio formats
  • fitting files into ESP32 storage

Accomplishments that we're proud of

It works :)

What we learned

Simulating hardware makes it much harder to develop with hardware in mind.

What's next for Image to Instrument

  • Sleep!
  • Perhaps more instruments
  • volume and pitch sliders per sound (this was intended but we ran out of time)
  • playing with the prompts that can be generated more for even more sound variety

Built With

  • c++
  • elevenlabsapi
  • fastapi
  • geminiapi
  • platformio
  • react
  • wokwi
Share this project:

Updates

Submission history