This is an experiment in creating a music video for daily news headlines. The idea is to generate images and lyrics for today's top three news headlines, and then use a song generation model to create a song. The song is used as the background music for the video, and the images are used as the visuals.
TODO:
-
Run
script.py
to retrieve news headlines, generate images and lyrics. -
Generate and download song manually by pasting lyrics into Suno. Choose
pop
as the genre. -
Run
timestamps.py
to generate timestamps for the video. -
Run
video.py
to generate the video.
NEWS_API_KEY
: API key for news APIOPENROUTER_API_KEY
: API key for open routerFAL_KEY
: API key for fal.aiGEMINI_API_KEY
: API key for gemini
-
Retrieve news headlines from news API.
-
For each news headline, generate a prompt using an LLM for an associated image.
-
Generate images using FLUX.1 [schnell].
- A video generation model could also be used here, for now flux is faster and cheaper.
-
Generate lyrics for headlines using an LLM.
-
Generate song using Suno.
- Suno and Loudme seem to be the current best options for generating songs from lyrics.
- Neither have an API, so the lyrics need to be pasted manually.
- In the future, using an API here would be ideal.
-
Generate timestamps.
- I have found Gemini models to be quite good at generating timestamps from audio. I tried Whisper too but Gemini seems to be better at identifying words commonly used in news headlines (e.g. brand names, locations, etc.)
-
Generate video - combine images, lyrics and timestamps.