Sound Design 标志

Sound Design

社区
mrpaidsocial
sound-design

使用 ElevenLabs 为视频剪辑生成并混合完整音轨——生成一套音效(呼啸声、爆破声、撞击声、数字递增声、低音下潜、渐强音),检查并剔除约 1/3 音量近乎为零的废片,再将峰值标准化至 −3dB;根据风格描述词生成配乐(也可通过频谱分析和 BPM 估算,让风格匹配参考曲目);并提供经过验证的混音音量和 ffmpeg 验证方法,让所有音效和配乐与口播音轨融合。用户提出“声音设计”“SFX”“给这个剪辑加音效”“配乐”“给 VO 加背景音乐”“加呼啸声/撞击声”“开头加低音下潜”“让音乐听起来像这首曲子”或“混音/检查音频”等需求时使用;也可作为大型剪辑技能(branded-ad-edit、cinematic edits)中的声音处理环节。交付经过检查的音频文件和混音数值;口播生成和片段放置由剪辑技能负责。

Add to TypingMind

概览

发布者mrpaidsocial
代码仓库mrpaidsocial-video-editor-agent
技能名称sound-design
星标数
114
复刻数
34
附带文件
4
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 4 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 mrpaidsocial 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Sound Design AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/mrpaidsocial/mrpaidsocial-video-editor-agent/tree/main/.claude/skills/sound-design
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mrpaidsocial/mrpaidsocial-video-editor-agent.git /tmp/mrpaidsocial-video-editor-agent
mkdir -p .claude/skills
cp -r /tmp/mrpaidsocial-video-editor-agent/.claude/skills/sound-design .claude/skills/sound-design
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Sound Design,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Sound Design。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Sound Design 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Sound Design

SFX + music beds for video edits, via the ElevenLabs API. The hierarchy never changes: the voiceover is dominant, SFX punctuate, the bed is felt, not heard. Every number below came from shipped edits that survived client review — treat them as defaults, not suggestions.

Requirements

  • ELEVENLABS_API_KEY — export it, or put ELEVENLABS_API_KEY=… in a .env at the repo root. Both scripts read the environment first, then walk up from cwd looking for a .env. They error clearly if neither is set. Never hardcode the key.
  • ffmpeg + ffprobe on PATH (or FFMPEG_PATH / FFPROBE_PATH env vars).
  • Node >= 20 (the scripts use global fetch).
  • python3 (stdlib only) for the optional BPM estimator in references/style-matching.md.

1. SFX kit — scripts/gen-sfx.mjs

Endpoint: POST https://api.elevenlabs.io/v1/sound-generation with body {"text": prompt, "duration_seconds": d, "prompt_influence": 0.6} and header xi-api-key. duration_seconds minimum is 0.5 — the API 400s below it (the script clamps).

The one non-negotiable: audit every file. Roughly 1/3 of generations come back near-silent or quiet. A kit that skips the audit ships hits nobody hears. The script automates the whole loop:

bash
node .claude/skills/sound-design/scripts/gen-sfx.mjs kit.json sfx/

kit.json is a list of {name, duration, prompt} (see assets/kit.example.json for a proven starter kit):

json
{
  "normalize_db": -3,
  "min_peak_db": -12,
  "effects": [
    { "name": "stamp-slam", "duration": 0.8,
      "prompt": "loud heavy thud slam impact, stamp hitting a desk, punchy bass" }
  ]
}

Per effect it: generates → measures the peak with ffmpeg volumedetect → any file peaking below min_peak_db is a dud, regenerated once with "loud, punchy: " prepended → then the whole kit is peak-normalized to −3dB (quiet survivors get auto-boosted, hot ones trimmed) so composition volume values mean the same thing for every file. It also flags files whose first sound starts later than ~0.15s (late onsets land off-beat — regenerate those with "sharp attack" in the prompt or trim the head) and writes durations.json for the composition builder.

Prompt-writing tips that held up:

  • Name the physical source + character: "stamp hitting a desk, punchy bass", not "impact sound". Add "single" for one-shots, "dry, no music" to stop the model inventing a score behind the effect.
  • Whooshes are a taste risk. A reviewer on a shipped edit killed every whoosh/swoosh as "cheesy". Default transitions to silence or a soft pop; reserve whooshes for section cuts (see mixing rules below).
  • Match sound semantics to on-screen motion: a counter draining to zero gets a power-down / falling pitch, never a rising tick. A rising sound on a "losing" beat gets flagged in review.

2. Music bed — scripts/gen-music.mjs

Endpoint: POST https://api.elevenlabs.io/v1/music with body {"prompt": "...", "music_length_ms": N}.

bash
node .claude/skills/sound-design/scripts/gen-music.mjs \
  --prompt "..." --seconds 32 --out music/bed.mp3

The script pre-checks the prompt, requests a couple of padded seconds by default, trims to length with a fade-out, and reports duration + peak.

ToS trap — artist names in prompts → HTTP 400 (film and brand names are likely filtered the same way). "In the style of " fails; the 400 body often includes a usable prompt_suggestion, which the script surfaces. Describe the STYLE in words instead. A bed prompt should cover, in one sentence each:

  • genre ("dark cinematic electronic underscore")
  • bpm ("around 120 bpm")
  • drum character ("tight punchy kick, quiet ticking hi-hats")
  • bass ("deep sustained sub bass")
  • melody policy ("minimal melodic content, no lead melody")
  • energy arc ("steady energy with a gentle build in the final third")
  • mix intent — always include verbatim: "mixed quiet and dry to sit under a spoken voiceover"
  • "no vocals"
  • "seamless loop feel"

