Log in
TechniqueBy HypernaturalVersion 2, updated

HeyGen Avatar 6 Turbo: lip-sync a still

hn/heygen-avatar-6-turbo-lipsync-a-still

Lip-sync a still to a voice track with HeyGen Avatar 6 Turbo image-to-video: one locked presenter or speaker still plus up to 60 s of speech a call becomes a talking head with natural gestures, at $0.055 per second of audio (1080p), about 40% less than H3 Max 768P. The default for lip-syncing a still: a presenter beside slides, an avatar or explainer on screen most of a track, a line on a shot with no usable take. A longer track splits at scene breaks into pieces of 60 s or less, rendered at once, each checked with hn4a-lipsync-check as it lands, and joined at 30 fps. In a test 51 of 52 renders were in sync and none drifted; every take comes back 3 frames short, so the audio ends in 0.2 s of silence. It doesn't pin the still at either end: for a shot that must open or close on the exact still, use h3-max-lipsync-a-still; to fix only the mouth of an existing take, heygen-v3-resync-existing-take or veed-v2-resync-existing-take.

SKILL.md

Give it one still of a person and a voice track of up to 60 s; get back a video of that person speaking it, with natural gestures and the track as its soundtrack. It costs $0.055 per second of audio at 1080p, about 40% less than H3 Max 768P. This is the default way to lip-sync a still (guide-lipsync-video). In a test of 52 renders (six voices in two languages, 0.5 to 55 s) 51 passed hn4a-lipsync-check and none drifted; one long piece dropped the mouth for a second, so check each take as it lands (Check it).

Use a sibling instead when:

  • a shot must open or close on the exact still, or run unbroken past 60 s: Turbo doesn't pin first or last frames, so a join inside a continuous shot can jump. Use h3-max-lipsync-a-still, which pins both ends of every chunk.
  • a take already exists and only its mouth is wrong: heygen-v3-resync-existing-take (best quality) or veed-v2-resync-existing-take (cheapest) keep the take's skin, light and performance.

Inputs

  • image_url: the locked still. For a presenter, a 3:4 portrait, waist-up to mid-thigh, plain backdrop, room either side for open arms (guide-present-with-an-avatar, Process). A 1792×2400 still worked; likeness held from a generated still.
  • audio_url: the finished, levelled voice track, or one piece of it. At most 60 s a call: a longer file is refused before it runs, and nothing is charged. Drive it with an isolated voice, not a mix with music (ffmpeg-cut-audio-window cuts a single line). Audio as short as 0.5 s renders. End every file with at least 0.2 s of silence past what must be seen and heard, because the take comes back 3 frames short (What you get). Silence is charged like speech, and it is safe to plan in: the mouth stayed closed through a 3 s gap mid-track, a 2 s lead-in and the tail pad.
  • resolution: 1080p (the default, $0.055/s) or 2k ($0.096/s). At 1080p a 3:4 still comes back 1088×1458, 16:9 comes back 1920×1072 and 9:16 comes back 1072×1920: scale to the comp, never assume 1920×1080. At 2k a 3:4 still comes back 1632×2186.
  • motion_prompt (up to 1,200 characters): the performance, never the words. Always send one: without it the presenter gestured with both hands raised for the whole take.
  • motion_expressiveness: leave it at the default; less keeps the hands mostly at the sides, for a calmer read.

