Loading...
Loading...
Use when the user wants to create, generate, or compose music—whether from text description, custom lyrics, or instrumental background music. Triggers: generate music, write a song, compose, create music, AI music, background music, instrumental, beats.
npx skill4agent add giggle-official/skills giggle-generation-musicGIGGLE_API_KEYImportant: Never passin exec'sGIGGLE_API_KEYparameter. API Key is read from system environment variable.env
No Retry on Error: If script execution encounters an error, do not retry. Report the error to the user directly and stop.
| User input | Mode | Description |
|---|---|---|
| User provides full lyrics | Custom mode (B) | Must be lyrics, not description |
| User requests instrumental/background music | Instrumental mode (C) | No vocals |
| Other cases (description, style, vocals, etc.) | Simplified mode (A) | Use user description as prompt; AI composes |
Key rule: If the user does not provide lyrics, always use simplified mode A. Use the user's description exactly as; do not add or rewrite. E.g. user says "female voice, 1 min, ancient romance", use--promptdirectly.--prompt "female voice, 1 min, ancient romance"
Question: "What type of music would you like to generate?"
Options: AI compose (describe style) / Use my lyrics / Instrumentaltask_idpython3 scripts/giggle_music_api.py --prompt "user description"python3 scripts/giggle_music_api.py --custom \
--prompt "lyrics content" \
--style "pop, ballad" \
--title "Song Title" \
--vocal-gender femalepython3 scripts/giggle_music_api.py --prompt "user description" --instrumental{"status": "started", "task_id": "xxx"}addMemorygiggle-generation-music task_id: xxx (submitted: YYYY-MM-DD HH:mm)python3 scripts/giggle_music_api.py --query --task-id <task_id>| stdout pattern | Action |
|---|---|
| Plain text with music links (🎶 音乐已就绪) | Forward to user as-is |
| Plain text with error | Forward to user as-is |
JSON | Tell user "Still in progress, please ask again in a moment" |
https://assets.giggle.pro/...?Policy=...&Key-Pair-Id=...&Signature=...--query --task-id xxx| Parameter | Description |
|---|---|
| Music description or lyrics (required in simplified mode) |
| Enable custom mode |
| Music style (required in custom mode) |
| Song title (required in custom mode) |
| Generate instrumental |
| Vocal gender: male / female (custom mode only) |
| Query task status |
| Task ID (use with --query) |