ZJU-REAL/Easel / skills/builtin/ai-music
ai-music
VerifiedAI 音乐 / BGM 生成:给短视频、社媒内容生成原创背景音乐 / 配乐 / 纯音乐。通过可插拔 provider(阿里 DashScope / Suno 类第三方 API)文生音乐,异步提交→轮询→下载,产物可再裁剪/归一化或加到视频。当用户说“AI 音乐”“AI 配乐”“生成 BGM”“背景音乐”“原创音乐”“AI 作曲”“纯音乐”“给视频配乐”“做首曲子”时使用。与 tts-voiceover 的区别:tts-voiceover 生成人声口播/旁白,ai-music 生成背景音乐/配乐(无人声或带演唱)。
| File | Kind | Size |
|---|---|---|
| EASEL-META.md | markdown | 1.2 KB |
| SKILL.md | skill md | 5.4 KB |
EASEL-META.md
View on GitHub# Easel SKILL 元数据
| 字段 | 值 |
|------|-----|
| **SKILL 名称** | ai-music |
| **所属层** | produce |
| **来源类型** | 自研 |
| **原始来源** | Easel 自研;封装共享脚本 `skills/shared/scripts/ai_music.py`,纯标准库 urllib 实现异步提交→轮询→下载,无第三方依赖 |
| **参考项目** | 阿里云 DashScope / 百炼(Model Studio)—— https://help.aliyun.com/zh/model-studio/ (异步任务规范:`X-DashScope-Async: enable` 提交 → `output.task_id` → 轮询 `GET /api/v1/tasks/{task_id}`,状态 PENDING/RUNNING/SUCCEEDED/FAILED);Suno 类第三方 API 通用格式(POST /generate → 轮询 /feed/{id} → audio_url);后处理复用 FFmpeg(`audio_ops.py` / `video_ops.py`) |
| **许可** | 待核实(DashScope / Suno 均为商用在线服务,需用户自备 API key;脚本本身为项目自研,仅用 Python 标准库) |
| **实测状态** | 代码依据公开 API 文档实现,**未用真实 key 实测**;离线校验(--help / check / 缺 key 报错 / ast.parse)已通过。model 名与端点路径均可用 env / --model 覆盖以适配各家实际参数 |
> 整理时间: 2026-07-23
> 用途: 来源溯源与致谢
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |