/motionforge:voice-and-timingfrom motionforge
Generates video voice-overs via TTS or user recordings, times every word, builds captions, and mixes audio to a loudness target.
Ships in motionforge. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The voice is the clock of the video. Get it right first; every scene is cued from its words.
Files (in videos/<slug>/audio/): lines/NN.wav (one file per script paragraph), voice.wav, words.json ([{"w","s","e"}], seconds), segments.json ([{"start","end","text"}]), lexicon.json, music.*, sfx/, mix.wav, captions.srt.
| Path | Cost | Notes |
|---|---|---|
| No voice | free | on-screen type carries the story; captions become the script |
| User's own recording | free | best authenticity; go to step 4 |
| Local TTS: Kokoro | free | runs on CPU; good in en, es, fr, hi, it, ja, pt-BR, zh; no Turkish/German/Korean voices |
| Local TTS: Piper | free | many languages incl. tr, de; each voice model has its own license, read its model card before commercial use |
| ElevenLabs API | paid per character | strong multilingual voices; the user's own key |
| OpenAI TTS API | paid per character / token | fast, several preset voices; the user's own key |
Voice cloning only with the documented consent of the person whose voice it is. Never clone from public videos, podcasts or other people's media.
script-and-hooks, approved). Count the characters that will be sent, spaces included:
python3 -c "import sys;print(len(open(sys.argv[1],encoding='utf-8').read()))" videos/<slug>/audio/tts.txtELEVENLABS_API_KEY, OPENAI_API_KEY). Never print them, never write them to a file in the repo, never put them in a commit. Personal voice IDs go in an untracked .env (e.g. ELEVENLABS_VOICE_ID), not in code.Until the yes, build with a scratch voice (a local TTS) and mark it "scratch, do not ship".
One file per paragraph makes retakes cheap and keeps pauses controllable. Apply lexicon.json replacements to the text before sending.
ElevenLabs
curl -sS -X POST "https://api.elevenlabs.io/v1/text-to-speech/$ELEVENLABS_VOICE_ID?output_format=mp3_44100_128" \
-H "xi-api-key: $ELEVENLABS_API_KEY" -H "Content-Type: application/json" \
-d @audio/lines/01.json -o audio/lines/01.mp3
# 01.json: {"text": "...", "model_id": "<model>", "voice_settings": {"stability": 0.5, "similarity_boost": 0.75, "speed": 1.0}}
OpenAI
curl -sS https://api.openai.com/v1/audio/speech -H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" -d @audio/lines/01.json -o audio/lines/01.wav
# 01.json: {"model": "<tts model>", "voice": "<voice>", "input": "...", "response_format": "wav"}
Kokoro (pip install kokoro soundfile) or Piper (piper --model <voice>.onnx --output_file audio/lines/01.wav < audio/lines/01.txt).
Then:
ffmpeg -i 01.wav -i 02.wav -filter_complex "[0]apad=pad_dur=0.35[a];[a][1]concat=n=2:v=0:a=1" -ar 48000 audio/voice.wav (extend for more lines).voice.wav before you animate. A voice change later shifts every cue.python3 tools/word_timings.py audio/voice.wav --out audio/words.json --segments-out audio/segments.json \
--language <iso> --model small --text audio/tts.txt
# <iso> is the Whisper code: en, tr, es, pt (for pt-BR), fr, de, zh (for zh-CN), ja, ko, hi
small model; medium or larger for tr, hi, ko and noisy recordings. Pass the language explicitly.--engine segments when word timestamps are poor:
ffmpeg -i audio/voice.wav -af silencedetect=noise=-35dB:d=0.18 -f null - 2>&1 | grep silence_;segments.json and words.json.Look words up by prefix after a given time, with locale-aware lowercasing:
const at = (words, prefix, after = 0, locale = "en") => {
const p = prefix.toLocaleLowerCase(locale);
const hit = words.find(x => x.s >= after - 0.01 &&
x.w.replace(/^["“'«]/, "").toLocaleLowerCase(locale).startsWith(p));
if (!hit) throw new Error(`word not found: ${prefix}`);
return hit.s;
};
// at(words, "launch") ; repeated word: at(words, "every", 38) ; Turkish: locale "tr"
Throwing on a missing word is deliberate: a changed script must break the build, not shift a cue silently.
Build caption chunks from words.json with the display text (digits allowed), not the spoken form.
| Rule | Vertical (9:16) | Horizontal (16:9) |
|---|---|---|
| Size of a chunk | 1–4 words, about 24 characters max | up to 42 characters per line, max 2 lines |
| Break after | a sentence end; a comma once the chunk has 2+ words | a sentence end; when the next word would pass 42 characters |
| Orphans | never leave a single word alone at the end of a sentence; pull it into the previous chunk | balance two lines to similar length |
| Minimum on screen | 0.6 s; if shorter, merge with a neighbour when the result still fits, otherwise extend into the gap | same |
| Overlap | none; a chunk ends when the next starts | same |
. ! ? … except abbreviations and initials: Dr. Mr. Mrs. Prof. St. vs. etc. e.g. i.e. U.S. U.K. Inc. Ltd. No., Turkish Dr. Prof. Doç. vb. vs. bkz. örn. yy., single-letter initials (J. Smith), and Turkish ordinals (3. adım). Add the video language's own list.renders/captions.srt (platform upload, accessibility).Targets: integrated −14 LUFS and true peak ≤ −1 dBTP for Reels/Shorts/TikTok/YouTube; −16 LUFS when the platform or client asks (podcast feeds, some broadcasters). Measure:
bash tools/loudness.sh measure renders/<slug>-v1.mp4 # integrated LUFS, LRA, true peak
bash tools/loudness.sh compare audio/voice.wav audio/mix.wav # is the voice still on top?
bash tools/loudness.sh normalize audio/mix.wav audio/mix-14.wav -14 -1.5 # two-pass, linear gain
Levels relative to the voice:
ffmpeg -i audio/voice.wav -i audio/music.mp3 -i audio/sfx.wav -filter_complex \
"[0]asplit=2[v][key];[1]volume=-20dB[m];[m][key]sidechaincompress=threshold=0.05:ratio=8:attack=20:release=300[md];\
[v][md][2]amix=inputs=3:normalize=0,loudnorm=I=-14:TP=-1.5:LRA=11[out]" -map "[out]" -ar 48000 audio/mix.wav
One-pass loudnorm misses the target by about half a LU; finish with tools/loudness.sh normalize (two-pass) and re-measure.
Own footage audio vs TTS. When the presenter's recorded speech and a TTS voice both appear:
-an, or muted in Remotion).
qa-review checks voice-only stretches against the full mix (parity within 1–2 LU).Music and effects licensing: the user's own, generated locally, or a license that allows the use (CC0, public domain, CC BY with credit). Record each file in assets/CREDITS.md.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub aykutucesai/motionforge --plugin motionforge7 skills in this plugin
/brand-kitCreate, load or check a brand.json (color roles, fonts with licenses, logo files, watermark, outro, voice and tone, do/don't) for videos made for a company, product or creator. Use when a video is for a brand, when the user shares a website, repository, logo or screenshots to match, or when brand colors/fonts/logos need to be applied consistently across videos./faceless-ugcMake videos without showing a real face, or UGC-style ad videos, by turning an avatar (a photo, an illustration or a 3D character) into a talking presenter - free and local (2.5D puppet, 3D character, kinetic type, hands/product only) or, with the user's own API key, through AI image-to-video and lip-sync providers (fal.ai, Wiro AI) or a lip-sync model they run themselves. Use when the user says faceless, no face, anonymous creator, avatar, talking photo, talking character, AI presenter, lip-sync, UGC, UGC ad, or wants a picture to speak a voice-over./motion-directorEntry point for making a motion design video with code (Reels, Shorts, TikTok, explainers, product clips, kinetic type). Use when the user asks for a video, reel, animated explainer, motion graphics, a voice-over turned into a video, or a cover/caption package for a video. Runs the whole job from a 5-line brief to a checked MP4, calling the other motionforge skills at each stage./qa-reviewCheck a motion design video before delivery - contact sheets, text cut-off/overlap/size/contrast, glyph coverage, platform safe areas, cover crop, pacing, flashes, claims and banned phrases, loudness and voice/mix parity - and run an independent critic subagent that never saw the code. Use after scenes are built and before any video, cover or caption package is delivered, and after every revision./script-and-hooksWrite the spoken script and on-screen lines for a short video in any of 10 languages, with 2–3 hook options, a TTS-friendly text, a closing call to action and a list of checkable claims for the user. Use when a video needs a script, a hook, a voice-over text, a rewrite of an existing script, or a check for clichés and unsourced facts./style-libraryPick, customise or create the visual style of a motionforge video from a library of 100 styles in 20 categories (creators, e-commerce, real estate, sports, documentary, education, tech, finance, food, fitness, travel, events, news, business, gaming, kids, fashion, automotive, art direction, nonprofit). Use when a video needs a look (palette, type, texture, framing, motion, edit rhythm, sound) before scenes are built, when the user names a style, a vertical or a reference, or wants their own reusable style. Every style is one STYLE.md in the same 9-section format.Other plugins' skills for the same job