用途
ElevenLabs Music 用于根据文本提示词生成原创音乐,通过 inference.sh CLI(belt)调用。它适合需要快速获得背景音乐、配乐或短音频片段的场景。
主要能力
- 文本到音乐:输入一段描述性提示词即可生成音乐。
- 自定义时长:通过 duration_seconds 参数控制,范围 5 至 600 秒,最长 10 分钟,默认 30 秒。
- 提示词支持描述音乐类型、情绪、乐器、节奏和风格等要素。
使用方式
首先安装 belt CLI 技能:
npx skills add belt-sh/cli
然后登录:
belt login
生成音乐的基本命令:
belt app run elevenlabs/music --input '{"prompt": "Upbeat electronic dance track with driving synths"}'
参数说明:
- prompt(字符串,必填):所需音乐的描述,最大 2000 字符。
- duration_seconds(数字,默认 30):时长,单位秒,范围 5 至 600。
示例:
belt app run elevenlabs/music --input '{
"prompt": "Lo-fi hip hop beat, chill study music, vinyl crackle, mellow piano",
"duration_seconds": 120
}'
belt app run elevenlabs/music --input '{
"prompt": "Epic cinematic orchestral score, dramatic build-up, brass and strings, trailer music",
"duration_seconds": 45
}'
belt app run elevenlabs/music --input '{
"prompt": "Podcast intro jingle, professional, tech-themed, catchy",
"duration_seconds": 10
}'
提示词建议
- 类型:pop、rock、electronic、jazz、classical、hip-hop、lo-fi、ambient、orchestral、folk、R&B、metal、country
- 情绪:happy、sad、energetic、calm、dramatic、epic、mysterious、uplifting、dark、romantic、tense
- 乐器:piano、guitar、synth、drums、bass、strings、brass、choir、saxophone、violin、flute、harp
- 节奏:slow、moderate、fast、80 BPM、120 BPM、140 BPM
- 风格:cinematic、minimal、layered、atmospheric、rhythmic、melodic、ambient
工作流:音乐 + 配音
- 生成背景音乐:
belt app run elevenlabs/music --input '{
"prompt": "Soft ambient background music for narration, non-intrusive",
"duration_seconds": 60
}' > music.json
- 生成配音:
belt app run elevenlabs/tts --input '{
"text": "Welcome to our product tour. Let me show you what we have built.",
"voice": "george"
}' > voice.json
- 合并:
belt app run infsh/media-merger --input '{
"media": ["<music-url>", "<voice-url>"]
}'
适用场景
- 视频制作:背景配乐、转场音乐
- 播客:片头/片尾、段落间隔
- 游戏:原声、菜单音乐、战斗主题
- 广告:广告歌、商业背景
- 社交媒体:短视频热门音频
- 演示文稿:专业背景音乐
- 影视:配乐、氛围营造
相关技能
npx skills add inference-sh/skills@elevenlabs-sound-effects
npx skills add inference-sh/skills@elevenlabs-tts
npx skills add inference-sh/skills@ai-music-generation
npx skills add inference-sh/skills@infsh-cli
浏览所有音频应用:
belt app list --category audio
限制
提示词最大 2000 字符;时长范围 5 至 600 秒。关于收费、价格、平台支持等更多信息,资料中暂未提供。