To match a reference track the user hands you ("make it feel like this"), do NOT try to name or describe the song — profile it and prompt by descriptors only. Full workflow, including the spectrogram read and a ~30-line BPM estimator, in references/style-matching.md.

Generated tracks often open with a 2–4s low-energy warm-up. If the bed must slap from frame one (paired with a sub-drop open), scan per-second volumedetect means over the first ~10s, find where energy plateaus, and cut the bed with -ss <onset> plus a 0.25s fade-in.

3. Sub-drops / risers as openers

The single highest-impact opener: a short sub-drop under the first frame. Generate it through the SFX endpoint (add it to kit.json):

json
{ "name": "sub-drop", "duration": 1.2,
  "prompt": "massive cinematic sub bass drop, falling pitch, punchy, no music" }

Verify the sub is actually there — laptop speakers can't hear it, and the model sometimes returns a mid-range "boom" with no real low end:

bash
# low-band energy: max here should be within ~6dB of the file's full-band max.
# 20dB+ down = no real sub — regenerate.
ffmpeg -i sfx/sub-drop.mp3 -af "lowpass=f=120,volumedetect" -f null -

# 0–800Hz spectrogram: a real drop is a dense low block with a falling-pitch trail;
# a dud is empty below ~120Hz. Compare against a known-good drop side by side.
ffmpeg -i sfx/sub-drop.mp3 -lavfi "showspectrumpic=s=1024x400:stop=800" drop-spec.png

After the final render, re-check the opener window the same way (-ss 0 -t 1.4 + lowpass=f=120,volumedetect on the master).

4. Mixing into the composition

Order of operations matters — every ratio below assumes step 1 happened first.

  1. Loudness-normalize the VO first, before setting any bed or SFX level:

    bash
    ffmpeg -i vo.wav -af loudnorm=I=-14:TP=-1.2:LRA=11 -ar 48000 vo-norm.wav

    Mixing against an un-normalized VO makes every number below wrong.

  2. Music bed: track volume ~0.13–0.18 (0–1 linear gain — HyperFrames data-volume, or the track-volume slider in any NLE). Against a loudnorm'd VO and a bed peaking near 0dB that puts the bed ~19–20dB under VO peaks. Start at 0.15; offer 0.18 as the "louder" option. In a word gap the bed should raise the gap's mean level by a few dB versus a no-music render — present, not competing.

  3. SFX: per-hit base volume × one kit master gain, capped. Keep per-hit taste values in the ~0.28–0.5 range by type, then scale the whole kit with a single master gain (~1.95 proved right for a −3dB-normalized kit against a loudnorm'd VO), capping the product at 0.8 so slams never bury the voice:

    Hit typebase× 1.95, cap 0.8
    soft whoosh0.28–0.350.55–0.68
    pop / tick0.320.62
    count-up / cha-ching0.40–0.450.78–0.80
    stamp / impact / sub-drop0.500.80 (capped)

    The one-number kit gain is the point: "everything a touch louder/quieter" becomes a single edit instead of forty.

  4. Placement rules (each of these was learned in review):

    • Land every hit on the exact word ("fire" SFX on the word fire), not at the sentence start.
    • Whooshes on section cuts only — a whoosh on every card reads cheesy.
    • One biggest swell per video (usually the opener sub-drop or the final reveal). If everything is big, nothing is.

5. Verify the mix — in dB, never by ear alone

Every audio bug ever caught in this pipeline was found by measuring, not listening.

bash
# window around a hit (hit at t=12.4, file 0.8s): start ~0.05s early
ffmpeg -ss 12.35 -t 0.9 -i final.mp4 -af volumedetect -f null -

# a quiet window — a word gap with no hits and no big VO peak
ffmpeg -ss 8.0 -t 0.8 -i final.mp4 -af volumedetect -f null -

# integrated loudness of the master
ffmpeg -i final.mp4 -af ebur128 -f null -    # read the final "I:" line

Expectations:

  • A hit window whose peak matches the VO's peaks is audible-subtle; +3–5dB over is punchy. A hit window that measures the same as the quiet window means the hit is missing or buried — fix placement or volume.
  • The quiet window should sit a few dB above the same window in a no-music render (the bed is present) but far below VO peaks (the bed isn't competing).
  • Integrated loudness target: ~−14 to −13 LUFS. Much below −14, the whole mix is quiet for social feeds; above ~−12, the limiter is doing the mixing for you.

Files

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Sound Design AI 技能有什么作用?

使用 ElevenLabs 为视频剪辑生成并混合完整音轨——生成一套音效(呼啸声、爆破声、撞击声、数字递增声、低音下潜、渐强音),检查并剔除约 1/3 音量近乎为零的废片,再将峰值标准化至 −3dB;根据风格描述词生成配乐(也可通过频谱分析和 BPM 估算,让风格匹配参考曲目);并提供经过验证的混音音量和 ffmpeg 验证方法,让所有音效和配乐与口播音轨融合。用户提出“声音设计”“SFX”“给这个剪辑加音效”“配乐”“给 VO 加背景音乐”“加呼啸声/撞击声”“开头加低音下潜”“让音乐听起来像这首曲子”或“混音/检查音频”等需求时使用;也可作为大型剪辑技能(branded-ad-edit、cinematic edits)中的声音处理环节。交付经过检查的音频文件和混音数值;口播生成和片段放置由剪辑技能负责。

为什么在 TypingMind 中使用 Sound Design?

因为您只需安装一次,就能搭配任何模型使用。Sound Design 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Sound Design?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/mrpaidsocial/mrpaidsocial-video-editor-agent/tree/main/.claude/skills/sound-design。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Sound Design?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Sound Design 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Sound Design 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Sound Design AI 技能免费吗?

mrpaidsocial 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