用途
ElevenLabs Sound Effects 用于根据文字描述生成音效,通过 inference.sh CLI(belt)调用 ElevenLabs 的音效生成能力。它面向需要快速获得音频素材的场景,例如视频转场与冲击音、游戏 UI 与特效音、播客过渡音、影视动画拟音与环境音等。
主要能力
- 文本转音效(text-to-sound-effect):用一段文字描述想要的声音。
- 自定义时长:可指定 0.5 至 22 秒;省略时自动决定。
- 免版税音频(royalty-free audio)。
- 通过 prompt_influence 控制模型对描述的理解程度。
使用方式
先安装 belt CLI 技能:
npx skills add belt-sh/cli
需要 inference.sh CLI(belt),并先登录:
belt login
生成音效的基本命令:
belt app run elevenlabs/sound-effects --input '{"text": "Thunder rumbling in the distance"}'
参数
| 参数 | 类型 | 说明 |
|---|---|---|
| text | string | 音效描述(最多 1000 字符) |
| duration_seconds | number | 时长 0.5-22 秒(可选,省略时自动) |
| prompt_influence | number | 0-1,描述被字面理解的程度(默认 0.3) |
示例
电影感效果:
belt app run elevenlabs/sound-effects --input '{"text": "Cinematic braam, deep bass impact"}'
belt app run elevenlabs/sound-effects --input '{
"text": "Dark atmospheric drone, tension building, horror",
"duration_seconds": 10
}'
belt app run elevenlabs/sound-effects --input '{
"text": "Fast cinematic whoosh transition",
"duration_seconds": 1.5
}'
自然与环境:
belt app run elevenlabs/sound-effects --input '{
"text": "Heavy rain on a tin roof with occasional thunder",
"duration_seconds": 15
}'
belt app run elevenlabs/sound-effects --input '{
"text": "Forest ambience with birds chirping and gentle wind",
"duration_seconds": 20
}'
belt app run elevenlabs/sound-effects --input '{
"text": "Ocean waves crashing on a beach, calming",
"duration_seconds": 15
}'
游戏音频:
belt app run elevenlabs/sound-effects --input '{
"text": "Retro game power-up sound, ascending tones",
"duration_seconds": 1
}'
belt app run elevenlabs/sound-effects --input '{
"text": "Sci-fi laser explosion, futuristic",
"duration_seconds": 3
}'
belt app run elevenlabs/sound-effects --input '{
"text": "Soft UI button click, subtle and clean",
"duration_seconds": 0.5
}'
日常声音:
belt app run elevenlabs/sound-effects --input '{"text": "Classic doorbell ring"}'
belt app run elevenlabs/sound-effects --input '{
"text": "Mechanical keyboard typing, fast, clicky",
"duration_seconds": 5
}'
belt app run elevenlabs/sound-effects --input '{
"text": "Pleasant notification chime, positive",
"duration_seconds": 1
}'
Prompt Influence
控制模型对描述的字面理解程度:
| 取值 | 效果 | 适用 |
|---|---|---|
| 0.0 | 非常宽松的理解 | 创意、意外结果 |
| 0.3 | 平衡(默认) | 通用 |
| 0.7 | 接近描述 | 特定声音需求 |
| 1.0 | 非常字面 | 精确还原声音 |
belt app run elevenlabs/sound-effects --input '{
"text": "Magical fairy dust sparkle",
"prompt_influence": 0.1
}'
belt app run elevenlabs/sound-effects --input '{
"text": "Single gunshot, pistol, indoor range",
"prompt_influence": 0.8
}'
提示词建议
- 具体化:"Heavy rain on metal roof" 优于 "rain sound"。
- 包含语境:"Footsteps on gravel, slow walking pace" 优于 "footsteps"。
- 描述情绪:"Eerie wind howling through abandoned building" 优于 "wind"。
- 指定材质:"Glass shattering on concrete floor" 优于 "breaking glass"。
工作流:为视频添加音效
# 1. 生成音效
belt app run elevenlabs/sound-effects --input '{
"text": "Dramatic reveal swoosh with bass drop",
"duration_seconds": 2
}' > sfx.json
# 2. 与视频合并
belt app run infsh/media-merger --input '{
"media": ["video.mp4", "<sfx-url>"]
}'
适用场景
- 视频制作:转场、冲击音、环境音。
- 游戏开发:UI 音效、特效音、环境音。
- 播客:过渡音、氛围音。
- 电影/动画:拟音、环境音、配乐元素。
- 演示:吸引注意的声音提示。
- 社交媒体:短视频内容音频。
相关技能
# ElevenLabs 音乐生成
npx skills add inference-sh/skills@elevenlabs-music
# ElevenLabs TTS(语音与音效结合)
npx skills add inference-sh/skills@elevenlabs-tts
# AI 音乐生成(Diffrythm、Tencent)
npx skills add inference-sh/skills@ai-music-generation
# 完整平台技能(所有应用)
npx skills add inference-sh/skills@infsh-cli
浏览所有音频应用:
belt app list --category audio
限制
资料未提供收费、价格、平台支持范围、生成质量或速度等具体信息,暂未提供。