AI Music Generation
用途
该技能用于通过 inference.sh 命令行工具(belt CLI)生成 AI 音乐和歌曲,可调用 ElevenLabs、Diffrythm、腾讯歌曲生成等模型,适合为视频、播客、游戏、广告和内容创作产出配乐与人声歌曲。
安装与准备
安装 belt CLI 技能:
npx skills add belt-sh/cli
需要 inference.sh CLI(belt),登录命令:
belt login
可用模型
| 模型 | App ID | 适用方向 |
|---|---|---|
| ElevenLabs Music | elevenlabs/music | 最长约 10 分钟,带商业许可 |
| Diffrythm | infsh/diffrythm | 快速歌曲生成 |
| Tencent Song | infsh/tencent-song-generation | 带人声的完整歌曲 |
浏览音频应用:
belt app list --category audio
使用方式与示例
生成一首歌曲:
belt app run infsh/diffrythm --input '{"prompt": "upbeat electronic dance track"}'
器乐轨道:
belt app run infsh/diffrythm --input '{
"prompt": "cinematic orchestral soundtrack, epic and dramatic"
}'
带人声的歌曲:
belt app sample infsh/tencent-song-generation --save input.json
# 编辑 input.json:
# {
# "prompt": "pop song about summer love",
# "lyrics": "Walking on the beach with you..."
# }
belt app run infsh/tencent-song-generation --input input.json
视频背景音乐:
belt app run infsh/diffrythm --input '{
"prompt": "calm lo-fi hip hop beat, study music, relaxing"
}'
播客片头:
belt app run infsh/diffrythm --input '{
"prompt": "short podcast intro jingle, professional, tech themed, 10 seconds"
}'
游戏原声:
belt app run infsh/diffrythm --input '{
"prompt": "retro 8-bit video game music, adventure theme, chiptune"
}'
提示词技巧
- 类型关键词:pop、rock、electronic、jazz、classical、hip-hop、lo-fi、ambient、orchestral
- 情绪关键词:happy、sad、energetic、calm、dramatic、epic、mysterious、uplifting
- 乐器关键词:piano、guitar、synth、drums、strings、brass、choir
- 结构关键词:intro、verse、chorus、bridge、outro、loop
适用场景
- 社交媒体:视频背景音乐
- 播客:片头/片尾音乐
- 游戏:原声与音效
- 视频:背景配乐
- 广告:商业音乐
- 内容创作:免版税音乐
相关技能
# ElevenLabs 音乐(最长约 10 分钟,商业许可)
npx skills add inference-sh/skills@elevenlabs-music
# ElevenLabs 音效(可与音乐组合)
npx skills add inference-sh/skills@elevenlabs-sound-effects
# 完整平台技能(全部应用)
npx skills add inference-sh/skills@infsh-cli
# 文本转语音
npx skills add inference-sh/skills@text-to-speech
# 视频生成(为视频添加音乐)
npx skills add inference-sh/skills@ai-video-generation
# 语音转文本
npx skills add inference-sh/skills@speech-to-text
浏览全部应用:
belt app list
文档
- Running Apps:如何通过 CLI 运行应用
- Content Pipeline Example:构建媒体工作流
- Apps Overview:了解应用生态
限制
定价、授权条款的完整细节以及各模型的具体参数暂未提供;模型能力(如时长、是否带人声)仅按上述资料所列。