freeopen sourceruns offline
Make anything talk.
Open Lip Sync is a free, open-source lip sync tool. Give it any video, photo or drawing and any voice file, like an ElevenLabs line, and it draws a cartoon mouth that says the words. A person, a dog, a toaster, a doodle. It runs on your own computer, with no account and no credits.
How the lip sync works
Three steps, all on your machine. A 16-second 1080p clip renders in about 16 seconds on an M2 Mac mini.
-
1
It hears the words
whisper.cpp transcribes your audio locally with a time for every word. Each word becomes phonemes, and each phoneme maps to one of nine classic animator mouth shapes, landing 40 ms before the sound the way animators lead.
-
2
It finds the mouth
Face tracking follows the lips, the head's tilt and how far it's turned, and sizes the mouth to the face. With several people, it follows only the one you pick. Hard cuts reset it instead of sliding. Pets, objects and drawings get point tracking from a spot you pick.
-
3
It draws the talking mouth
The real lips are hidden under a soft patch of skin tone, then the cartoon mouth is drawn on top, turned to match the head, and your new audio is muxed in. Out comes a normal MP4.
Works on anything with a face, or without one
Hover or tap a clip to play it.
Nine mouth shapes, five views
The mouth comes from the classic animator's chart: rest, M B P, EE, EH, AH, OH, OO, F V and L. It's a flat black blob with no outline, rounded white teeth, blunt corners and a red tongue, a cross between rough hand-drawn cartoon mouths and rubber-hose animation.
Every shape is drawn in code, wrapped around an imaginary head, so it turns smoothly from front to three-quarter to side profile. Louder syllables open a little wider. Bottom teeth almost never show.
Install in one line
macOS or Linux. Needs ffmpeg and uv. whisper.cpp is optional, but it's what makes the mouth follow the actual words.
brew install ffmpeg whisper-cpp uv
uv tool install --python 3.12 "openlipsync[track] @ git+https://github.com/beausterling/open-lip-sync"
Then make something talk:
# a person on camera: the face is found and followed
openlipsync sync talking-head.mp4 elevenlabs-line.mp3 -o out.mp4
# a pet, toy or drawing: point at the mouth on the first frame
openlipsync sync pet.mp4 voice.mp3 --track point --x 0.5 --y 0.52 -o out.mp4
# just the mouth, on a transparent background, for your editor
openlipsync mouth voice.mp3 -o mouth.mov
Or let your AI agent do it
Open Lip Sync ships with a skill for Claude Code, Codex, Hermes and any agent that reads SKILL.md files. Paste this to your agent once. After that, "make my dog say this voice line" just works.
Install the open-lip-sync skill from
https://github.com/beausterling/open-lip-sync:
download its skills/open-lip-sync folder into my
agent's skills folder (Claude Code: ~/.claude/skills,
Codex: ~/.codex/skills, Hermes: ~/.hermes/skills),
then follow that SKILL.md to install the openlipsync
tool and check that it runs.
Bring your own mouth
Have your own animated smile? Turn it into a reusable mouth library with one command, then use it on any video.
Each of the nine shapes takes the closest drawing: the most closed is rest, the most open is AH, the round ones are OO and OH. Name a file ah.png to pin it.
Every shape is made by stretching and squashing that one drawing. Simple, and it works.
Frames are sampled from your animated mouth and the best frame is picked for each shape.
openlipsync pack my-mouth-art/ -o my-mouth
openlipsync sync clip.mp4 voice.wav --sprites my-mouth -o out.mp4
It cuts out plain backgrounds, lines every mouth up on the same lip line, makes the three-quarter and profile views, and writes a preview sheet so you can check every shape.
2D today. 3D and live action next.
Open Lip Sync starts with flat cartoon mouths because they're simple, fast and run anywhere. The goal is open lip sync for every look: 2D animation, 3D characters and photoreal live action, all open source and running on your own machine.
Contributors get a permanent mention. Anyone who contributes valuable code that gets merged earns a permanent spot on this site, if they want one. Start with the contributing guide.
Questions people ask
What is Open Lip Sync?
Open Lip Sync is a free, open-source tool that makes any video, photo or drawing talk. You give it a clip and a voice file, and it draws a 2D cartoon mouth (a black blob with white teeth and a red tongue) that mouths the words. It runs on your own computer from the command line.
Is it really free?
Yes. It's MIT licensed, with no account, no credits and no watermark. Everything runs locally, so there's nothing to pay per video.
How do I lip sync a video to an ElevenLabs voice?
Export the ElevenLabs line as an MP3 or WAV, then run openlipsync sync your-video.mp4 elevenlabs-line.mp3 -o out.mp4. The face is found and followed automatically, and the output has the new audio with the cartoon mouth on top. It works the same with any voice file: a recording, text-to-speech or a voice changer.
Can it handle several people in one video?
Yes. openlipsync people numbers everyone in the video, and --person 2 (or --pick X,Y --at T to point at a face) puts the mouth on that one person only. It keeps following them as they move, through cuts and when people swap places, and hides the mouth while they're off screen. For two characters talking to each other, run once per speaker and add --keep-audio on the second run.
Does it work on animals, objects and drawings?
Yes. For anything that isn't a human face, tell it where the mouth is at one moment with --track point --x --y --at. It follows that spot forwards and backwards through the whole video, keeps the mouth's position and size locked to the subject as it moves, zooms and turns, hides it while the subject is out of shot and finds it again after a cut. Photos and drawings work with a fixed placement.
What happens to the person's real mouth?
With face tracking, the real lips are hidden on every frame under a soft patch of the person's own skin tone, shaped from their actual lip outline and pinned to the face so it moves with the head. Side on, the profile is redrawn without lips. Turn it off with --no-cover.
Can I use my own mouth drawings?
Yes. Run openlipsync pack with a folder of images, a single picture or a video of an animated mouth, and it builds a mouth library with nine shapes in front, three-quarter and profile views. Then pass it to sync with --sprites.
What languages does it support?
English out of the box. --language auto uses Whisper's multilingual models for other languages, and --engine energy drives the mouth from loudness alone, which works for any language, singing, animal sounds and gibberish.
What do I need to run it?
macOS or Linux, Python 3.10 to 3.12, ffmpeg and uv. whisper.cpp is optional. Windows through WSL should work but hasn't been tested yet.
Does it upload my video or audio anywhere?
No. Speech recognition, face tracking and rendering all run offline on your machine. The only downloads are a small speech model (about 150 MB) and a 4 MB face model on the first run.
Can I use the mouth in After Effects, Premiere, Blender or Remotion?
Yes. openlipsync mouth voice.mp3 -o mouth.mov renders only the mouth on a transparent background (ProRes 4444, or WebM with alpha). openlipsync timeline writes the words and mouth cues as JSON to drive your own rigs.
Keep it free
Open Lip Sync is free and always will be. If it saved you an afternoon or made someone laugh, a coffee keeps the next feature coming.
Created by beausterling.xyz