How Lip-Sync Works in 2D Animation and the Tools That Do It for You

How Lip-Sync Works in 2D Animation and the Tools you need
"The voice says the words. The mouth makes us believe them.”

As an animation studio, we deal with lip-sync quite often in our projects. So I thought this would be a good opportunity to share some knowledge about lip-sync in 2D animation.

In 2D animation, lip-sync refers to the process of changing a character’s mouth drawings to match the audio of a recorded voice. The animator splits the recorded speech into sounds, chooses a mouth shape for each sound, and matches each change to the audio. Although programs like Adobe Character Animator, Adobe Animate or Toon Boom Harmony can do lip-sync automatically, animators will usually still do a final pass themselves to make the lip-sync look as realistic as possible.

Character + lip sync reference sheet

This pass is often the difference between a lip-sync that looks robotic and one that looks believable.

Sounds and Shapes: Phonemes / Visemes

A phoneme is an individual sound within a word. For example, the first phonemes in the words “pat”, “bat” and “mat” are different (P, B, M) and this makes them different words. A viseme is the mouth shape you see when a sound is spoken. Many phonemes share a similar viseme. For example, P, B and M all begin with the lips touching so the same closed-lip drawing could be used for all three of these sounds. This means animators only need to draw a handful of different mouth drawings and then figure out which phonemes will use which drawing, or viseme.

Visemes

Visemes don’t always correspond to the letters a word is spelled with either. For example, the “ph” in the word “phone” is pronounced with an F sound so you would use a viseme with the upper teeth touching the bottom lip, just like you would for the word “fan”.

Animators have to decide how many visemes their characters need as well as which ones those are. Some animators use just a few, some use more. This is partly up to personal preference and animation style. Many 2D animators start from a common set of visemes, which I will cover next.

A Common Set of Mouth Shapes

Studios use slightly different mouth charts, but many share a core of six mouth shapes. The free lip-sync tool I’ll look at later, called Rhubarb, uses the six shapes below, with three additional optional shapes. The 2D animation package Toon Boom Harmony uses a seven-letter mouth chart, plus a rest position.

How many shapes a character needs depends on the art style. The following table shows the set Rhubarb uses.

 

ShapeWhat the mouth doesSounds it covers
AClosed, with slight pressure between the lipsP, B and M
BSlightly open, teeth clenchedMost consonants such as K, S and T, and the EE in “bee”
COpenVowels such as EH in “men” and AE in “bat”
DWide openAA as in “father”
ESlightly roundedAO as in “off” and ER as in “bird”
FPuckered lipsUW as in “you”, OW as in “show” and W as in “way”
G (optional)Upper teeth on the lower lipF and V
H (optional)Tongue raised behind the upper teethLong L sounds
X (optional)Idle, lips closed but relaxedPauses in speech

 

The letters A, B, C and so on are arbitrary, they don’t stand for particular sounds. Don’t assume, for example, that shape A is used for an “ay” sound. Toon Boom Harmony makes it clear in its documentation that the letter names in its mouth chart are arbitrary too. They’re just labels to distinguish the shapes so that lip-sync software knows which drawing to display.

Lip Sync sheet detailed

Other animators have used different names for the basic mouth shapes. The best-known set was devised by Preston Blair. In Blair’s system, the closed mouth shape is labelled MBP (after the sounds for which it is used, M, B and P), while AI, O, U and FV are used for a wide-open shape, a rounded shape, a puckered shape and a teeth-on-lip shape respectively. Rhubarb can export its results with either set of names. The set of names you use does not change how the mouth looks, only what the drawings are called.

Syncing the Mouth to the Voice

The voice-over is recorded first, and then the mouth is animated to it. The animator plays the voice-over, stops at the frame where each sound begins, and puts the matching mouth drawing on that frame.

This method is described by Toon Boom Harmony as scrubbing through the sound track and swapping the mouth drawing at each point.