Run it

  1. Split a track longer than 60 s at scene breaks, in the middle of the silence between sections (the 0.6 s gaps between sections voiced separately). The layout change at a scene break hides the join, so no dissolve is needed. Snap each cut to the 30 fps grid (a multiple of 1,600 samples at 48 kHz), so the joined take lands on one grid. Write every piece sample-exact in one ffmpeg pass; here a 101.7 s track cut at 33.4 s and 60.3 s:

    exec ffmpeg -v error -y -i audio/track.wav -filter_complex "[0:a]asplit=3[a][b][c];[a]atrim=end_sample=1603200,asetpts=PTS-STARTPTS[p0];[b]atrim=start_sample=1603200:end_sample=2894400,asetpts=PTS-STARTPTS[p1];[c]atrim=start_sample=2894400,asetpts=PTS-STARTPTS[p2]" -map "[p0]" talking_head/piece00.wav -map "[p1]" talking_head/piece01.wav -map "[p2]" talking_head/piece02.wav
    
  2. Render every piece at once, the same still and the same prompt. Call describe("fal/heygen/avatar-6/turbo/image-to-video") before the first run in a job, then one run a piece with wait: false:

    run("fal/heygen/avatar-6/turbo/image-to-video", {
      "image_url": "<job>/stills/presenter_34_a.png",
      "audio_url": "<job>/talking_head/piece00.wav",
      "resolution": "1080p",
      "motion_prompt": "<the performance, see Prompt>"
    }, into="<job>/talking_head", unit="piece00_turbo", tag="piece00")
    

    Then tasks(wait: true, calls: [...], until: "any"). Check each piece's mouth against its own WAV as it lands, with --offset-s the piece's start on the track, and call again with the ids still running:

    exec("hn4a-lipsync-check", ["talking_head/piece01_turbo_a.mp4",
      "--audio", "talking_head/piece01.wav", "--offset-s", "33.4",
      "--out-dir", "talking_head/lipsync_check", "--json"], cwd="<job>")
    

    Each call holds $3.30 (60 s) until the audio is measured, then charges only its length.

  3. Join the pieces at 30 fps. Convert each to 30 fps and pad its tail by cloning the last frame to the piece's exact frame count on the grid (round(end × 30) − round(start × 30); 1002, 807 and 1242 here):

    exec ffmpeg -v error -y -i talking_head/piece00_turbo_a.mp4 -an -vf "fps=30:round=near,tpad=stop_mode=clone:stop_duration=2,trim=end_frame=1002,setpts=PTS-STARTPTS" -c:v libx264 -crf 14 -preset slow -pix_fmt yuv420p talking_head/piece00_30.mp4
    

    Then concatenate them, listed in order in talking_head/pieces.txt (file 'piece00_30.mp4', one line a piece), with the whole track laid under them:

    exec ffmpeg -v error -y -f concat -safe 0 -i talking_head/pieces.txt -i audio/track.wav -map 0:v -map 1:a -c:v copy -c:a aac -b:a 256k talking_head/talking_head.mp4
    

    The join re-times nothing: each piece keeps its frames from the grid frame its audio starts on. So the mouth isn't checked again on the joined take; count its frames instead (Check it).

  4. Cut out the presenter from the joined take when a layout needs a cutout (python-matte-a-talking-head, free). Matte the joined 30 fps take, never the 25 fps pieces, so the cutout and the take share frames.

A single line on a shot of N frames at F fps needs no join. Send audio of N/F + 0.2 s (the line, then silence), then convert the take to the cut's rate and trim it to the shot; here 60 frames at 24 fps from 2.7 s of audio. With that pad no last frame is cloned.

exec ffmpeg -v error -y -i video/raw/shot07_turbo_a.mp4 -vf "fps=24:round=near,trim=end_frame=60,setpts=PTS-STARTPTS" -af "atrim=end=2.5" -r 24 -c:v libx264 -crf 14 -preset slow -pix_fmt yuv420p -c:a aac -b:a 256k video/shot07_turbo_a.mp4

Prompt

Describe the performance and never the script's words: the model hears the audio. This one worked for a presenter:

A friendly, confident presenter explaining a product walkthrough to camera. Natural,
moderate open-hand gestures at chest height now and then, small head nods, steady eye
contact with the lens, warm expression. Body stays centred and in frame. No finger
counting, no pointing off screen.

What you get

An MP4 at 25 fps with the audio you sent as its soundtrack. Measured on 52 renders of 0.5 to 55 s: six voices (recorded and TTS, English and Spanish), 3:4 presenters, a 16:9 close head, a 9:16 waist-up and 16:9 film shots with 3/4 faces.

  • In sync, 51 of 52, by hn4a-lipsync-check. The mouth runs about 60 ms early: presenter takes have medians of −50 to −73 ms and windows from −99 to −28 ms; the 16:9 head −66 and −69 ms; the 9:16 still −51 and −59 ms; a 3/4 film face −60 to −97 ms, with windows down to −107 ms. Check confidence 8.6 to 10.4.
  • The one miss: a 55 s piece kept the mouth shut through about a second of speech, mid-piece. The check flagged it (a 2 s span, 492 ms late) and the same piece rendered again passed.
  • No drift: −0.03 to +0.14% on pieces of 26 to 37 s (under 40 ms over the piece), and −0.13 to +0.34% on the audio spans where H3 Max drifted. The same piece rendered twice passed both times (medians −54 and −50 ms). A 49.9 s piece drifted 0.05%.
  • Hard audio didn't move the sync: speech at 0.8× and 1.25×, a tone-and-noise bed, speech 20 dB quieter and a 16 kHz, 32 kb/s MP3 all passed, with medians of −29 to −80 ms.
  • 3 frames short, at every length. The take is its audio minus 3 frames at 25 fps, 0.10 to 0.14 s, from 0.5 s clips to 55 s pieces. Its own soundtrack loses the same tail; the start is at 0 and nothing is stretched. A line that ends on its last word loses 0.12 s of that word, hence the 0.2 s of silence (Inputs).
  • Not pinned: the first frame against the still reads 0.73 to 0.89 (greyscale SSIM, median 0.84) and the last 0.76 to 0.93, against 0.92 to 0.97 for a pinned H3 take.
  • About a minute a call, whatever the length: 49 to 129 s, median 76 s (a 0.4 s clip 63 s, a 36 s piece 99 s). A 6 to 13 s H3 chunk takes 13 to 26 s.
  • Cost is exactly $0.055 per second of audio sent at 1080p. A 101.7 s track in three pieces (33.36, 26.92 and 41.46 s; step 1 shows the same track with its cuts snapped to the grid) cost $5.60.

