AI Avatar Generator: SadTalker and LivePortrait for Talking Avatars

📘 Tutorials 2026-08-07 · Updated 2026-11-22 3 min read

SadTalker makes a photo speak, LivePortrait animates an existing face, Wav2Lip swaps lips only. Inputs, flags, VRAM needs, limits, plus the full chain.

📜 Table of Contents

📖 Keep reading

Open-source talking avatars: SadTalker vs LivePortrait, flags, and commercial limits

One portrait plus one audio file, and a lip-synced video comes out locally in minutes. But the two leading projects solve different problems: SadTalker makes a still photo speak, LivePortrait animates an existing face. Pick wrong and an afternoon disappears.

Three routes, three jobs

Project What it does Input Typical use Weak spot
SadTalker Photo + audio → lip-synced video One frontal portrait, wav/mp3 Course narration, news segments Stiff head motion, drift on long clips
LivePortrait Drives a face with expressions and head pose Source image + driving video Live personas, character animation No audio lip-sync
Wav2Lip Re-times lips on existing video Video + audio Re-voicing existing footage Visible mouth-area quality loss

Pick SadTalker when you only have a photo, LivePortrait when you need expressive motion, Wav2Lip when the video already exists.

SadTalker: first run

git clone https://github.com/OpenTalker/SadTalker
cd SadTalker
pip install -r requirements.txt
python inference.py --driven_audio speech.wav \
  --source_image portrait.jpg --result_dir results --still --preprocess full
Flag Effect
--still Minimal head movement; stable, still lip-syncs and blinks
--preprocess crop (head only), resize, full (upper body)
--enhancer gfpgan or RestoreFormer for clarity, slower

For narration, always keep --still on: the result reads as a seated presenter instead of a wobbling background.

LivePortrait: driving is everything

Two modes: imitate a driving video, or set expression and pose parameters directly. Use a frontal, evenly lit driving clip with moderate motion. Push expression amplitude in small steps — large values tear the face. Higher output resolution costs VRAM; start medium on an 8GB card. Exact commands and weights follow the repo README, which changes often.

The full chain

Text to speech (Piper, CosyVoice, GPT-SoVITS) → avatar render → assembly:

ffmpeg -f concat -safe 0 -i list.txt -c copy final.mp4

Keep clips to 30–60 seconds. Drift and mouth artifacts stay small, and a regenerate only costs one segment.

Before commercial use

Read the LICENSE file in each repo — Wav2Lip has extra commercial restrictions. Get written consent for any real person's likeness. Most platforms require synthetic-media labels; check both the video platform and any ad network.

FAQ

GPU? 6GB runs SadTalker at default resolution; 8GB+ is comfortable for LivePortrait. CPU works but is slow.

Lips out of sync? Usually mixed sample rates or leading silence — convert to 16 kHz mono and trim the head.

Real-time? That is LivePortrait's direction, but local real-time needs a solid GPU and still adds seconds of latency through STT and TTS.

Chinese audio? Language-agnostic; quality depends on the TTS and its prosody.

Dependencies and flags change fast; follow each repo's README.

Related

Related Articles
2026-08-01
Ollama on Raspberry Pi 5 2026: Run a Local LLM for Under $100
2026-07-20
AI Coding Assistant Comparison 2026: Cursor vs Continue vs Copilot — Which Is Best?
2026-07-23
Computer Vision Tutorial for Beginners: Complete Guide 2026
2026-10-31
Weaviate vs Vespa in Docker: 208MB Against 1.72GB, and the 4GB Wall That Decides Your VPS
2026-08-01
llms.txt Generator 2026: The AI Site Map That Gets Your Content Cited
2026-07-23
Best Free AI Coding Assistants for Students in 2026: 8 Tools Compared

Written by our editorial team; tools listed here are tested or verified against public sources. Links point to official sites or GitHub repos for reference only — no paid placements.

💬 Comments (0)

No comments yet. Be the first!

Login to comment