Some shapes work as in-betweens that creates a smooth transition between two shapes. Based on Rhubarb’s documentation, shape C sits between the closed or slightly open shapes such as A and B, and the wide-open shape D. Shape E is usually placed between the open shapes such as C and D, and the puckered shape F. This helps to avoid weird mouth snapping movements on the character.

Changing the voice-over at a later stage will require the animator to redo the mouth movement. This is why studios lock the script and the recording before animation starts.

Tools That Place the Mouth Shapes for You

These tools help you analyse the audio and place the mouth shapes for you. The result is not a finished work. It is rather a starting point.

Rhubarb Lip Sync

Rhubarb Lip Sync is a free, open-source lip-sync software. It takes audio and works out what’s being said and when, and exports this data in TSV, XML or JSON format. The data shows which mouth shape should be displayed and when. It integrates with some animation and video editing software, including After Effects (where it can even create a dialogue animation for you), Moho, OpenToonz, Spine and Vegas Pro. It works better if you give it the dialogue text too. The default speech recogniser only copes with English. There’s a second, phonetic recogniser that copes better with other languages but it is less accurate.

Adobe Character Animator

Adobe Character Animator uses Adobe’s Sensei AI technology to convert phonemes to visemes.

After adding your character or puppet and audio, you use Timeline, Compute Lip Sync Take from Scene Audio to do the lip-syncing. Adobe recommends doing any additional animation in After Effects.

Adobe Animate

Adobe Animate can also do Auto Lip-Sync, powered by Adobe Sensei. You draw your visemes and convert each one to a graphic symbol, then place them in a new master mouth symbol, each on a separate keyframe. Import your audio (make sure it’s set to stream) and use the lip syncing option to specify which graphic represents which viseme/sound. After that Animate does the lip-syncing for you. You can still do it the old way too, with a mouth chart and keyframing.

Toon Boom Harmony

Toon Boom Harmony can detect lip sync automatically and apply visemes using the letters of the standard mouth chart to your timeline, in the drawing column of your mouth layer.

It can’t draw them, so you need to draw and label them yourself using the same letters as the mouth chart.

Moho and OpenToonz

Moho and OpenToonz can import Rhubarb data. OpenToonz can only import Preston Blair viseme names, so use that option when exporting from Rhubarb.

There are newer AI based lip-sync services aimed mainly at animating or dubbing video footage such as avatars, talking heads etc. You’ll need to check whether stylised 2D animation is supported, do a quick test before committing. Also check how much control you get over the mouth shapes, since that decides how easily you can correct mistakes.

What Automation Still Gets Wrong

Automatic lip-sync uses only the audio as its guide, and it doesn’t take into consideration things like the character’s personality or where the camera is pointed. Animators often need to go over the software’s first attempt, matching it up to the audio and tidying things up. They have to add their own holds and anticipations as they smooth out the transition from one mouth-shape to the next.

It helps to give the lip-sync software the text of the script, and Rhubarb’s documentation suggests doing this even when the actual audio recording differs. But ultimately, how the mouth moves is still a question of characterisation and performance, and good character acting comes from applying good principles of animation to everything, including a talking head.

How We Handled It On a Real Series

On our Ministry of Education Singapore language learning series, all storyboards were signed-off before starting animation. When the storyboards were finalised, we did lip-sync as we animated the characters, making sure that the lip-movement matched the voice-over. (See also this page on how storyboards work.)

Questions

What is the difference between a phoneme and a viseme?

A phoneme is a speech sound. A viseme is the mouth shape that matches one or more sounds.

Do I need to draw all nine mouth shapes?

No. Rhubarb’s documentation treats the first six as the absolute minimum and the other three as optional, depending on how detailed your art style is.

Does automatic lip-sync work in other languages?

It depends on the tool. Rhubarb’s default recogniser handles English only, and its phonetic recogniser works with other languages but is less precise. Check each tool’s documentation for the languages it supports.

If you are planning an animated series with speaking characters, tell us about the project and we will give you a price and a timeline.

Alex Safavinia

CEO & Creative Director at Kasra Design®
Alex art directs every project at Kasra Design and oversees each production from first storyboard to final delivery. He founded the studio in 2011.