Tips and traps

  • No first or last frame pinning: pieces don't start or end on the exact still. Split only where the layout changes; a shot that must run unbroken past 60 s goes to h3-max-lipsync-a-still. Never run a pinned-frame check on a Turbo take.
  • Many short lines are slow: at a minute a call, one short line takes about five times as long as on H3. A 60 s track is still one call of about two minutes.
  • One 100 s call is refused: 60 s is the limit, checked before the run (free).
  • 25 fps out: the join's fps=30 (step 3) is the one conversion. Nothing goes into the comp at 25 fps, and the joined take isn't converted again.
  • Words in the motion prompt: leave them out; the prompt directs the body only.
  • A 3/4 film face sits close to the early limit: −97 ms is 53 ms from the −150 ms bound, so look at its curve, not only its pass.
  • Two people in frame: on a 27 s film shot the framing held, the speaker passed the check and the second person stayed still.
  • Drawn characters and singing: the check can't read them, so judge the take by eye, and fall back to h3-max-lipsync-a-still if it doesn't hold.
  • A flagged piece: read its curve first (hn4a-lipsync-check, How to read it). Re-render the piece, which costs less than a re-sync ($0.055/s against $0.07/s) and fixed the one flagged piece in the test; if the new take flags the same span, re-sync its mouth with veed-v2-resync-existing-take. Check either result.
  • A revision re-renders the scene's piece: re-voice that scene, re-cut its piece on the same grid, re-render it, re-join, and shift every cue after it by its length change.

Check it

  • ffprobe-inspect-media on every piece: frame rate, duration, an audio stream.
  • hn4a-lipsync-check on every take as it lands, against its own WAV: no flagged spans, and a lag between −100 and −30 ms. This is the sync check.
  • A take under 8 s: read the slope as well as the flags. Turbo starts 60 ms early, so a drift must climb 150 ms to be flagged, and a 3% tempo error was caught on only 3 of 10 clips of 4 to 8 s. Treat a drift of 1.5% or more as flagged.
  • A take under 2.2 s: a pass measures nothing, since a flag needs 5 windows and the take has 4 at most. Judge it by eye, and look at a take under 3 s as well: it has only 7 to 10 windows.
  • After the join, count frames rather than checking the mouth again: each pieceNN_30.mp4 has its grid count, and the joined take has round(track length × 30). With the counts right, every piece's sync carries over.
  • A contact sheet across the take (python-contact-sheet): framing steady, hands in frame, face consistent. Put it to the person with the still as original, and record the pick.

Workflows that use this skill

FAQs

Lip-sync a still to a voice track with HeyGen Avatar 6 Turbo image-to-video: one locked presenter or speaker still plus up to 60 s of speech a call becomes a talking head with natural gestures, at $0.055 per second of audio (1080p), about 40% less than H3 Max 768P. The default for lip-syncing a still: a presenter beside slides, an avatar or explainer on screen most of a track, a line on a shot with no usable take. A longer track splits at scene breaks into pieces of 60 s or less, rendered at once, each checked with hn4a-lipsync-check as it lands, and joined at 30 fps. In a test 51 of 52 renders were in sync and none drifted; every take comes back 3 frames short, so the audio ends in 0.2 s of silence. It doesn't pin the still at either end: for a shot that must open or close on the exact still, use h3-max-lipsync-a-still; to fix only the mouth of an existing take, heygen-v3-resync-existing-take or veed-v2-resync-existing-take.

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/hn/heygen-avatar-6-turbo-lipsync-a-still) and it installs hn/heygen-avatar-6-turbo-lipsync-a-still and follows it.

It runs HeyGen Avatar 6 Turbo. 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