The media pipeline
Lyrics and style inputs drive music generation through the API wrapper. Audio and synchronized lyric data are then combined with a separately supplied background image for video rendering.
The Python application provides a Gradio interface, caching and lyrics processing. FFmpeg handles the final render, including GPU accelerated encoding and audio and video output handling.
Lyrics synchronization
The lyrics processing includes structural filtering, matching words to lines and support for French characters. Cached timestamps and metadata support the generation and rendering workflow.
Video rendering
Rendering combines synchronized lyrics with the generated audio and a background image. The implementation includes fade effects, preserves the image aspect ratio and uses AAC audio encoding alongside GPU accelerated video encoding.