Lip sync
mouth() matches a character's mouth to speech, using the shapes from
Rhubarb Lip Sync.
Using mouth shapes in expressions
mouth() uses the master mix at the current time. mouth([1]) uses audio
track 1. mouth([0, 2]) uses those tracks.
The result is one of these shapes:
| Shape | Example | Use |
|---|---|---|
A | Closed mouth for M, B, and P sounds. | |
B | Slightly open mouth with clenched teeth, used for most consonants and sounds such as “ee.” | |
C | Open mouth for vowels such as “eh” and “ae.” | |
D | Wide-open mouth for vowels such as “aa.” | |
E | Slightly rounded mouth for sounds such as “off” and “bird.” | |
F | Puckered lips for sounds such as “you,” “show,” and “way.” | |
G | Upper teeth touching the lower lip for F and V sounds. | |
H | Raised tongue behind the upper teeth for long L sounds. | |
X | Relaxed idle position used for pauses in speech. |
A through F are the basic shapes. G, H, and X are extended
shapes that can improve animation when the character artwork supports them.
Use match to map the mouth shape to a property value. The _ case
covers the remaining shapes.
match mouth() {
case "A" { return 0 }
case "B" { return 1 }
case _ { return 2 }
}
While a preview is still analyzing, mouth() reports that it is loading.
Export waits until analysis finishes.
Mouth-shape illustrations by Daniel Wolf.