Token导航 LogoToken导航TokenDH.com
音频生成敏感数据clawhub未标认证来源可访问clear审计提醒

music-generate音乐生成

Agent Skill

用于辅助音频、音乐、语音转写、语音合成或声音素材处理。它适合让 Agent 生成配乐说明、整理音频流程、调用语音工具或处理播客和视频配音素材。使用时需要确认输入音频来源、输出格式、时长和模型限制;涉及人声克隆、版权音乐或公开发布时,应先核对授权和合规边界。

总安装

2,619

周安装

107

GitHub Stars

公开资料未说明

下载量

847
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:music-generate(音乐生成)
来源仓库:https://github.com/gentleyo/music-generate
安装命令:
openclaw skills install music-generate
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install music-generate

简介

交互式音乐创作助手,支持多轮对话定义作品要素。

  • 适用于根据情绪、流派、节奏等维度定制背景音乐需求。
  • 通过逐步提问明确创作意图,输出符合场景的音乐描述或指令。
  • 建议在安装后查看 README 以了解支持的模型与输出格式限制。
  • music-generate 属于音频生成类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
music-composer
description
Music composition assistant. Accepts natural language input, guides the user through multi-turn interaction to define genre, mood, theme, tempo, and other musical elements, generates structured prompts for Suno/Udio, and saves the output to a user-specified path.

Music Composer

This skill helps users go from a single natural language description to a finished music file, through a structured multi-turn conversation.

When to Use

Trigger this skill when the user:

  • Says "create a song", "generate some music", "I want a track that..."
  • Describes a mood, scene, or use case (e.g. "something for working out", "a sad piano piece")
  • Wants to use Suno or Udio but doesn't know how to write a prompt

Workflow

Step 1: Understand Intent

Parse the user's initial input. Extract any elements already mentioned, identify what's missing.

Core music elements:

ElementDescriptionExamples
GenreStyle of musicPop, Jazz, Lo-fi, Classical, EDM, Folk
MoodEmotional toneUpbeat, melancholic, energetic, calm, mysterious
ThemeSubject or sceneHeartbreak, travel, morning, city at night
TempoSpeedSlow 60bpm / Medium 120bpm / Fast 160bpm
InstrumentsMain soundsPiano, guitar, synth, strings, drum machine
DurationTarget length30s / 1 minute / full song (3-4 min)
VocalsVoice presenceInstrumental / male / female / choir
LanguageLyric language (if vocals)English / Chinese / no lyrics

Step 2: Multi-Turn Interaction

Ask about missing elements in batches — max 2-3 questions per round. Wait for the user's reply before moving to the next round.

Interaction rules:

  • Offer 3-4 labeled options per element, plus a "custom" option
  • If the user says "up to you" or "whatever", pick recommended defaults and move on
  • Keep the tone conversational and light

Round 1 — Genre + Mood:

Got it! Let me help you build this track. A couple of quick questions:

1. Genre preference?
   A. Lo-fi Hip-hop (relaxed, study vibes)
   B. Pop (catchy, accessible)
   C. EDM (high energy, driving beat)
   D. Classical / Neo-classical (instrumental, refined)
   E. Custom: ___

2. Overall mood?
   A. Upbeat and happy
   B. Melancholic
   C. Motivating / energetic
   D. Calm and meditative

Round 2 — Tempo + Instruments:

Got it! Two more:

1. Tempo?
   A. Slow (60-80 BPM — relaxing, sleep)
   B. Medium (90-120 BPM — everyday background)
   C. Fast (130-160 BPM — workout, focus)

2. Main instruments? (pick multiple)
   Piano / Guitar / Synth / Strings / Drum machine / Bass / Custom

Round 3 — Vocals + Duration + Output path:

Almost there:

1. Vocals?
   A. Instrumental only
   B. Female vocals
   C. Male vocals

2. Duration?
   A. Short clip (30s)
   B. 1 minute
   C. Full track (3-4 min)

3. Where should the file be saved? (enter a folder path)

Step 3: Generate Prompt Options

Once all elements are collected, present 2-3 style variants for the user to choose from. Each variant includes:

  • A name and style description
  • A complete English prompt ready for Suno or Udio

Format:

Option A — "Midnight Drive"
Style: Dark, cinematic lo-fi with a slow groove

Prompt:
lo-fi hip hop, melancholic, late night city drive, slow tempo 75bpm,
piano melody, vinyl crackle, soft drums, bass guitar,
instrumental, 2 minutes, atmospheric, nostalgic

Option B — "Neon Glow" (City Pop flavor)
Style: 80s-inspired City Pop, warm synths, nostalgic

Prompt:
city pop, 1980s inspired, nostalgic, upbeat 110bpm,
electric piano, synthesizer, bass, light drums,
instrumental, dreamy, 3 minutes

Step 4: API Setup Guidance

Before generating, check whether the user has API access configured. If not, explain the options:

Option 1: Web interface (no setup required)

The easiest way — paste the prompt directly into the web app:
- Suno: https://suno.com
- Udio: https://www.udio.com

Download the result manually and save it to your chosen folder.

Option 2: Self-hosted API (automated)

Suno and Udio do not have official public APIs.
Community-maintained wrappers are available on GitHub:
- Suno: https://github.com/gcui-art/suno-api
- Udio: https://github.com/udioapi/udio-api

These require your account session credentials.
Store credentials in a local .env file — never hardcode them in scripts.
Refer to each project's README for setup instructions.

Step 5: Generate and Save

Once the user confirms a prompt and has API access ready, run the generation script:

import requests
import os

def generate_music(prompt: str, output_path: str):
    """
    Call the local Suno API and save the result to output_path.
    Requires SUNO_API_URL set in environment (e.g. http://localhost:3000).
    Credentials must be configured in the API service, not passed here.
    """
    api_url = os.getenv("SUNO_API_URL")
    if not api_url:
        raise EnvironmentError("SUNO_API_URL is not set in environment variables.")

    response = requests.post(f"{api_url}/api/generate", json={
        "prompt": prompt,
        "make_instrumental": True,
        "wait_audio": True
    })

    if response.status_code != 200:
        raise RuntimeError(f"API request failed: {response.status_code}")

    data = response.json()

    os.makedirs(output_path, exist_ok=True)
    saved = []
    for i, item in enumerate(data):
        audio_url = item.get("audio_url")
        if audio_url:
            audio_data = requests.get(audio_url).content
            filepath = os.path.join(output_path, f"track_{i+1}.mp3")
            with open(filepath, "wb") as f:
                f.write(audio_data)
            saved.append(filepath)

    return saved

After generation, report to the user:

Music saved to: [output path]/track_1.mp3

Details:
- Duration: ~3 minutes
- Format: MP3
- Prompt used: [prompt text]

Want to regenerate or adjust the style?

Notes

  • Music generated via Suno/Udio is subject to each platform's terms of service — verify before commercial use
  • Community API wrappers may break when platforms update — check the respective GitHub repos for status
  • If the API is unavailable, output the full prompt so the user can generate manually via the web interface
  • The output directory will be created automatically if it does not exist

适合场景

01

生成背景音乐

02

生成歌曲或旋律

03

视频和播客配乐

04

社媒内容音频素材

能力概览

能力 1

调用音乐生成模型

能力 2

支持文本到音乐或歌曲生成

能力 3

提供 CLI 示例和使用场景

能力 4

适合音频内容工作流

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

78.04%
按下载量换算661

安全审计

VirusTotal

未展示

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills