mcpField
E
elevenlabs-sound-effects

elevenlabs-sound-effects

github.com/inference-sh创意与媒体789762 次安装2 周前更新
代码仓库

关于 elevenlabs-sound-effects

通过 inference.sh CLI 根据文字描述生成音效,适用于视频、游戏和播客制作。可调整时长及提示词影响程度,以控制声音对描述的贴合度。

主要功能

  1. 01按文字描述生成音效
  2. 02设置音效时长
  3. 03调节提示词影响程度
  4. 04涵盖环境与游戏音效

适用场景

  1. 01为视频制作转场和氛围声
  2. 02制作游戏界面音效
  3. 03为播客添加片头及转场
  4. 04为演示文稿制作提示音

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/inference-sh/skills --skill elevenlabs-sound-effects

安装后在 Claude Code 中输入/elevenlabs-sound-effects确认已加载。

详细介绍

安装 belt CLI 技能: npx skills add belt-sh/cli

ElevenLabs 音效

通过 inference.sh CLI 根据文本描述生成音效。

音效

快速开始

需要 inference.sh CLI(belt)。安装说明

belt login

# Generate a sound effect
belt app run elevenlabs/sound-effects --input '{"text": "Thunder rumbling in the distance"}'

参数

参数类型描述
text字符串音效描述(最多 1000 个字符)
duration_seconds数字时长为 0.5-22 秒(可选,省略时自动设置)
prompt_influence数字0-1,控制对提示词的字面理解程度(默认值:0.3)

示例

电影音效
# Epic trailer hit
belt app run elevenlabs/sound-effects --input '{"text": "Cinematic braam, deep bass impact"}'

# Suspense drone
belt app run elevenlabs/sound-effects --input '{
  "text": "Dark atmospheric drone, tension building, horror",
  "duration_seconds": 10
}'

# Whoosh transition
belt app run elevenlabs/sound-effects --input '{
  "text": "Fast cinematic whoosh transition",
  "duration_seconds": 1.5
}'
自然与环境
# Rain
belt app run elevenlabs/sound-effects --input '{
  "text": "Heavy rain on a tin roof with occasional thunder",
  "duration_seconds": 15
}'

# Forest ambience
belt app run elevenlabs/sound-effects --input '{
  "text": "Forest ambience with birds chirping and gentle wind",
  "duration_seconds": 20
}'

# Ocean waves
belt app run elevenlabs/sound-effects --input '{
  "text": "Ocean waves crashing on a beach, calming",
  "duration_seconds": 15
}'
游戏音频
# Power-up
belt app run elevenlabs/sound-effects --input '{
  "text": "Retro game power-up sound, ascending tones",
  "duration_seconds": 1
}'

# Explosion
belt app run elevenlabs/sound-effects --input '{
  "text": "Sci-fi laser explosion, futuristic",
  "duration_seconds": 3
}'

# UI click
belt app run elevenlabs/sound-effects --input '{
  "text": "Soft UI button click, subtle and clean",
  "duration_seconds": 0.5
}'
日常声音
# Doorbell
belt app run elevenlabs/sound-effects --input '{"text": "Classic doorbell ring"}'

# Typing
belt app run elevenlabs/sound-effects --input '{
  "text": "Mechanical keyboard typing, fast, clicky",
  "duration_seconds": 5
}'

# Notification
belt app run elevenlabs/sound-effects --input '{
  "text": "Pleasant notification chime, positive",
  "duration_seconds": 1
}'

提示词影响程度

控制模型按照字面意思理解描述的程度:

值效果适用场景
0.0非常宽松地理解创意、出人意料的效果
0.3平衡(默认值)通用场景
0.7接近描述对音效有特定需求
1.0非常严格地按字面理解精确复现声音
# Loose interpretation - creative result
belt app run elevenlabs/sound-effects --input '{
  "text": "Magical fairy dust sparkle",
  "prompt_influence": 0.1
}'

# Literal interpretation - precise result
belt app run elevenlabs/sound-effects --input '{
  "text": "Single gunshot, pistol, indoor range",
  "prompt_influence": 0.8
}'

提示词技巧

描述具体:“金属屋顶上的大雨” > “雨声”

包含背景信息:“在碎石路上缓慢行走的脚步声” > “脚步声”

描述氛围:“阴森的风穿过废弃建筑呼啸而过” > “风声”

指定材质:“玻璃在混凝土地面上碎裂” > “玻璃破碎”

工作流:为视频添加音效

# 1. Generate sound effect
belt app run elevenlabs/sound-effects --input '{
  "text": "Dramatic reveal swoosh with bass drop",
  "duration_seconds": 2
}' > sfx.json

# 2. Merge with video
belt app run infsh/video-audio-merger --input '{
  "video_file": "video.mp4",
  "audio_file": "<sfx-url>",
  "preserve_original_audio": true
}'

使用场景

  • 视频制作:转场、撞击、环境音
  • 游戏开发:UI 音效、效果、环境音
  • 播客:提示音、转场、氛围音
  • 电影/动画:拟音、环境音、配乐元素
  • 演示文稿:吸引注意力的声音提示
  • 社交媒体:短视频内容音频

相关技能

# ElevenLabs music generation
npx skills add inference-sh/skills@elevenlabs-music

# ElevenLabs TTS (combine voice with effects)
npx skills add inference-sh/skills@elevenlabs-tts

# AI music generation (Diffrythm, Tencent)
npx skills add inference-sh/skills@ai-music-generation

# Full platform skill (all apps)
npx skills add inference-sh/skills@infsh-cli

浏览所有音频应用:belt app list --category audio

评论

支持 Markdown