/jam:add-voiceoverfrom jam
Adds a spoken voiceover to a video: writes a script, voices it line by line with ElevenLabs, Kokoro, or a custom TTS command, and syncs each line under the matching moment with a subtitle file. Use for narrating screen recordings, demos, or walkthroughs, or fixing robotic/out-of-sync voiceovers.
Ships in jam. 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.
Read when SKILL.md points to them; scripts run unread.
A good voiceover sounds like a colleague showing you something: short spoken lines, each one landing on the moment it talks about. Most bad ones come from a script written for reading, one long take of text-to-speech laid over the whole video, or an expressive voice with unstable settings.
Needs ffmpeg and Node 22 or later. The script is scripts/voiceover.mjs in this skill's folder and needs no packages.
The script takes the first voice that is set up:
VOICEOVER_TTS: the team's own command. {out} is the .wav file to write and {text} the line, also sent on stdin. Quote an argument that holds spaces (--voice="Jane Doe"); backslash escapes are not read.ELEVENLABS_API_KEY: ElevenLabs. Defaults: model eleven_v4, voice iP95p4xoKVk53GoZ742B, stability 0.5, similarity 0.75, speaker boost on, and each line voiced with the two lines around it as context so the intonation carries across. ELEVENLABS_VOICE_ID and ELEVENLABS_MODEL_ID change them; for a female voice use River, SAz9YHcvj6GT2YYXdXww. v4 has no speed or style setting: pace it with punctuation and line length.~/.cache/kokoro holds its files) and Python 3 and uv are on PATH. Voice am_michael; KOKORO_VOICE picks another (af_heart, bf_emma, bm_george).say, for drafts only.When none of the first three is set up, ask the user once which they want:
ELEVENLABS_API_KEY in their own shell. Never ask them to paste the key into the chat or a file. It bills per character, so rehearse with ELEVENLABS_MODEL_ID=eleven_flash_v2_5 or Kokoro and voice the final cut with the default model.python3 <skill-dir>/scripts/kokoro.py --install.In CI or with no one to ask, use what is set up and never start the download.
Write lines.json, one entry per spoken line:
[
{"say": "Hey, here's the new checkout flow, end to end.", "at": 0.5},
{"say": "I'll add a jar,", "at": 3.2},
{"say": "and place the order.", "at": 6.8},
{"say": "And it fails. Payment provider timeout.", "at": 9.1}
]
voiceover.vtt for players that show subtitles.at is the second the line starts. Start it about half a second before the action it names, so the word and the click land together.
record-demo writes them to narration.json in this format.ffmpeg -i in.mp4 -vf "select='gt(scene,0.08)',showinfo" -f null - 2>&1 | grep -o 'pts_time:[0-9.]*'
ffmpeg -v error -ss 9.1 -i in.mp4 -frames:v 1 at-9.1.png
at out and the lines follow each other with a short breath.To pace a recording by the voice instead, voice the lines first with no --video, and pass the lines.json it writes (each line with its seconds) to the recorder.
node <skill-dir>/scripts/voiceover.mjs lines.json ./voiceover --video in.mp4
Output in ./voiceover: voiced.mp4 (the picture untouched, the narration raised by one fixed gain so it peaks at -1 dB; a video with its own sound keeps it, and both are lowered together if the mix would pass -1 dB), narration.wav, lines.json with each line's final at and seconds, one .wav per line, and voiceover.vtt. Each line is cached by its text and voice, so after editing one line a re-run voices only that line (with ElevenLabs, also the two on each side, which it hears as context), and switching the voice re-voices everything.
A line that would talk over the one before starts late, and the script prints which. Shorten one of the two lines, or move the later one, and run it again.
ffmpeg -i voiceover/voiced.mp4 -af volumedetect -f null - 2>&1 | grep -E 'mean|max'. Expect a max of -1 dB and a mean between -18 and -24 dB. Never level the voice with loudnorm, a compressor or other dynamic filters: they raise each word's tail and the voice sounds like it echoes.at and check it shows what the line names..wav to listen to before they watch the whole video.An echo comes from a dynamic leveler in the mix: compare one line's .wav with the same moment in the video, and if only the video echoes, remove the filter. A laugh, a pitch jump between lines, or a voice that speeds up comes from low stability or an expressive character voice: keep the default settings and pick a narration voice. Never fix sync by stretching the audio; move the line or re-record.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
voiceover, narration, text-to-speech, video-editing, elevenlabs, kokoro
npx claudepluginhub jamdotdev/skills --plugin jam13 skills in this plugin
/jamRoute a Jam (a jam.dev screen recording or screenshot with the console, network and user actions attached) to the right Jam skill. Use when the user shares a jam.dev link with no clear ask ("look at this jam", a bare link), or types /jam. For a clear ask (fix, test, ticket, record, annotate), use that skill directly./jam-annotateTurn a screenshot into a Jam (a shareable jam.dev screenshot with context attached) that points at the problem, with boxes, arrows, notes, redactions and blurs drawn by `jam create jam`. Use when the user asks to file or share an annotated screenshot as a Jam. Local annotation or redaction requests alone do not call for this skill./jam-fixFind the root cause of a bug from a Jam (a jam.dev screen recording with the console, network and user actions attached), and fix it when the user asks. Without that ask it diagnoses only, with no code changes. Read the recording's diagnostics and visual evidence, then return a diagnosis with evidence. Use when the user pastes a jam.dev link or Jam id and asks to fix, debug, triage or investigate it, or asks what went wrong in a recording.Other plugins' skills for the same job