← 返回 Skills 市场
volcengine-skills

Byted Music Generate

作者 volcengine-skills · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
106
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install byted-music-generate
功能描述
Generate music using Volcengine Imagination API. Supports vocal songs, instrumental BGM, and lyrics generation. Use when the user wants to create songs, back...
使用说明 (SKILL.md)

Music Generate Skill

This skill generates music using the Volcengine Music Generation API. It supports vocal songs, instrumental BGM, and AI lyrics generation.

Trigger Conditions

  1. User wants to generate a song (with lyrics or a text prompt)
  2. User needs background music, instrumental tracks, or soundtracks
  3. User wants AI-generated lyrics
  4. User mentions "write a song", "music generation", "BGM", "background music", "lyrics"

Environment Variables

Before using this skill, ensure the following environment variables are set:

  • VOLCENGINE_ACCESS_KEY — AccessKey ID
  • VOLCENGINE_SECRET_KEY — AccessKey Secret

How to obtain: Volcengine Console → Account (top-right) → Key Management → Create Key.

Usage

  1. Determine user intent and select the mode (song / bgm / lyrics).
  2. cd to the skill directory: skills/byted-music-generate.
  3. Run the script. The script polls the API internally and may take several minutes to complete (typically 1–5 minutes for song/bgm).
  4. Monitor execution: If the runtime environment moves the command to background, you MUST periodically (every 10 seconds) read the terminal output to check whether the script has finished. The script prints polling progress to stderr and outputs a single JSON line to stdout upon completion.
  5. Once completed, return the audio_url or lyrics from the JSON output to the user.

Three Modes

1. song — Vocal Song

User provides lyrics (Lyrics) or a text prompt (Prompt) to generate a vocal song.

# With text prompt
python scripts/music_generate.py song --prompt "A song about summer at the beach" --genre Pop --gender Female

# With lyrics
python scripts/music_generate.py song --lyrics "[verse]\
Moonlight on the windowsill\
Memories flowing like water\
[chorus]\
You are my moonlight" --genre Folk --mood "Sentimental/Melancholic/Lonely"

Note: --lyrics and --prompt are mutually exclusive; lyrics takes priority. If the user hasn't provided lyrics, you can first use the lyrics mode to generate them, then pass the result to the song mode.

2. bgm — Instrumental BGM

Describe the desired music in natural language. The v5.0 model does not require Genre/Mood parameters — just describe everything in the --text field.

python scripts/music_generate.py bgm --text "Relaxed coffee shop ambiance music with piano and guitar" --duration 60

# With song structure segments
python scripts/music_generate.py bgm --text "Epic game soundtrack" --segments '[{"Name":"intro","Duration":10},{"Name":"chorus","Duration":30}]'

3. lyrics — Lyrics Generation

Returns synchronously (no polling needed). Can be used standalone or as a pre-step for the song mode.

python scripts/music_generate.py lyrics --prompt "A song about graduation farewell" --genre Folk --mood "Sentimental/Melancholic/Lonely" --gender Female

Manual Task Query (timeout fallback)

python scripts/music_generate.py query --task-id "202601397834584670076931"

Mode Detection Logic

User Request
    ↓
Contains "instrumental/BGM/background music/soundtrack"?
    ├─ Yes → bgm mode
    └─ No → Contains "lyrics/write lyrics" and does NOT request audio?
        ├─ Yes → lyrics mode
        └─ No → song mode
            ├─ User provided lyrics → --lyrics
            └─ User only described a theme → --prompt (or lyrics first, then song)

Script Parameters

song mode

Parameter Required Description
--lyrics either Lyrics with structure tags
--prompt either Text prompt (Chinese, 5-700 chars)
--model-version no v4.0 or v4.3 (default: v4.3)
--genre no Music genre
--mood no Music mood
--gender no Female / Male
--timbre no Vocal timbre
--duration no Duration in seconds [30-240]
--key no Musical key (v4.3 only)
--kmode no Major / Minor (v4.3 only)
--tempo no Tempo (v4.3 only)
--instrument no Instruments, comma-separated (v4.3 only)
--genre-extra no Secondary genres, comma-separated, max 2 (v4.3 only)
--scene no Scene tags, comma-separated (v4.3 only)
--lang no Language (v4.3 only)
--vod-format no wav / mp3 (v4.3 only)
--billing no prepaid / postpaid (default: postpaid)
--timeout no Max wait seconds (default: 300)

bgm mode

Parameter Required Description
--text yes Natural language description
--duration no Duration in seconds [30-120]
--segments no JSON array of song structure segments
--version no Model version (default: v5.0)
--enable-input-rewrite no Enable prompt rewriting
--billing no prepaid / postpaid (default: postpaid)
--timeout no Max wait seconds (default: 300)

lyrics mode

