elevenlabs-music
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseElevenLabs Music Generation
ElevenLabs 音乐生成
Generate original music from text prompts via inference.sh CLI.

通过inference.sh CLI根据文本提示生成原创音乐。

Quick Start
快速开始
Requires inference.sh CLI (). Install instructionsinfsh
bash
infsh login需要安装inference.sh CLI()。安装说明infsh
bash
infsh loginGenerate music
生成音乐
infsh app run elevenlabs/music --input '{"prompt": "Upbeat electronic dance track with driving synths"}'
undefinedinfsh app run elevenlabs/music --input '{"prompt": "Upbeat electronic dance track with driving synths"}'
undefinedParameters
参数说明
| Parameter | Type | Default | Description |
|---|---|---|---|
| string | required | Description of desired music (max 2000 chars) |
| number | 30 | Duration in seconds (5-600, max 10 minutes) |
| 参数 | 类型 | 默认值 | 描述 |
|---|---|---|---|
| 字符串 | 必填 | 所需音乐的描述(最多2000字符) |
| 数字 | 30 | 时长(秒),范围5-600,最长10分钟 |
Examples
使用示例
Background Music
背景音乐
bash
undefinedbash
undefinedLo-fi study beats
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": "Lo-fi hip hop beat, chill study music, vinyl crackle, mellow piano",
"duration_seconds": 120
}'
Corporate background
企业背景音乐
infsh app run elevenlabs/music --input '{
"prompt": "Light corporate background music, positive, motivational, clean",
"duration_seconds": 60
}'
undefinedinfsh app run elevenlabs/music --input '{
"prompt": "Light corporate background music, positive, motivational, clean",
"duration_seconds": 60
}'
undefinedCinematic Scores
影视配乐
bash
undefinedbash
undefinedEpic trailer
史诗级预告片配乐
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": "Epic cinematic orchestral score, dramatic build-up, brass and strings, trailer music",
"duration_seconds": 45
}'
Suspense
悬疑风格配乐
infsh app run elevenlabs/music --input '{
"prompt": "Dark suspenseful score, tension building, minimal piano, horror atmosphere",
"duration_seconds": 60
}'
undefinedinfsh app run elevenlabs/music --input '{
"prompt": "Dark suspenseful score, tension building, minimal piano, horror atmosphere",
"duration_seconds": 60
}'
undefinedGenre-Specific
特定流派示例
bash
undefinedbash
undefinedJazz
爵士乐
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": "Smooth jazz quartet, saxophone lead, walking bass, brushed drums",
"duration_seconds": 90
}'
Electronic
电子乐
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": "Techno beat, 128 BPM, driving bass, atmospheric synths, club music",
"duration_seconds": 120
}'
Acoustic
原声吉他民谣
infsh app run elevenlabs/music --input '{
"prompt": "Acoustic guitar folk song, fingerpicking, warm and intimate",
"duration_seconds": 60
}'
undefinedinfsh app run elevenlabs/music --input '{
"prompt": "Acoustic guitar folk song, fingerpicking, warm and intimate",
"duration_seconds": 60
}'
undefinedShort-Form Content
短内容适配
bash
undefinedbash
undefinedPodcast intro (10 seconds)
播客开场曲(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": "Podcast intro jingle, professional, tech-themed, catchy",
"duration_seconds": 10
}'
Social media clip
社交媒体短视频音频
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": "Trendy upbeat pop, social media vibe, energetic, youthful",
"duration_seconds": 15
}'
Notification sound
通知音效
infsh app run elevenlabs/music --input '{
"prompt": "Short positive notification melody, clean, satisfying",
"duration_seconds": 5
}'
undefinedinfsh app run elevenlabs/music --input '{
"prompt": "Short positive notification melody, clean, satisfying",
"duration_seconds": 5
}'
undefinedGame Audio
游戏音频
bash
undefinedbash
undefinedBattle theme
战斗主题音乐
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": "Intense battle music, fast tempo, orchestral with electric guitar, boss fight",
"duration_seconds": 120
}'
Exploration theme
探索主题音乐
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": "Peaceful exploration music, fantasy RPG, harp and flute, magical atmosphere",
"duration_seconds": 180
}'
Menu music
菜单界面音乐
infsh app run elevenlabs/music --input '{
"prompt": "Ambient menu screen music, sci-fi, ethereal synths, space theme",
"duration_seconds": 60
}'
undefinedinfsh app run elevenlabs/music --input '{
"prompt": "Ambient menu screen music, sci-fi, ethereal synths, space theme",
"duration_seconds": 60
}'
undefinedPrompt Tips
提示词技巧
Genre: pop, rock, electronic, jazz, classical, hip-hop, lo-fi, ambient, orchestral, folk, R&B, metal, country
Mood: happy, sad, energetic, calm, dramatic, epic, mysterious, uplifting, dark, romantic, tense
Instruments: piano, guitar, synth, drums, bass, strings, brass, choir, saxophone, violin, flute, harp
Tempo: slow, moderate, fast, 80 BPM, 120 BPM, 140 BPM
Style: cinematic, minimal, layered, atmospheric, rhythmic, melodic, ambient
流派:流行、摇滚、电子、爵士、古典、嘻哈、Lo-fi、氛围、管弦乐、民谣、R&B、金属、乡村
情绪:开心、悲伤、活力、平静、戏剧化、史诗、神秘、振奋、黑暗、浪漫、紧张
乐器:钢琴、吉他、合成器、鼓、贝斯、弦乐、铜管、合唱、萨克斯、小提琴、长笛、竖琴
节奏:慢、中等、快、80 BPM、120 BPM、140 BPM
风格:影视级、极简、分层、氛围、节奏型、旋律化、环境音
Workflow: Music + Voiceover
工作流:音乐 + 旁白
bash
undefinedbash
undefined1. Generate background music
1. 生成背景音乐
infsh app run elevenlabs/music --input '{
"prompt": "Soft ambient background music for narration, non-intrusive",
"duration_seconds": 60
}' > music.json
infsh app run elevenlabs/music --input '{
"prompt": "Soft ambient background music for narration, non-intrusive",
"duration_seconds": 60
}' > music.json
2. Generate voiceover
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
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. Merge together
3. 合并音频
infsh app run infsh/media-merger --input '{
"media": ["<music-url>", "<voice-url>"]
}'
undefinedinfsh app run infsh/media-merger --input '{
"media": ["<music-url>", "<voice-url>"]
}'
undefinedUse Cases
适用场景
- Video Production: Background scores, transitions
- Podcasts: Intro/outro, segment breaks
- Games: Soundtracks, menu music, battle themes
- Ads: Jingles, commercial backgrounds
- Social Media: Trending audio for short-form content
- Presentations: Professional background music
- Film: Scoring, mood setting
- 视频制作:背景配乐、转场音效
- 播客:开场/结尾曲、段落间隔音
- 游戏:原声配乐、菜单音乐、战斗主题
- 广告:广告短曲、商用背景音乐
- 社交媒体:短视频热门音频
- 演示文稿:专业背景音乐
- 影视:配乐、情绪烘托
Related Skills
相关技能
bash
undefinedbash
undefinedElevenLabs sound effects (combine with music)
ElevenLabs 音效(可与音乐结合使用)
npx skills add inference-sh/skills@elevenlabs-sound-effects
npx skills add inference-sh/skills@elevenlabs-sound-effects
ElevenLabs TTS (add voice over music)
ElevenLabs 文本转语音(为音乐添加旁白)
npx skills add inference-sh/skills@elevenlabs-tts
npx skills add inference-sh/skills@elevenlabs-tts
Other music models (Diffrythm, Tencent)
其他音乐模型(Diffrythm、腾讯等)
npx skills add inference-sh/skills@ai-music-generation
npx skills add inference-sh/skills@ai-music-generation
Full platform skill (all 150+ apps)
全平台技能(包含150+应用)
npx skills add inference-sh/skills@infsh-cli
Browse all audio apps: `infsh app list --category audio`npx skills add inference-sh/skills@infsh-cli
浏览所有音频应用:`infsh app list --category audio`