Creates the text and visual assets required to publish a song.
The Artist has a finished song. You need to create the "Release Package."
scan_audio_dna output)metadata.json file required for the DistroKid/Spotify API.import json
def generate_release_package(song_title, artist_name, bpm, vibe):
package = {
"press_release": f"New release from {artist_name}: '{song_title}'. A {bpm} BPM track featuring {vibe} textures...",
"image_prompts": [
f"Album cover for '{song_title}', style: {vibe}, abstract, high contrast",
f"Spotify Canvas loop, {vibe} atmosphere, dark background"
],
"distrokid_payload": {
"artist": artist_name,
"title": song_title,
"genre": vibe,
"isrc": "GENERATE_NEW"
}
}
# Write this to the Living File system
with open('RELEASE_PACKAGE.json', 'w') as f:
json.dump(package, f, indent=2)
print("Release package generated in workspace.")
# Agent: Call generate_release_package(song_title, artist_name, bpm, vibe)