← 返回
效率工具 Key 中文

Giggle Generation Music

Use when the user wants to create, generate, or compose music—whether from text description, custom lyrics, or instrumental background music. Triggers: gener...
当用户希望根据文本描述、自定义歌词或伴奏创作、生成或编曲时使用。
patches429
效率工具 clawhub v0.0.10 2 版本 100000 Key: 需要
★ 0
Stars
📥 777
下载
💾 8
安装
2
版本
#latest

概述

简体中文 | English

Giggle Music

Source: giggle-official/skills · API: giggle.pro

Generates AI music via giggle.pro. Supports simplified and custom modes. Submit task → query when ready. No polling or Cron.

API Key: Set system environment variable GIGGLE_API_KEY. Log in to Giggle.pro and obtain the API Key from account settings.

> Important: Never pass GIGGLE_API_KEY in exec's env parameter. API Key is read from system environment variable.

> No Retry on Error: If script execution encounters an error, do not retry. Report the error to the user directly and stop.


Interaction Guide

Mode Selection (priority: high to low)

User inputModeDescription
-------------------------------
User provides full lyricsCustom mode (B)Must be lyrics, not description
User requests instrumental/background musicInstrumental 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 --prompt; do not add or rewrite. E.g. user says "female voice, 1 min, ancient romance", use --prompt "female voice, 1 min, ancient romance" directly.

Guidance when info is lacking

Only when the user input is very vague (e.g. "generate music" with no description), ask:

Question: "What type of music would you like to generate?"
Options: AI compose (describe style) / Use my lyrics / Instrumental

Execution Flow: Submit and Query

Music generation is asynchronous (typically 1–3 minutes). Submit a task to get task_id, then query when the user wants to check status.


Step 1: Submit Task

First send a message to the user: "Music generation submitted. Usually takes 1–3 minutes. You can ask me about the progress anytime."

A: Simplified Mode

python3 scripts/giggle_music_api.py --prompt "user description"

B: Custom Mode

python3 scripts/giggle_music_api.py --custom \
  --prompt "lyrics content" \
  --style "pop, ballad" \
  --title "Song Title" \
  --vocal-gender female

C: Instrumental

python3 scripts/giggle_music_api.py --prompt "user description" --instrumental

Response example:

{"status": "started", "task_id": "xxx"}

Store task_id in memory (addMemory):

giggle-generation-music task_id: xxx (submitted: YYYY-MM-DD HH:mm)

Step 2: Query When User Asks

When the user asks about music progress (e.g. "is my music ready?", "progress?"), run:

python3 scripts/giggle_music_api.py --query --task-id <task_id>

Output handling:

stdout patternAction
------------------------
Plain text with music links (🎶 音乐已就绪)Forward to user as-is
Plain text with errorForward to user as-is
JSON {"status": "processing", "task_id": "..."}Tell user "Still in progress, please ask again in a moment"

Link return rule: Audio links in stdout must be full signed URLs (with Policy, Key-Pair-Id, Signature query params). Correct: https://assets.giggle.pro/...?Policy=...&Key-Pair-Id=...&Signature=.... Keep as-is when forwarding.


Recovery

When the user asks about previous music progress:

  1. task_id in memory → Run --query --task-id xxx directly. Do not resubmit
  2. No task_id in memory → Tell the user, ask if they want to regenerate

Parameter Reference

ParameterDescription
------------------------
--promptMusic description or lyrics (required in simplified mode)
--customEnable custom mode
--styleMusic style (required in custom mode)
--titleSong title (required in custom mode)
--instrumentalGenerate instrumental
--vocal-genderVocal gender: male / female (custom mode only)
--queryQuery task status
--task-idTask ID (use with --query)

版本历史

共 2 个版本

  • v0.0.10 当前
    2026-03-29 09:52 安全 安全
  • v0.0.8
    2026-03-14 02:15

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Market Monitor

patches429
通过交易所 API(如 Binance、OKX)监控加密货币及金融市场,追踪价格、分析趋势并生成市场报告。
★ 0 📥 1,289
productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 445 📥 226,281
productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 438 📥 147,629