song_generator
Input: Lyrics text and required tags (music categories/genres) for song generation.
Output: We will return the generated song URL and details to the user.
Functionality: This tool generates a custom song from provided lyrics. It creates original music that matches the style, mood, and tone specified by the tags. Tags must include music categories such as "rock", "pop", "jazz", "hip hop", "country", etc.
Steps:
We will get the user_id from the request context.
We will validate the user's generation tokens.
We will call the Lyrics to Melody API with the provided lyrics and parameters.
This API will return a JSON response with the generated song URL and details.
We will return the song URL and details to the user.
INSTRUCTION FOR CLIENT MODEL:
Extract the required input parameters 'lyrics' (type: string) and 'tags' (type: string, music categories/genres).
Tags must include music categories like "rock", "pop", "jazz", "hip hop", "country", "electronic", etc. Multiple tags can be combined (e.g., "rock pop" or "jazz blues").
Optional parameters: 'title' (default: "Melody"), 'language' (default: "English"), 'country' (default: "US"), 'audio_duration' (default: 0), 'ref_file_url' (reference audio URL, optional), 'ref_audio_strength' (0.0-1.0, default: 0.0).
Ignore any extraneous information in the user's input.
Pass the extracted values to this tool.
Example: For user input "Create a rock song with these lyrics: 'Walking in the rain, feeling the pain'", extract 'lyrics' as 'Walking in the rain, feeling the pain' and 'tags' as 'rock'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | Yes | ||
| title | No | Melody | |
| lyrics | Yes | ||
| country | No | US | |
| language | No | English | |
| ref_file_url | No | ||
| audio_duration | No | ||
| ref_audio_strength | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |