关于
This skill generates complete songs with vocals from text descriptions or lyrics, and can create cover versions in new styles. It handles requests for original compositions, jingles, and style transfers, but not instrumental tracks or sound effects. Use it when users want to turn lyrics into music, remake existing songs, or produce vocal-based audio from prompts.
快速安装
Claude Code
推荐npx skills add NoizAI/skills -a claude-code/plugin add https://github.com/NoizAI/skillsgit clone https://github.com/NoizAI/skills.git ~/.claude/skills/text-to-music在 Claude Code 中复制并粘贴此命令以安装该技能
技能文档
text-to-music
Two ways to make a song with vocals + accompaniment, saved as MP3. Every request produces two variants.
- Generate — a new song from a music description plus lyrics.
- Cover — re-sing an existing song in a new style, keeping its melody. Lyrics can be the original (auto-recognized) or new ones.
Triggers
- make a song / generate music / text to music / compose
- turn these lyrics into a song / sing this / jingle / theme song / birthday song
- cover this song / make a jazz version / remake in another style
- 写歌 / 生成音乐 / 作曲 / 唱首歌 / 歌词谱曲 / 翻唱 / 改编 / 换个风格唱
Generate — new song from text
A request needs a prompt (the music description) and exactly one lyrics source:
# Let the server write lyrics from a theme
python3 skills/text-to-music/scripts/t2m.py "upbeat indie pop, bright guitars, 120 BPM" \
--lyrics-prompt "a song about summer road trips with friends"
# Use your own lyrics (inline or from a file)
python3 skills/text-to-music/scripts/t2m.py "mandopop ballad, piano and strings" \
--lyrics $'[Verse]\n窗外的雨停了\n[Chorus]\n我还在等你' --vocal-gender Female --title "雨停了"
python3 skills/text-to-music/scripts/t2m.py "lo-fi hip hop, mellow, vinyl crackle" \
--lyrics-file song.txt --duration 120 -o chill.mp3
# Model the vocal/style on a reference song (local file ≤20 MB or public URL)
python3 skills/text-to-music/scripts/t2m.py "dreamy synth-pop" --lyrics-file song.txt --ref-audio ./ref.mp3
Output: song_v1.mp3 and song_v2.mp3 (or <stem>_v1.mp3 / <stem>_v2.mp3 with -o). When lyrics were written by the server, they are also saved to <stem>_lyrics.txt.
| Argument | Default | Description |
|---|---|---|
prompt | required | Music description: genre, mood, instruments, tempo (≤1500 chars) |
--lyrics / -l | — | Lyrics text; [Verse], [Chorus], [Bridge] markers help structure |
--lyrics-file | — | UTF-8 .txt file with lyrics (≤64 KB) |
--lyrics-prompt | — | Theme for server-side lyric writing |
--tags | — | Style tags, comma-separated (≤50 chars) |
--negative-tags | — | Styles to avoid |
--duration / -d | auto | Target length hint: 60, 120, or 180 seconds. A hint, not a guarantee. |
--ref-audio | — | Reference song, local path or public URL |
--lyrics, --lyrics-file, and --lyrics-prompt are mutually exclusive; one is required.
Cover — re-sing an existing song
Needs the source song, lyrics, and a description of the new sound (--style and/or --prompt):
# Same lyrics, new style: recognize lyrics from the original, then cover it
python3 skills/text-to-music/scripts/t2m.py cover original.mp3 \
--style "jazz, smoky female vocal" --recognize-lyrics -o jazz_cover.mp3
# New lyrics over the original melody, looser arrangement
python3 skills/text-to-music/scripts/t2m.py cover https://example.com/song.mp3 \
--prompt "acoustic folk, fingerpicked guitar, intimate" --lyrics-file new_lyrics.txt \
--adherence main_melody --vocal-gender Male
# Recognize lyrics only (to review or edit before covering)
python3 skills/text-to-music/scripts/t2m.py lyrics original.mp3 -o lyrics.txt
Recommended flow when the user wants to tweak lyrics: run lyrics → edit the file → cover --lyrics-file.
| Argument | Default | Description |
|---|---|---|
source | required | Original song: local file (≤100 MB; mp3/wav/m4a/aac/flac/ogg) or public URL |
--style / -s | — | Short style tags, e.g. "rock, male vocal" (≤50 chars) |
--prompt / -p | — | Longer description of the cover's sound (≤1500 chars) |
--adherence | high | high = follow the original arrangement closely; main_melody = keep only the main melody, more freedom |
--lyrics / -l | — | Lyrics to sing |
--lyrics-file | — | UTF-8 .txt file with lyrics (≤64 KB) |
--recognize-lyrics | off | Transcribe the source's lyrics first and use them |
--output / -o | cover.mp3 | Output path; variants get _v1 / _v2 suffixes |
At least one of --style / --prompt is required; exactly one lyrics source is required.
Shared Arguments
| Argument | Default | Description |
|---|---|---|
--title | — | Song title (≤80 chars) |
--vocal-gender | — | Male or Female |
--vocal-timbre | — | Free-form voice description, e.g. "husky warm alto" (≤50 chars) |
--output / -o | song.mp3 (cover.mp3 for covers) | Output path; variants get _v1 / _v2 suffixes |
--no-wait | off | Submit, print the job ID(s), then exit |
--poll-interval | 10 | Seconds between status checks |
--timeout | 1800 | Max seconds to wait (the job keeps running server-side) |
--api-key | from env/config | Noiz API key (overrides stored key) |
Resuming / Checking Jobs
Generation prints two gen_product_ids; a cover prints one task_id. If the wait times out or you used --no-wait, resume with:
python3 skills/text-to-music/scripts/t2m.py status <id_v1> <id_v2> -o song.mp3
python3 skills/text-to-music/scripts/t2m.py status --cover <task_id> -o cover.mp3
python3 skills/text-to-music/scripts/t2m.py status --cover <task_id> --no-wait # just print status
Status goes submitted → running → succeeded / failed. Covers also report a stage (analysis runs before singing, so covers take longer). Download URLs expire after ~24h; re-run status for fresh ones.
Writing Good Prompts
- Prompt / style = the sound: genre + mood + instrumentation + tempo.
"cinematic orchestral pop, soaring strings, 90 BPM, hopeful". - Lyrics: keep sections short and label them. Chinese, English, and mixed lyrics all work.
- Short songs: for jingles or greetings, pass
-d 60and write only a verse + chorus. - Covers: pick
highto keep the cover recognizable; pickmain_melodyfor a bigger genre change. - Not satisfied? Run again — each run gives two fresh variants.
Cost
- Songs and covers are billed once per job (not per variant):
ceil(longest variant seconds) × 15credits, charged after both variants succeed. A 2-minute song costs about 1,800 credits. If subscription credits don't cover the whole job, it is billed as pay-as-you-go at $0.00015/s. The script prints the charged amount on completion. - Lyrics recognition (
lyrics/--recognize-lyrics): 100 credits (or $0.001 pay-as-you-go), charged only when vocals are detected.
Rate limits: 5 submissions per minute per key per endpoint; status polling 60 per minute.
Limitations
- Pure instrumental music is not supported — lyrics are always required.
--durationis only a hint; actual length may differ. Covers follow the source's length.- Prompts or lyrics containing sensitive content are rejected (
code=400).
Configuration
python3 skills/text-to-music/scripts/t2m.py config --set-api-key YOUR_KEY
# or
export NOIZ_API_KEY=YOUR_KEY
Get your API key at developers.noiz.ai.
Requirements
- Python 3.6+
requestspackage:uv pip install requests- Noiz API key from developers.noiz.ai
Security & Data Disclosure
- API key: Stored in
~/.config/noiz/api_key(permissions0600) or viaNOIZ_API_KEYenv variable. - Network: Prompts, lyrics, and any reference/source audio (file upload or URL) are sent to
https://noiz.ai/v1/text-to-musicandhttps://noiz.ai/v1/text-to-music/cover*; job status is polled from the same endpoints. No other data is transmitted. - Output: Generated MP3s (and lyrics text files) are downloaded from signed Noiz storage URLs and saved to the output path. No other files are modified.
GitHub 仓库
常见问题
什么是 text-to-music Skill?
text-to-music 是一个 Claude Skill,作者为 NoizAI。Skill 将 Claude 按需加载的说明和资源打包,让 Claude 无需额外提示即可执行与 text-to-music 相关的任务。
如何安装 text-to-music?
使用本页的安装命令:将 text-to-music 作为插件添加到 Claude Code,或将其仓库克隆到 skills 目录,然后重启 Claude 以加载该 Skill。
text-to-music 属于哪个分类?
text-to-music 属于元分类。
text-to-music 可以免费使用吗?
可以。text-to-music 已收录在 AIMCP,可免费安装。
相关推荐技能
Content Collections 是一个 TypeScript 优先的构建工具,可将本地 Markdown/MDX 文件转换为类型安全的数据集合。它专为构建博客、文档站和内容密集型 Vite+React 应用而设计,提供基于 Zod 的自动模式验证。该工具涵盖从 Vite 插件配置、MDX 编译到生产环境部署的完整工作流。
这个Claude Skill为开发者提供完整的Polymarket预测市场开发支持,涵盖API调用、交易执行和市场数据分析。关键特性包括实时WebSocket数据流,可监控实时交易、订单和市场动态。开发者可用它构建预测市场应用、实施交易策略并集成实时市场预测功能。
该Skill帮助开发者创建OpenCode插件,用于接入命令、文件、LSP等25+种事件。它提供了插件结构、事件API规范和JavaScript/TypeScript实现模式,适合需要拦截操作、扩展功能或自定义事件处理的场景。开发者可通过它快速构建响应式模块来增强OpenCode AI助手的能力。
SGLang是一个专为LLM设计的高性能推理框架,特别适用于需要结构化输出的场景。它通过RadixAttention前缀缓存技术,在处理JSON、正则表达式、工具调用等具有重复前缀的复杂工作流时,能实现极速生成。如果你正在构建智能体或多轮对话系统,并追求远超vLLM的推理性能,SGLang是理想选择。
