SkillsGrove
SkillsGrove/영상 제작/ucsandman/marketing-studio/audio-track

audio-track

설치

$npx skills add https://github.com/ucsandman/marketing-studio --skill audio-track
$git clone --depth 1 https://github.com/ucsandman/marketing-studio.git /tmp/marketing-studio && mkdir -p ~/.claude/skills && cp -r /tmp/marketing-studio/skills/audio-track ~/.claude/skills/audio-track
이 Agent Skill을 설치해 주세요: https://github.com/ucsandman/marketing-studio/tree/66cd1c30919f1144c60aed3692a915bb0b2c6238/skills/audio-track — 먼저 SKILL.md와 스크립트를 읽고, 안전하다고 확인한 뒤에만 제 skills 폴더에 설치해 주세요.

요약

원문 설명 · MITUse when the user wants music, voiceover, narration, or a soundtrack added to a video asset, OR wants standalone generated audio for any purpose (e.g. "/audio-track", "add music to the launch video", "narrate the demo", "make a 30 second music sting", "generate a voiceover mp3", "jingle for the intro").
아래 SKILL.md는 ucsandman/marketing-studio(커밋 66cd1c3)에서 MIT 라이선스에 따라 게시한 것입니다. 본문은 변경하지 않았으며, 파일 상단의 메타데이터만 생략하고 이미지는 링크로 표시하며 매우 긴 파일은 일부만 표시합니다. Copyright 2026 Wes Sander. 라이선스: LICENSE. 지침 파일만 표시되며 스크립트 등은 원본 저장소를 참고하세요.

Audio Track

REQUIRED BACKGROUND: marketing-studio skill. Work in ${CLAUDE_SKILL_DIR}/../... Read ${CLAUDE_SKILL_DIR}/../../docs/playbook/audio.md first (endpoints, ducking, manifest contract).

Every film gets this pass; it is not opt-in (CLAUDE.md: a film is not done without audio, and audio means narration). node scripts/check-audio.mjs <brand> --project <product> is the exit gate for all three recipes that touch video.

Three modes; pick by what the target is:

  • Bespoke film (studio/src/films/<brand>/, e.g. PostflopFilm) — post-render scoring with scripts/build-<brand>-film-audio.mjs + scripts/score-film.mjs. Recipe A0.
  • Video soundtrack — a directed LaunchVideo composition scored with music and voiceover inside the product workspace. Recipe A.
  • Standalone audio — a music track and/or narration mp3s delivered as files (a sting, a jingle, a narration for something outside this studio). Recipe B.

Both need ELEVENLABS_API_KEY in the repo .env (missing key = feeder exits 2; videos stay silent). Generation costs real money: one pass, trim copy rather than regenerate blindly. Free tier returns 402; Starter or above required.

Recipe A0: bespoke film

  1. Shared-repo guard + toolchain per marketing-studio.
  2. Copy source of truth: scripts/build-<brand>-film-audio.mjs (copy postflop's). Narration lines carry the film SECOND they start on, computed from the film's timeline.ts so a re-timed shot moves its line with it; SFX cues carry the frame the shot lands something on (Stamp/Rule/click constants + the shot's from), max two per beat. Budget ~2.6 words/second minus a 150ms breath per line.
  3. Run it (VO lines and the exact-length bed hit the API once; re-runs reuse files, --force <id,...|music> regenerates). Read the printed start/end table: every line inside its shot.
  4. node scripts/score-film.mjs <brand> <product-film> --project <product> — refuses overlapping lines (trim copy, re-run the builder) and zero-VO manifests; masters by measured gain and verifies the DELIVERED file (I within 0.5 of TARGET_I, TP <= -1).
  5. Listen-proof: node scripts/verify-cue.mjs <scored.mp4> <voStart> <voDur> on one narration window and one bed-only window (voice ~6 dB above the bed), then node scripts/check-audio.mjs <brand> --project <product> (exit 0), then SEND the scored file.

Recipe A: video soundtrack

  1. Shared-repo guard + toolchain per marketing-studio.
  2. Copy source of truth: scripts/build-<brand>-audio.mjs (copy the noban one for a new brand). VO lines are keyed by act, written FOR THE EAR ("dot gg", not ".gg"), one line per act, terse. Music prompt describes the brand's sonic character.
  3. Run it with --project <product> (music takes 1-3 min). Check every line's duration fits its act; trim TEXT if not, re-run with --force.
  4. Merge with --project <product>, then render into the product workspace using its public directory. Picture and sound consume the same shot plan; explicit audioRef maps voice independently of visual source IDs, while null means no narration.
  5. Listen-proof: verify the mp4 has an audio stream (ffprobe), then SEND the video — audio is approved by ear, by the user. Ducking feel (base 0.35 / duck 0.12) is tunable in studio/src/lib/audioMix.ts if redlined.

Recipe B: standalone audio

  1. Shared-repo guard per marketing-studio. The feeder code lives in the engine, but all generated audio lives in the product workspace.
  2. Music: node feeders/audio/client.mjs music --project <product> --brand <brand> --prompt "<sonic character>" --length-ms <n> --out <product-output>.mp3 (exact-length, commercially licensed on paid plans; 3s-120s). Voiceover: write {lines: [{id, text}]} to a temp JSON (text written for the ear), then run the voice feeder with --project <product> --brand <brand> and a product-owned output. Durations print as ... OK: <name> <ms>ms; probe --file <mp3> re-measures.
  3. Listen-proof: SEND the product-owned mp3(s) to the user. Machine loudness, beat, and cue reports remain incomplete until a human listens.
라이선스 전문 보기(MIT)
MIT License

Copyright (c) 2026 Wes Sander

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.