Communitygithub.com

suggest-sfx — SFX 特效制作

AI视频编辑器管道的第4步:分析视频节拍和旁白,提出与它们同步的、品味良好的音效,利用(并扩展)共享的可复用SFX库,然后渲染带有SFX混音的试听预览。

suggest-sfx — SFX 特效制作 是什么?

此技能是 AI 视频编辑器工作流程的第四步,专注于声音效果(SFX)的添加。它接收已完成剪辑和视觉节拍标记的视频,通过分析时间线、编辑后的转录文本和品牌指南(第10节),以精心设计的方式为视频添加同步音效。工作流程的核心是一个可增长的、跨视频复用的共享SFX库,优先重用现有剪辑,仅在必要时使用 ElevenLabs Sound Effects API 生成新声音。所有音效计划都记录在 `sfx-plan.json` 文件中,并必须经过用户的严格审核(USER-AUDIT gate)才能进行混音。该技能支持 Claude Code、Cursor 等 AI 编码代理,它使用 `tools/mix_sfx.py` 进行混音并生成预览,强调了在叙述声下的微妙音效设计,避免了夸张。它不支持音乐背景(那是最终混音步骤的任务),也不处理视觉节拍分析(那是 /make-tsx 的任务)。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/raisaksham377-bot/youtube-shorts-ai-editor/tree/HEAD/.claude/skills/suggest-sfx

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

suggest-sfx — SFX 制作流程

管道第4步:获取已完成剪辑并嵌入视觉节拍的主视频,添加品味良好的音效,使其与视觉节拍和旁白同步,并使用共享且不断增长的 SFX 库。以协作和逐节拍的方式工作;用户审查计划并给出反馈。

与管道的其他部分结构相同:一个声明式计划 (sfx-plan.json) 是真理之源 → 一个工具消费它 (tools/mix_sfx.py) → 一个库不断增长 (media/library/sfx/) → 一个严格的用户审核步骤,在混音之前进行。

声音品味是一项品牌契约——每次都要阅读 brand.md §10。房屋风格是冷静/高级(Linear / Anthropic / Vercel),强调感觉而非听觉,始终低于旁白。不要像 MrBeast 那样响亮。

