Loading...
Loading...
ElevenLabs AI音乐生成 - 通过inference.sh CLI根据文本提示创作原创音乐。功能特性:文本转音乐、自定义时长最长10分钟、可控制流派/情绪/乐器、可免费商用无版权限制。适用场景:背景音乐、影视原声、广告短曲、播客、视频配乐、游戏音频。触发关键词:elevenlabs music, eleven labs music, ai music, generate music, music generation, compose music, ai composer, create song, soundtrack, background music, jingle, elevenlabs compose, music ai
npx skill4agent add inferen-sh/skills elevenlabs-music
需要安装inference.sh CLI()。安装说明infsh
infsh login
# 生成音乐
infsh app run elevenlabs/music --input '{"prompt": "Upbeat electronic dance track with driving synths"}'| 参数 | 类型 | 默认值 | 描述 |
|---|---|---|---|
| 字符串 | 必填 | 所需音乐的描述(最多2000字符) |
| 数字 | 30 | 时长(秒),范围5-600,最长10分钟 |
# Lo-fi 学习节拍
infsh app run elevenlabs/music --input '{
"prompt": "Lo-fi hip hop beat, chill study music, vinyl crackle, mellow piano",
"duration_seconds": 120
}'
# 企业背景音乐
infsh app run elevenlabs/music --input '{
"prompt": "Light corporate background music, positive, motivational, clean",
"duration_seconds": 60
}'# 史诗级预告片配乐
infsh app run elevenlabs/music --input '{
"prompt": "Epic cinematic orchestral score, dramatic build-up, brass and strings, trailer music",
"duration_seconds": 45
}'
# 悬疑风格配乐
infsh app run elevenlabs/music --input '{
"prompt": "Dark suspenseful score, tension building, minimal piano, horror atmosphere",
"duration_seconds": 60
}'# 爵士乐
infsh app run elevenlabs/music --input '{
"prompt": "Smooth jazz quartet, saxophone lead, walking bass, brushed drums",
"duration_seconds": 90
}'
# 电子乐
infsh app run elevenlabs/music --input '{
"prompt": "Techno beat, 128 BPM, driving bass, atmospheric synths, club music",
"duration_seconds": 120
}'
# 原声吉他民谣
infsh app run elevenlabs/music --input '{
"prompt": "Acoustic guitar folk song, fingerpicking, warm and intimate",
"duration_seconds": 60
}'# 播客开场曲(10秒)
infsh app run elevenlabs/music --input '{
"prompt": "Podcast intro jingle, professional, tech-themed, catchy",
"duration_seconds": 10
}'
# 社交媒体短视频音频
infsh app run elevenlabs/music --input '{
"prompt": "Trendy upbeat pop, social media vibe, energetic, youthful",
"duration_seconds": 15
}'
# 通知音效
infsh app run elevenlabs/music --input '{
"prompt": "Short positive notification melody, clean, satisfying",
"duration_seconds": 5
}'# 战斗主题音乐
infsh app run elevenlabs/music --input '{
"prompt": "Intense battle music, fast tempo, orchestral with electric guitar, boss fight",
"duration_seconds": 120
}'
# 探索主题音乐
infsh app run elevenlabs/music --input '{
"prompt": "Peaceful exploration music, fantasy RPG, harp and flute, magical atmosphere",
"duration_seconds": 180
}'
# 菜单界面音乐
infsh app run elevenlabs/music --input '{
"prompt": "Ambient menu screen music, sci-fi, ethereal synths, space theme",
"duration_seconds": 60
}'# 1. 生成背景音乐
infsh app run elevenlabs/music --input '{
"prompt": "Soft ambient background music for narration, non-intrusive",
"duration_seconds": 60
}' > music.json
# 2. 生成旁白
infsh app run elevenlabs/tts --input '{
"text": "Welcome to our product tour. Let me show you what we have built.",
"voice": "george"
}' > voice.json
# 3. 合并音频
infsh app run infsh/media-merger --input '{
"media": ["<music-url>", "<voice-url>"]
}'# ElevenLabs 音效(可与音乐结合使用)
npx skills add inference-sh/skills@elevenlabs-sound-effects
# ElevenLabs 文本转语音(为音乐添加旁白)
npx skills add inference-sh/skills@elevenlabs-tts
# 其他音乐模型(Diffrythm、腾讯等)
npx skills add inference-sh/skills@ai-music-generation
# 全平台技能(包含150+应用)
npx skills add inference-sh/skills@infsh-cliinfsh app list --category audio