You have one photo of someone and a recording of speech. talkinghead makes the photo say it: lips, jaw, eyes
and head move with the voice. It runs in real time on an ordinary laptop, and the whole model is 169 MB.
36.5 msper frame, MacBook Pro M4 Pro; real time is 40
~13×faster than LatentSync, RTX 4090
EN + नेपालीbuilt and tested for both
really fast.really small.
Real time on the laptop you already have.
// download
169 MB
The whole model on Apple silicon. The library downloads only the files your machine needs.
// time per frame, native
36.5 ms
MacBook Pro M4 Pro
36.5
MacBook Pro M3 Pro
39.9
RTX 3050 Ti laptop
40.3
red line: 40 ms, real time at 25 fps · full render loop on all three
// time per frame, RTX 4090, earlier build · one block = 10 ms
talkinghead43.4 ms
Wav2Lip85.0 ms
LatentSync552 ms
// peak GPU memory · one block = 0.5 GB
talkinghead1.2 GB
LatentSync14 GB
Wav2Lip19.5 GB
An earlier real-time build, before this release’s renderer and face crop. Same 12 HDTF clips for every model. Wav2Lip and LatentSync score higher on SyncNet lip-sync confidence
(9.59 and 9.97 vs 7.94; the real videos score 8.75). talkinghead keeps the person looking more like themselves: identity 0.96 vs 0.90 and 0.91.
in your browser.
No install. Nothing uploaded.
The same model runs inside a browser tab, on your own graphics card. Pick a face and a voice, or bring your own.
It is slower there, about a minute for a 10-second clip on an M4 Pro, because a browser can't use the Mac's Neural Engine.
The first run downloads 168 MB once.
// can this computer run it?
checking…
// demo
Make any photo talk, right here. Your photo and voice never leave your computer.
liveruns on your GPU (WebGPU) · not real time in a browser · desktop Chrome or Edge
nine photos. one line.
The same English sentence, nine faces.
“One photo. Any voice. A talking video, in real time.”
People, an 1863 photograph and four paintings, each from a single still image. Press play on any of them, with sound.
Straight out of the model, unedited.
Alisha RaiphotoJeremy Bishopphoto · cc0Mona LisapaintingNapoleon, David 1812paintingLincoln, 1863photographBibek Rautphoto · cc by-sa 4.0Pearl EarringpaintingAngelina Litvinphoto · cc0Van Goghpainting
voice: Kokoro-82M (Apache-2.0) · each rendered at 34–44 ms a frame on a MacBook Pro M4 Pro · photographers credited on each tile
three lines of python.
Install it. Make it talk.
# Apple silicon, NVIDIA (add [tensorrt]) or CPU$ pip install "git+https://github.com/Ampixa/talkinghead.git"
from ampixa_talkinghead import Avatar
avatar = Avatar("photo.jpg")
avatar.speak("speech.wav", "out.mp4")
# or a local web app on your own machine$ ampixa-talkinghead-web
best photoFrontal, mouth closed. Visible teeth stop the mouth from closing while it speaks.
weak onPaintings with heavy beards or brushwork, tiny faces in full-body shots, profiles.
please don'tUse it to impersonate people, or to make anyone say what they didn't say.
// receipts · every number on this page
36.5 / 39.9 ms: render loop per frame, Core ML, MacBook Pro M4 Pro / M3 Pro (project log). 40.3 ms RTX 3050 Ti laptop: whole TensorRT render loop, median of three clips (40.0–40.5; the networks alone take 25.7 ms).
169 MB: common/ + coreml/ in MANIFEST.json. 168 MB: the browser models, web/.
RTX 4090 comparison: 12 HDTF clips scored by every model. The talkinghead column is an earlier real-time build (a renderer we did not ship, the older InsightFace crop, PyTorch CUDA) on a shared cloud GPU. ms/frame (whole pipeline, model load excluded) and peak GPU memory are medians over each model's timed clips (talkinghead 12, Wav2Lip 7); LatentSync's are from one clip. ~13× = 552 / 43.4 ms; ~12× = 14 / 1.2 GB. LSE-C (SyncNet confidence) and identity (face-embedding similarity) are means over the 12 clips.
34–44 ms: per-frame render time of each of the nine English videos (M4 Pro, Core ML); their SyncNet LSE-C is 5.5–8.5. About a minute for 10 s in the browser: 232–248 ms per frame, Chrome, M4 Pro.
Photos: Alisha Rai (user-supplied); Wikimedia Commons, credited on each tile; the paintings (incl. David's Napoleon, 1812) and the 1863 Lincoln photograph are public domain. Voices: Kokoro-82M (Apache-2.0), Google FLEURS (CC BY 4.0). Videos made from CC BY-SA photos are shared under CC BY-SA. Key art: commissioned for this page.
talkinghead derives from Ditto (Apache-2.0) and LivePortrait (MIT); face crop by MediaPipe (Apache-2.0). Code and weights: Apache-2.0.