← 返回
内容创作 Key 中文

Gen Music

Generate songs from prompts or lyrics through an ACE-Step-compatible API backend. Use when users want text-to-music, lyrics-to-song, fast prompt iteration, s...
通过兼容ACE-Step的API后端,根据提示词或歌词生成歌曲。适用于文本转音乐、歌词转歌曲、快速提示词迭代等需求。
twocode
内容创作 clawhub v0.1.0 1 版本 99837.1 Key: 需要
★ 0
Stars
📥 613
下载
💾 8
安装
1
版本
#latest

概述

ACE-Step Text To Music

Use an ACE-Step-compatible API backend for prompt-to-song and lyrics-to-song requests. This skill does not install or bundle ACE-Step, model weights, or the API server.

Prerequisite

Before using this skill, make sure you already have access to an ACE-Step-compatible API backend. This can be a local server, usually at http://127.0.0.1:8001, or a remote compatible endpoint. If the backend is missing or stopped, this skill cannot generate music.

Quick start

python3 {baseDir}/scripts/generate.py --prompt "playful beach pop song about rising waves"
python3 {baseDir}/scripts/generate.py --prompt "happy indie pop with bright guitars" --lyrics-file /path/to/lyrics.txt --duration 60

Defaults are tuned for fast local iteration:

  • batch_size=1 to avoid duplicate variants unless explicitly requested
  • audio_format=mp3
  • sample_mode=text2music
  • thinking=false unless the user asks for heavier LM-assisted generation
  • finished audio is copied into a stable output folder instead of leaving only temp API paths

When to use

  • An ACE-Step-compatible API backend is already available, commonly a local server at http://127.0.0.1:8001 but possibly a remote endpoint
  • The user wants text-to-music, lyrics-to-song, or quick style variations
  • The user wants a single command that submits, polls, and returns saved files
  • The user wants music generated locally and then played on Clawatch
  • The user already has access to a local or remote ACE-Step-compatible backend

Run

# Basic prompt
python3 {baseDir}/scripts/generate.py --prompt "playful synth-pop song about sunrise waves"

# With lyrics
python3 {baseDir}/scripts/generate.py \
  --prompt "cute upbeat summer beach song" \
  --lyrics-file /path/to/lyrics.txt \
  --duration 60

# Two variants
python3 {baseDir}/scripts/generate.py \
  --prompt "dreamy city-pop ocean groove" \
  --duration 45 \
  --batch-size 2

# Enable heavier LM planning only when needed
python3 {baseDir}/scripts/generate.py \
  --prompt "cinematic anthem about a storm becoming calm" \
  --duration 60 \
  --thinking

Useful flags:

  • --duration 10..600
  • --lyrics or --lyrics-file
  • --batch-size 1..8
  • --thinking
  • --model acestep-v15-turbo
  • --out-dir /path/to/output
  • --base-url http://127.0.0.1:8001 for local backends
  • --base-url https://your-remote-endpoint for remote backends

Clawatch playback

If the user also wants the result played on Clawatch:

  1. Run the generator and wait for the saved output file paths.
  2. Pick the final .mp3 path from the script output or manifest.json.
  3. Call clawatch_play_audio with:
    • imei: the explicit watch IMEI
    • filePath: the saved local audio path
    • title: optional short label

Do not pass ACE-Step temp URLs directly if the helper already copied a stable local file. Prefer the saved file path.

Config

The script accepts CLI flags first, then env vars, then OpenClaw skill config.

Supported env vars:

  • ACESTEP_API_BASE_URL
  • ACESTEP_API_KEY
  • ACESTEP_OUTPUT_DIR

Use ACESTEP_API_BASE_URL or the OpenClaw config entry to switch between local and remote ACE-Step-compatible backends.

Optional OpenClaw config in ~/.openclaw/openclaw.json:

{
  skills: {
    entries: {
      "gen-music": {
        baseUrl: "http://127.0.0.1:8001",
        apiKey: "",
        outputDir: "~/Projects/tmp/ace-step"
      }
    }
  }
}

Notes

  • Check backend health first if needed: curl http://127.0.0.1:8001/health or the same path on your remote endpoint
  • If the API returns temp /v1/audio?path=... URLs, the helper copies those files into the chosen output directory and writes a manifest.json
  • Prefer batch-size 1 for efficient prompt iteration; raise it only when the user explicitly wants variants

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-31 10:28 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

Baidu Wenku AIPPT

ide-rea
使用百度文库 AI 智能生成 PPT,自动根据内容选择模板。
★ 66 📥 46,202
content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 860 📥 199,843
content-creation

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 295 📥 136,490