Free resources · November 23, 2026

I Built My Own HeyGen Avatar 6 on a Mac (Free Code)

What you get: Talking-avatar script with gestures on chosen words, gesture list, prompts, setup notes, agent instructions.

What you get: the script that makes a talking avatar from one photo and one voice file on your own Mac, and places hand gestures on the exact words you choose. Plus the gesture list, example prompts and setup notes.

The kit

FileWhat it is
SETUP.mdWhat you need and how to install it: the model, the Mac port, the weights
talk_longcat.pyThe script. Photo + voice + prompt + cue file in, one continuous video out
word_times.pyFinds when each word is spoken, so a gesture can land on it
GESTURES.mdWhich gesture goes with which words, with a ready sentence for each
examples/prompt.txt, examples/cues.txtThe prompt and cue file from the video
AGENT-INSTRUCTIONS.mdHand this to your coding agent and let it do the setup with you

The one idea

A video model does what you ask at the start of what it is generating. It does not wait for a word. So to make a gesture land on a word, do not ask harder. Start a new piece of video just before the word, from a single still frame, with the gesture in the prompt.

What you need, and what it costs to run

  • Minimum: a Mac with Apple silicon and 64 GB of memory. The model peaked at about 47 GB at 592x480 and about 50 GB at widescreen 864x480 in our runs, so a 32 GB Mac is not enough today.
  • What we used: a Mac Studio with an M5 Ultra and 256 GB of memory. A smaller chip should work, just slower; we have not timed one.
  • Speed on our Mac: about 45 seconds of compute for each second of video at 592x480. A 23 second widescreen clip with two gestures took about 31 minutes, before the upscale.
  • No per-minute fee. The voice is separate: bring any audio file.

Under 64 GB? Keep this kit anyway. Open video models keep getting smaller and faster, and a model that needs our machine today may run on yours in a few months.

What does not work yet

  • A placed gesture on a walking shot. Walking and talking works; the timed gesture does not land.
  • Finger counts depend on the random seed. Check a frame, and re-render that one piece with another seed.
  • Small text on clothing turns to scribble. Use a photo with no lettering.

Credits

Download the files

All files for this video are in one folder on GitHub: 2026-11-23-own-avatar-6-on-a-mac.

Next week's kit

Every new video comes with free resources. Get it by email on Substack, or browse every video's resources.

Want this running in your business?

Bring one task to a free 15-minute call, and I'll tell you whether an AI system is worth building for it.