Generate music using ElevenLabs Music API - instrumental tracks, songs with lyrics, and fine-grained composition plans
95
93%
Does it follow best practices?
Impact
99%
1.57xAverage score across 5 eval scenarios
Passed
No findings from the security scan
A stock audio marketplace wants to automate creation of their music catalog. For each track, they need not just the audio file, but also rich metadata — the composition structure (sections, styles, lyrics if any), and song details — stored in a structured JSON format alongside the audio. This metadata is used to power search and filtering on their platform.
Write a Python script called catalog_builder.py that generates a single demo track for the catalog. The script should:
metadata.json fileThe marketplace wants to see how the metadata is structured so they can plan their database schema.
catalog_builder.py — The Python scriptrequirements.txt — Python dependencies