Parameter Required Description
--prompt yes Lyrics prompt (Chinese only, \x3C500 chars)
--genre no Music genre
--mood no Music mood
--gender no Female / Male

Script Return Info

The script outputs JSON with the following fields:

{
    "status": "success | timeout | error",
    "mode": "song | bgm | lyrics | query",
    "task_id": "...",
    "audio_url": "https://...",
    "duration": 46.0,
    "lyrics": "...",
    "error": null
}

Return the audio_url to the user for download or playback. URLs are valid for approximately 1 year, but users should save the file promptly.

Error Handling

  • PermissionError: VOLCENGINE_ACCESS_KEY ...: Inform the user to configure the environment variables. Write them to the workspace environment variable file, then retry.
  • status: "timeout": The task is still generating. Provide the user with the task_id and the manual query command from the output.
  • Copyright check failure (code 50000001): Suggest the user enrich the description or increase the audio duration, then retry.

References

安全使用建议
This skill implements Volcengine music generation and requires your Volcengine AccessKey (VOLCENGINE_ACCESS_KEY) and SecretKey (VOLCENGINE_SECRET_KEY). Before installing: (1) confirm the skill source and trustworthiness (registry metadata omitted the required credentials; ask the publisher to correct this); (2) use a dedicated, minimum-privilege API key (or an account with limited billing) rather than your primary account key; (3) be aware the script will submit tasks that may incur charges (billing modes exist); (4) inspect or run the included Python script in a sandboxed environment if you want to verify behavior yourself — the code appears to only call open.volcengineapi.com, sign requests with HMAC, poll task status, and return audio URLs. If you do not trust the publisher or cannot confirm the origin, do not provide your AK/SK.
功能分析
Type: OpenClaw Skill Name: byted-music-generate Version: 1.0.0 The skill is a legitimate integration with the Volcengine Music Generation API. The core script, `scripts/music_generate.py`, implements standard HMAC-SHA256 signature authentication to interact with official Volcengine endpoints (open.volcengineapi.com). The instructions in `SKILL.md` correctly guide the agent through the multi-step process of task submission and polling without any evidence of malicious prompt injection, data exfiltration, or unauthorized command execution.
能力评估
Purpose & Capability
Name/description indicate Volcengine music generation and the code and docs implement HMAC-authenticated calls to Volcengine Imagination API — the requested capability matches the stated purpose. However, the registry metadata lists no required environment variables or primary credential while SKILL.md and scripts require VOLCENGINE_ACCESS_KEY and VOLCENGINE_SECRET_KEY (incoherent metadata).
Instruction Scope
SKILL.md instructs running the included Python script and monitoring its stdout/stderr while it polls the provider. The runtime instructions and code are scoped to submitting tasks and polling results from Volcengine; they do not instruct reading unrelated files or exfiltrating data. The doc's requirement to 'periodically (every 10 seconds) read the terminal output' is operationally odd but not malicious.
Install Mechanism
There is no external install spec or remote download. The bundle contains a Python script and a simple requirements.txt (requests). No obscure installers or external URLs are fetched at install time, so installation risk is low.
Credentials
The only secrets used by the script are VOLCENGINE_ACCESS_KEY and VOLCENGINE_SECRET_KEY which are proportionate to calling Volcengine APIs. The concern is that the registry metadata declared no required env vars/credentials while both SKILL.md and the script require AK/SK — this mismatch could lead users to miss the need to provide credentials or to provide them without noticing. Also note supplying AK/SK grants API/billing access to your Volcengine account.
Persistence & Privilege
The skill does not request always:true, does not persist changes to other skills or system config, and does not create background services. It runs as an invoked script and does network calls to Volcengine only.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install byted-music-generate
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /byted-music-generate 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
byted-kickart-marketing-material-generator v1.0.0 - Initial release with industry trending list and hot topic/event ranking capabilities. - Supports two major types: topic challenges and trending events. - Allows users to query by industry, view sorted rankings, and request details for any list item. - Enforces strict output rules: no technical details or process logs exposed to users. - Provides industry list, trending queries, and informative interaction templates for consistent user experience. - Guides users with suggested follow-up questions after every result.
元数据
Slug byted-music-generate
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Byted Music Generate 是什么?

Generate music using Volcengine Imagination API. Supports vocal songs, instrumental BGM, and lyrics generation. Use when the user wants to create songs, back... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 106 次。

如何安装 Byted Music Generate?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install byted-music-generate」即可一键安装,无需额外配置。

Byted Music Generate 是免费的吗?

是的,Byted Music Generate 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Byted Music Generate 支持哪些平台?

Byted Music Generate 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Byted Music Generate?

由 volcengine-skills(@volcengine-skills)开发并维护,当前版本 v1.0.0。

💬 留言讨论