Log in
TechniqueBy @rebeccaVersion 1, updated

H3 Max dialogue with the soundtrack pinned

rebecca/h3-max-dialogue-pinned-soundtrack

Render a dialogue shot on H3 Max reference-to-video with the recorded line pinned as the soundtrack (target_audio_url) instead of reference audio, so the timing, pauses and words stay exactly as recorded while the lips follow, for one speaker or two. Covers the prompt wording that stops H3 reading directions aloud or ad-libbing, the 0.2 s lead, silent pieces that mumble, and the checks. Use when a reference-audio take delays an answer, adds words or squeezes a pause.

SKILL.md

h3-max-dialogue drives H3 Max reference-to-video with reference_audio_urls: H3 re-performs the line and the mouth follows its own version. That is fine for most shots, but it re-times. Across one training drama's rounds, reference-audio takes:

  • delayed a reply by about 1 s after the other person's question;
  • added words after a short line ("No one else saying" after a 3 s line);
  • read a stage direction from the prompt aloud ("Nobody says anything else.");
  • squeezed or stretched pauses, so a clean recording laid back under it drifted.

Pass the recording as target_audio_url instead, and leave out reference_audio_urls. The recording becomes the clip's soundtrack exactly as it is, and H3 animates the mouths to it. This works on reference-to-video, together with first, middle and last frames pinned. It also works with two speakers in one take: for a question and an answer 0.3 s later in one recording, both mouths followed their own words.

Use it when the timing is the point: an answer that must land right after a question, a line the person already approved by ear, or a turn timed to a word. Keep reference audio when you want H3's own delivery.

Run it

run("fal/minimax/h3-max/reference-to-video", {
  "image_url": "stills/wide_a.png",
  "middle_image_url": "stills/wide_to_camera_a.png",   # optional
  "middle_frame_time": 4,                               # seconds, with middle_image_url
  "end_image_url": "stills/wide_a.png",
  "target_audio_url": "audio/shot35_line.wav",
  "reference_image_urls": ["refs/host_1.jpg", "refs/host_2.jpg"],
  "prompt": "<see below>",
  "duration": 9.1,            # the WAV's length
  "resolution": "768P",       # 1080P for close-ups and finals
  "prompt_expansion_mode": "disabled",
  "seed": 1234
}, into="runs/run19", unit="shot35_h3", tag="shot35")
  • duration = the audio's length. Play the take whole: it lands on the pinned last frame only at its end, so a trim before the end makes the next join jump.
  • Audio shorter than 2 s is rejected: pad it with silence. Don't widen the window into the next line.
  • Start every line 0.2 s after frame 0. A word on the first frame lags the lips. Use ffmpeg -i line.wav -af "adelay=200:all=1" line_lead.wav. H3 sometimes fills that silent lead with a click or a "t", so listen to the first 0.3 s of each take and mute it if needed.

Prompt

Load h3-prompt-format. In the summary, after the keyframe sentence, add:

The soundtrack is fixed: it is her line, and her lips move in tight sync with every syllable of it, opening and closing exactly with the sound.

Put the words in a <d> block for the speaker, as usual. Then:

  • Close each speaker with a sentence about that speaker, never a general rule: "She is the only one who speaks, and she says nothing else." With two speakers, write "He asks only this question" and "She answers only these words". "Nobody says anything else." and "No one else speaks." were both read aloud as dialogue.
  • Listeners: "The man and the young woman listen with their mouths closed, alive and natural: they blink, breathe and shift their weight slightly." Without the second half they freeze like a photo.
  • Camera: "Static locked-off shot: no zoom, no push-in, no reframing, no pan, no cut." For a slow move, ask for "a very slow, gentle drift in", and say how far it goes. A push over 0.75 s read as too fast to a viewer, and 1.5 s was right.
  • Hands on a to-camera line: see guide-host-turns-to-camera-in-a-scene.

Silent pieces mumble

A take with no line (a turn, a walk, a cross to a desk) can still move its lips and come back with muttering in its own sound. Prompt "a closed-mouth expression, lips pressed together, she is listening", then roll two and check a face crop. Mute the take's sound in the cut either way.

Don't lay a clean recording under a re-voiced take

If a reference-audio take has the right picture but wrong words, laying the clean recording under it fixes the words and breaks the lip sync. Re-render it with the recording pinned. If the recording itself is wrong (a mispronounced acronym, a pause too long), fix it at the source, re-voice it or re-record the whole line in one pass, then re-render. A line recorded in pieces and joined left gaps the lips couldn't hide. One pass rendered as one take fixed it.

Check it

  • Transcribe each take on its own (whisper-cli), not the whole film: on a 5-minute mix whisper invents repeats, and on silent black it heard "Thank you". Read the tail for ad-libs.
  • Lip sync with hn4a-lipsync-check, after cropping to the speaker's face in a wide or two-person shot. Good pinned takes measured −91 to 0 ms.
  • The pinned frames with python-check-pinned-frames, and frames at 0.25 s steps around each join.
  • Sync against the picture at every shot of the cut. A constant offset of about one frame (+0.03 s) everywhere is the encoder, not drift.

Versus Seedance 2.5

Seedance 2.5 ref2vid matched the line closely too (it re-voices, but very near the source) and measured slightly better on a lip-sync check. At 720p in a 1080p cut, though, it came out oversharpened and visibly aliased. Upscaling didn't remove the halos, and the same shot re-rendered on H3 Max at 768P looked far cleaner. Render Seedance at 1080p, or use this route.

FAQs

Render a dialogue shot on H3 Max reference-to-video with the recorded line pinned as the soundtrack (target_audio_url) instead of reference audio, so the timing, pauses and words stay exactly as recorded while the lips follow, for one speaker or two. Covers the prompt wording that stops H3 reading directions aloud or ad-libbing, the 0.2 s lead, silent pieces that mumble, and the checks. Use when a reference-audio take delays an answer, adds words or squeezes a pause.

Install Hypernatural Desktop, a free Mac app, and connect it to Claude Code, Codex or Claude Desktop. Then describe the video you want and your agent finds the skill itself, or paste this page's link (https://hypernatural.ai/skill/rebecca/h3-max-dialogue-pinned-soundtrack) and it installs rebecca/h3-max-dialogue-pinned-soundtrack and follows it.

It runs MiniMax H3 Max. Hypernatural Desktop has every one of them built in, so there are no API keys to set up, though you can bring your own.

The skill is free. You only pay for the AI generations it runs, and your agent shows you the price of every batch before it spends anything. Editing, captions and titles run on your Mac at no cost.

Yes. Ask your agent to adjust it for your job, or to save its own version. You can publish your version under your own handle so anyone can install it.

Go make something cool.

Install the app, open your agent, describe the video. That's the whole onboarding.

Sticker HypernaturalSticker BannerSticker TVBoy