输入(每次会话首先阅读)

  • brand.md §10(声音设计) — SFX 品味契约:微妙性、密度、调色板、电平、同步、标志性主题、来源政策。不可商议。
  • videos/video-N/work/timeline.json — 镜头及其主时间跨度 + type (cutaway/overlay)。剪辑的进入/退出边界是你的转场(whoosh)候选。
  • videos/video-N/work/edited-transcript.json — 主时间轴上的逐词时间戳(毫秒)。将这些词作为同步提示(在“boom”上弹出音效,在“free”上响起铃声)。
  • 镜头源文件 remotion/src/shots/video-N/*.tsx — 内部的动画帧是实际视觉节拍发生的地方(切换翻转、图片显示、翻页、徽标弹出)。阅读镜头,将其本地帧转换为主时间:at_s = shot.master_in_s + local_frame / shot.fps。不要猜测——提示点必须精确落在事件发生的帧上。
  • media/library/sfx/catalog.json + palette.json — 你将从中提取和扩展的库。

库 (media/library/sfx/) — 持久资产

  • media/library/sfx/palette.json — 生成配方:通用的、可重用的声音 ID + 提示词 + 时长 + 标签。这是库应包含内容的真理之源。
  • media/library/sfx/catalog.json — 存在内容的清单:每个剪辑的 {id, file, category, tags, duration_s, peak_dbfs, loudness_lufs, source, model, license, prompt, used_in}。由 gen_sfx.py 写入。
  • media/library/sfx/clips/*.mp3 — 响度归一化的剪辑(约 −20 LUFS,−1.5 dBFS 峰值),因此计划中每个提示点的 gain_db 在感知上是有意义的。
  • **始终优先使用库。**在生成之前先重用现有剪辑。以通用方式命名/标记剪辑(ui-toggle-on,whoosh-soft,pop-reveal),以便未来视频重用它们——库是持久资产,每个视频只是从其中提取一次。只有真正缺失的声音才添加到 palette.json 并生成。(必须存在于 Remotion 镜头内的 SFX 则通过 staticFile() 放入 media/library/sfx/。)

工作流程

  1. 读取 品牌 §10 + 时间线 + 转录文本 + 镜头源文件 + 目录。提取精确的提示时间:对于每个候选节拍,在镜头中找到视觉时刻的本地帧和/或在转录文本中定位旁白词,并将其转换为主时间秒数。
  2. 如果尚未确定,则先与用户共同决定品味(表现力、密度、使用哪种、来源)——然后应用品牌 §10。不要重新询问已做出的决定。
  3. 按功能优先提出提示列表。对于每个节拍,根据品牌 §10,确定其需要什么:运动 (whoosh) · 张力 (riser) · 强调 (impact/pop) · 瞬间 (click)。为关键转场、显示和品味良好的点击序列评分;一个 3-4 个镜头的点击序列算作一个手势。将可选的纹理标记为 "optional": true。为 2-3 个最重要的时刻分层(构建-释放):在脚本化的显示上使用 riser→impact,或者 whoosh→pop 让剪辑脱颖而出——在计划中,一个层次是在相同/相邻的 at_s 上的两个事件,它们叠加。将每个提示点与视觉节拍以及经常是确切的词同步。
  4. **优先从库中获取。**对于计划所需的每个不同声音,如果合适,重用目录中的剪辑。对于缺失的,将通用配方添加到 palette.json 并生成:python tools/gen_sfx.py(ElevenLabs Sound Effects API → 归一化剪辑 → 目录)。仅在生成效果不佳时回退到策划的免版税声音;无论哪种方式,记录 source + license。
  5. 编写 videos/video-N/work/sfx-plan.json — 每个提示点一个事件,at_s 基于主时间轴。(结构如下。)
  6. **用户审核关卡(严格)。**呈现已解析的提示表(python tools/mix_sfx.py <plan> --print)并在混音前获得用户的批准/反馈。这与 cuts.json / 编辑计划的关卡相同。
  7. 一旦批准,混音试听预览: python tools/mix_sfx.py videos/video-N/work/sfx-plan.json → videos/video-N/output/video-N-first60-sfx.mp4(或计划的 render.out)。使用 --preview <file> 在任何合成版本上进行混音。对话下使用侧链压缩(light sidechain duck)+ 安全限制器。根据用户的反馈进行迭代(增益、时机、添加/删除提示点)——重新打印,重新混音。
    • **用数字验证可听性,而不是寄希望于它。**混音后,在每个提示点窗口计算混音音频与纯语音预览的 RMS 差值:故事关键提示点应增加 ≥ +4 dB,纹理 +1–3 dB。不可听见的敲击声会隐藏在提示表中——不要提交你尚未确认能落地的提示点。
    • **瞬态剪辑增益陷阱。**短暂的敲击类剪辑(敲门/盖章/按键/卡扣)在达到 −20 LUFS 响度目标之前就已经触及了 −1.5 dBFS 的峰值限制,因此它们目录中的响度比持续剪辑低约 3–5 dB。它们在计划中的 gain_db 必须比品牌 §10 表格暗示的高出 ~3–5 dB(点击/盖章实际落地在 0..+1 dB)。上面的可听性检查正是为了发现这个问题。
    • 短视频格式下的校准。在短视频近乎连续的旁白下(约 2.7 词/秒,间隙很少),品牌 §10 的增益表整体偏低 4–8 dB——侧链压缩和语音掩蔽会吞噬一切。短视频格式下的落地值:转场/whoosh −3,故事弹出/冲击 0..+3,盖章/卡扣 0..+7,分层英雄 riser 0..+2。从那里开始短视频计划的增益,而不是从长视频格式的表格开始。
    • **完全位于连续语音下方的提示点永远无法测量——接受它们只是感觉不听到,或者删除它们。**短视频格式的点击序列在任何增益下都测量为 +0 dB(实验性地推高到 +9:结果相同)——当语音活动时,侧链压缩抑制了所有安静剪辑。将此类提示点设置在合理的 +6 左右,让它们存在于单词间隙中,或者删除它们;不要用增益去追逐它们(一个停顿会让它们峰值)。
    • **使用紧凑窗口测量瞬态。**在 0.6 秒的 RMS 窗口中,一个 50 毫秒的点击会被稀释到无,并且一个相邻的响亮提示点可能会渗入并伪造通过(一个点击因为一个 0.17 秒后的铃声共享了窗口而“测量”为 +9.8 dB)。对于 snap/pop/zap/stamp 使用约 0.3 秒的窗口,并在其最后三分之一处测量 riser(其能量集中在结尾)。
    • **角色节拍的电平——嘈杂的纹理无法通过增益修复(在测试中被拒绝了两次)。**即使设置为 −4 dB,静态/故障/嗡嗡声的剪辑在语音上听起来像噪音;降低它们只会让噪音变小。如果用户说“嘈杂”,则更换声音的性格(干净的机械卡扣)或使用静音——参见品牌 §10 关于“旁白下无静态/故障纹理”的规定。
  8. **保存回库。**新剪辑保留在库和目录中(它们会被带入下一个视频)。更新 used_in。一组安全/科技主题的剪辑(固态敲门、故障电击、扫描嗡嗡声、陷阱卡扣、盖章打击、轻快键盘录入)可作为可重用的库资产用于未来视频。

sfx-plan.json(真理之源)

{
  "master": "videos/video-1/reference/master.mp4", "master_fps": 60,
  "catalog": "media/library/sfx/catalog.json",
  "render": {
    "preview": "videos/video-1/output/video-1-preview.mp4",     // 用于混音的合成预览
    "out": "videos/video-1/output/video-1-first60-sfx.mp4",
    "end_s": 60, "duck": true
  },
  "events": [
    { "at_s": 2.55, "sfx_id": "ui-toggle-on", "gain_db": -13, "shot": "IntroClaudeCode",
      "cue": "Free Image Generator toggle flips ON (local f66-82)", "note": "signature click" },
    { "at_s": 13.03, "sfx_id": "ui-click-soft", "gain_db": -18, "optional": true, "cue": "card locks" }
  ]
}
  • at_s — 主时间轴秒数(与 timeline.json / edited-transcript.json 使用相同的时钟)。
  • gain_db — 相对于剪辑归一化电平的分贝值(越小越安静)。品牌 §10:−12 到 −18。
  • optional: true — 可拒绝的纹理;mix_sfx.py --no-optional 会丢弃它。建议自由使用,这样审核可以集中在核心集上。
  • cue / note — 人类可读的锚点(确切的帧/词),使审核清晰易懂。

工具速查

  • 增长库:python tools/gen_sfx.py [--dry-run] [--only id1,id2] [--force] [--renorm]。 --renorm 会重新平衡现有剪辑以达到响度目标(无需 API/付费)。需要 ELEVENLABS_API_KEY。
  • 打印提示表(审核产物):python tools/mix_sfx.py <plan> --print [--no-optional]。
  • 混音:python tools/mix_sfx.py <plan> [--no-optional] [--no-duck] [--end S] [--out path]。
  • 临时渲染/样本放在暂存区,而不是项目目录中。

原则(房屋风格——请应用)

  • 始终低于旁白。 SFX 是调味料;旁白是主角。对它们进行侧链压缩,保持安静,永远不要让任何音效超过旁白。静音也是混音的一部分。
  • **仅用于关键转场和显示。**为节拍的关键时刻评分,而不是每一个子帧。密度约为 8–12 个提示点/分钟。超过此密度的全部标记为 optional。
  • **与视觉节拍和词同步。**点击精确落在切换翻转的时刻;弹出精确落在显示的时刻;whoosh 精确落在切出镜头的时刻。偏移 100 毫秒即被视为粗糙——使用真实的帧/词时间。
  • **可重用优先。**使用通用名称和标签,使库能在各个视频中累积。在生成之前先重用现有内容。库是比这个视频更持久的交付物。
  • **功能优于感觉。**根据声音的职责来选择——运动/张力/强调/瞬动(品牌 §10)——而不是浏览目录寻找“感觉不错”的东西。相同的基础声音承担了繁重的工作;更多并不意味着更好。保持一致性的标志性主题(切换点击会重复出现)。
  • **为重大时刻分层,其余保持单一。**构建-释放(riser→impact,whoosh→pop)是 SFX 发挥价值的地方——但仅限在 2-3 个主角节拍上。其他所有地方,一个声音,然后静默。
  • **采用结构,而非戏剧性。**我们使用专业编辑模型,但保持冷静/高级:没有钹片紧迫的 riser,没有预告片式的重击,没有在每个动作上都使用 whoosh。
  • **混音前先审核。**用户首先阅读并批准 sfx-plan.json。不可协商。
  • **不是音乐。**这里不处理音乐背景——那是最终混音步骤的工作(轨道 + 自动侧链压缩 + 最终响度)。

完成 = 库中包含所需剪辑(已编目并注明来源+许可),sfx-plan.json 已编写完毕并经过用户审核,SFX 混音预览已渲染并通过听觉抽查,并且任何新剪辑和 used_in 已保存回库。如果品味决定发生变化,请更新 brand.md §10 / 记忆。

Individual skills in this repo

This repo contains 8 individual skills — each has its own dedicated page.

raisaksham377-bot/youtube-shorts-ai-editor

Makes this repo's videos look like YOUR channel instead of the house default — interviews you for palette, fonts, wordmark, motion energy, delivery specs and SFX taste, then rewrites brand.md + remotion/src/brand.ts + remotion/src/fonts.ts together and renders a proof card so you SEE it. Use whenever the user wants to set up or change their brand, rebrand the repo, "make it my colors/fonts", change the accent color, set their wordmark, adjust the motion feel, or asks why their videos look like someone else's. Run it once before the first video. Not for per-video art direction (that is /make-tsx) and not for thumbnails, which are deliberately louder than the brand (that is /packaging).

raisaksham377-bot/youtube-shorts-ai-editor

Build a split-frame vertical Short/Reel (1080x1920) from talking-head footage — real face cropped into the bottom half throughout, bespoke motion-graphic beats + word-by-word captions in the top half. Use when the user wants a "vertical short", "reel", "9:16 video", "split-frame" format, asks to keep their face on screen the whole time while graphics play above it, wants an in-context app/UI mockup moment (like clicking a button in a browser) without cutting away from their face, or hits caption-pill-covers-my-face / no-GPU-rendering / audio-duration-mismatch problems while building one. Covers the crop-offset technique for framing the face, the caption-pill safe zone, the top-half-only UI-mockup scene pattern, the full pipeline from raw footage to final SFX mix, and the environment gotchas (no NVIDIA GPU, AAC priming gap, comp-native transcode). Topic-agnostic — this is a layout/technique skill, not tied to any one video's content. Builds on /clean-cut, /make-tsx conventions, and /suggest-sfx; doesn't rep...

raisaksham377-bot/youtube-shorts-ai-editor

Voice/audio cleanup step of the AI Video Editor pipeline — diagnose a video's background noise, pick the right denoise method, and produce a cleaned master (voice isolated, levels preserved, video stream copied). Use when the user wants to "clean the audio / voice", "remove background noise", "denoise", "isolate voice", fix outdoor/room/water/hum/hiss noise, run ElevenLabs Voice Isolator or local RNNoise, A/B denoise methods, or produce a cleaned master for a video-N in this repo. Covers diagnosing the noise (spectrogram + levels), choosing eleven vs rnnoise by noise type, the sample A/B, tools/clean_voice.py, preserving levels (RMS-match, not LUFS), and rewiring the pipeline to the clean master. Not the SFX/music mix (that is /suggest-sfx + the final-mix step) and not the cut (that is /clean-cut).

raisaksham377-bot/youtube-shorts-ai-editor

Step 1 of the AI Video Editor pipeline — turn raw talking-head footage into a clean master cut. Use when the user wants to "clean cut", "cut the raw footage", "remove filler / dead air / bad takes", "tighten the pacing", produce cuts.json, run the cut editor, or render a cleaned preview/master for a video-N project in this repo. Covers audio extraction, AssemblyAI transcription, authoring cuts.json (keeps/cuts/fluff categorized), the cut policy (content-aggressive, pause-natural ~0.5s), QA + review docs, the local cut-editor UI, tight/natural previews, the final 4K60 render, and producing edited-transcript.json as the handoff to /make-tsx. Not for building TSX overlays (that is /make-tsx) or the raw TSX authoring rules (that is vidtsx-2d-generator).

raisaksham377-bot/youtube-shorts-ai-editor

Turn static SCREENSHOTS into a simulated screen recording (TSX) — a fake screencast with an animated cursor that eases to targets and clicks, a browser URL bar that updates per page, hard-cut navigations, in-page filter crossfades, smooth scroll, and a ken-burns zoom onto the payoff. Use when a beat needs to show a walkthrough of a web app / dashboard / settings page and you'd rather build it from screenshots than get (or ask for) a real screen recording — "fake a screen recording", "turn these screenshots into a screencast", "simulate clicking through the dashboard", "animate this UI walkthrough", "cursor moving through the app". Built on remotion/src/lib/screencast.tsx. This is a technique WITHIN step 2 (make-tsx): defer timeline/render/bake orchestration to make-tsx and raw crash-free TSX rules to vidtsx-2d-generator. Not for a single static page clone (use WebBrowserFrame directly) and not when the point is genuine proof of real speed/output (use a real recording).

raisaksham377-bot/youtube-shorts-ai-editor

Step 2 of the AI Video Editor pipeline — build the visual beats (Remotion TSX shots) over a project's master cut and bake a composited preview. Use when the user wants to add/edit overlays or full-screen animation segments, "make a shot / beat", implement an edit plan or a v2 update, retime a beat to the narration, re-render shots, or re-bake the video-N preview in this repo. Covers reading the plan + edited-transcript + brand + reusable kit, authoring shots library-first, syncing reveals to word times, updating timeline.json (cutaway vs overlay), rendering, verifying by screenshot, and baking with tools/bake.py. Defers raw TSX authoring rules to vidtsx-2d-generator and the cut itself to clean-cut.

raisaksham377-bot/youtube-shorts-ai-editor

Generates click-optimized YouTube packaging — 3 thumbnail bets under one fixed title, engineered for YouTube's built-in A/B/C thumbnail test, plus a value-forward description, then renders the thumbnails as real images. Use this whenever you want to package a long-form video or turn a video idea into titles and thumbnails. Triggers include how would you package this, title ideas for, thumbnail concept, package this video, A/B variations, and make this clickable. Calibrates to your channel's own CTR data if you have it. Long-form only, never Shorts. Not for non-YouTube copywriting.

raisaksham377-bot/youtube-shorts-ai-editor

Generate production-ready 2D TSX video files for VidTSX (Remotion-based) from a shot, scene, or video description. Use whenever the user wants to create or generate a VidTSX video, a 2D TSX shot or scene, an animated clip, title card, or rendered motion graphic — including when they describe a visual animation they want built, or say "make a shot", "build this scene", "generate the TSX", or "turn this into a video". Covers the mandatory file structure and composition config, dimension presets (horizontal/vertical/square), six style presets (minimalist, memphis, neo-brutalism, glassmorphism, neon, corporate), and the hard rules that keep renders from crashing, covering frame-based animation only (no useState/useEffect/setTimeout), strictly monotonic interpolate ranges, Easing.bezier not wrapper syntax, and the chroma-js and @remotion/paths import gotchas. Not for 3D/three.js compositions, general React work, or editing video files.

相关技能