用途
ElevenLabs Sound Effects 用于根据文字描述生成 AI 音效,通过 inference.sh CLI(belt)调用 ElevenLabs 的音效生成能力。生成结果为免版税音频,可用于视频、游戏、播客等场景。
主要能力
- 文本转音效(text-to-sound-effect):输入一段描述文字即可生成对应音效。
- 自定义时长:通过 duration_seconds 指定,范围 0.5-22 秒;省略时自动决定。
- prompt_influence 参数:取值 0-1,控制模型对描述的字面还原程度,默认 0.3。
- 免版税音频输出。
参数
| 参数 | 类型 | 说明 |
|---|---|---|
| text | string | 音效描述(最多 1000 字符) |
| duration_seconds | number | 时长 0.5-22 秒(可选,省略则自动) |
| prompt_influence | number | 0-1,对提示词的字面还原程度(默认 0.3) |
使用方式
需先安装 inference.sh CLI(belt):
npx skills add belt-sh/cli
登录:
belt login
生成音效:
belt app run elevenlabs/sound-effects --input '{"text": "Thunder rumbling in the distance"}'
示例
电影感音效:
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
限制
- text 最多 1000 字符。
- duration_seconds 范围为 0.5-22 秒。
- 需安装并登录 inference.sh CLI(belt)后方可使用。
- 关于收费、价格、平台支持等信息,资料暂未提供。