用途
ElevenLabs Sound Effects 用于根据文字描述生成 AI 音效,通过 inference.sh CLI(belt)调用 ElevenLabs 的音效生成能力。生成结果为免版税音频,可用于视频、游戏、播客等内容的音效制作。
主要能力
- 文本转音效:输入一段描述文字即可生成对应音效,描述文本最长 1000 字符。
- 自定义时长:可指定 0.5 至 22 秒的时长;省略该参数时由系统自动决定。
- 提示词影响度(prompt_influence):取值 0-1,控制模型对描述的理解有多“字面”,默认 0.3。
- 免版税音频:资料标注生成音频为 royalty-free。
使用方式
首先安装 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
限制
- 描述文本最长 1000 字符。
- 时长范围为 0.5 至 22 秒。
- 需先安装并登录 inference.sh CLI(belt)。
- 关于收费、价格、平台支持范围等,资料暂未提供。