Repository navigation
Lip Sync
Lip sync turns a WAV file into a clip with viseme and jaw tracks on the face shapes. The face needs shapes first: jawOpen and the visemes from Shapes. The pane reports whether the face is ready.
- Open the Face tab, lip sync section.
- Choose a WAV file (PCM 8, 16, 24 or 32 bit, or float; any channel count is averaged to mono). In the browser the file is uploaded to
<data>/audio/throughPOST /api/files/store?kind=audio(512 MB cap). - Pick a method and press Generate.
| Method | Needs | How |
|---|---|---|
| Basic | nothing extra | 10 ms frames, 30 ms windows: loudness decides open or closed, high-band energy decides fricatives (B), the spectral peaks F1 and F2 decide the vowel shape. A silence up to 120 ms is a closure (A) |
| Rhubarb | the Rhubarb Lip Sync add-on (MIT) | phoneme timing from Rhubarb; an optional dialogue text improves it |
| Audio2Face-3D | NVIDIA's SDK | not offered in the app yet: FormRig never downloads the model |
Shape choice in Basic is rough by design; timing is accurate to about 20 ms on synthetic speech. Cues map to the viseme shapes through the mapping table (Meta visemes sil PP FF TH DD kk CH SS nn RR aa E I O U; the older names ih, oh, ou resolve to I, O, U). A viseme expression you have defined replaces the default mapping. The jaw loudness envelope scales jawOpen between 0.5 and 1.
The result is a new clip with one morph track per mesh that has an ARKit shape, one key per frame, and the cue boundaries blended by a smoothstep. The track list stores the audio, cues and source in the document. Applying again regenerates after you change an expression.
The audio follows the clip strip. Play, scrub or loop the clip and the audio starts at the clip time plus a measured latency, drift is corrected by small playback-rate changes, and a seek happens only when the error exceeds 250 ms. Paused or scrubbed audio is parked at the clip time. A viseme lane under the strip shows the cues. The audio is silent outside the track's range and pauses when the tab is hidden.
Install it from the lip sync pane after accepting the licences (Local only off). Rhubarb is MIT; the dialog also lists its bundled BSD, Boost and WTFPL parts (five entries in all) before you accept. FormRig reads the latest official release for your platform, accepts only the project's release URLs, checks the sha256 when the API gives one, and runs rhubarb -f json with the extended shapes. The pane then reads Installed and ready (or Installed, not ready, with the reason).
A real run: Rhubarb v1.14.0 for Linux installed in 4.2 s and ran on the 14.4 s speech sample that ships in its archive. It returned 72 cues, identical in start, end, value and duration to the program's own output. On Michelle, after the face rig and face shapes were generated, Generate with Rhubarb drove 16 shapes with none missing and made a clip with 433 keys in 22 s on 2 cores (Rhubarb itself 13 s), so the button stays busy for a while on a long file and a slow machine; the service allows 15 minutes. A corrupt WAV shows Rhubarb's own message. The phonetic recognizer gave 86 cues; with the extended shapes empty, 72 cues using only shapes A to F; dialogue text is accepted. If a network policy blocks the release list on api.github.com, the install says "could not read the Rhubarb release list: HTTP Error 403: Forbidden" and the add-on stays not installed. In the test the release list call itself was blocked and the asset was fetched from the project's release URL, so that one call is the part not exercised.
- Cues are not re-run for you when an expression changes; press Generate again.
- Audio is not embedded in exported GLB, FBX or VRM files; the clip carries the morph tracks.
- Rhubarb was run for real on Linux only; the macOS and Windows downloads were not run.