callable-lipsync
callable-lipsync - a tiny pre-trained streaming speech-to-face model by Callable. Speech (audio) goes in, face animation parameters come out (FLAME 2023 Open / ARKit). Needs 160ms lookahead for lips+face and 640ms for head movements. Try the live demo.
Comes in 2 sizes: tiny (16.8M; 36x realtime) and nano (2.4M; 95x realtime), on one CPU thread in Python. In a browser (WebAssembly) they run at 7x and 18x realtime.
Trained on English, might work on other languages.
Demo with sound
A recorded two-person conversation. The avatar voices one speaker and listens to the other. Both faces are drawn from the same frames of the tiny model: a FLAME 2023 Open head, and a 2D face driven by ARKit blendshape weights.
Fast start
Dependencies
Python:
python 3.9+;onnxruntime>=1.17andnumpy(installed with the package);- no GPU, no PyTorch.
JavaScript:
onnxruntime-web>=1.17(a peer dependency);- any current browser, or Node 18+.
The model files ship inside both packages (about 21 MB for the two models and the ARKit converter's data together). Nothing is downloaded at run time.
Using pip:
pip install callable-lipsync
from callable_lipsync import LipSync
model = LipSync("tiny") # or "nano"
for chunk in audio_stream: # float32, 16 kHz mono, any chunk size
frames = model(chunk) # (n, 118): the frames this audio settled, 25 per second
A whole clip at once:
from callable_lipsync import animate
frames = animate(wav, model="tiny") # (len(wav) // 640, 118)
Using npm:
npm install callable-lipsync onnxruntime-web
import * as ort from 'onnxruntime-web';
import { LipSync } from 'callable-lipsync';
// in a browser: serve node_modules/callable-lipsync/models/ and point `base` at it; in Node, leave `base` out
const model = await LipSync.load(ort, { model: 'tiny', base: '/models/tiny/' });
const frames = await model.process(samples); // Float32Array, 16 kHz mono -> [Float32Array(118), ...]
Python and JavaScript run the same engine: the same audio and seed give the same frames in both.
Key Features
-
Tiny
Two sizes.
tinyis 16.8M parameters and a 17.4 MB download.nanois 2.4M parameters and 2.5 MB. -
Fast
One 40 ms frame takes about 1 ms on a single CPU thread in Python and about 6 ms in WebAssembly in a browser (
tiny).nanotakes 0.4 ms and 2 ms. -
The whole face, not only the lips
tinygives lips, jaw, cheeks and brows, blinks, gaze, head and neck rotation and a little upper-body sway.nanogives lips, jaw, face and head rotation. -
Streaming
Feed it audio in chunks of any size as it arrives. It keeps its own state and costs the same per frame however long the stream runs.
-
Works with any amount of audio ahead
A text-to-speech engine usually has audio ready slightly before it is heard, and the model uses that to make the head move with the words. With a live microphone it has none, and it still works: tell it how much it gets (0 to 0.64 s), the same weights handle all of it.
-
FLAME and ARKit output
Frames are FLAME 2023 Open parameters. For avatars rigged with ARKit blendshapes, a converter in both packages turns each frame into the 51 ARKit weights (see Output).
-
No Strings Attached
Published under a permissive license (Apache 2.0). No telemetry, no keys, no registration, no server: the model runs where your code runs.
Models
| tiny | nano | |
|---|---|---|
| Lips and jaw | ✅ | ✅ |
| Cheeks, brows, rest of the face | ✅ | ✅ |
| Head rotation | ✅ | ✅ |
| Blinks | ✅ | ❌ |
| Gaze | ✅ | ❌ |
| Neck separate from the chest | ✅ | ❌ |
| Upper-body sway | ✅ | ❌ |
| Works with no audio ahead (live microphone) | ✅ | ❌ |
| Head motion planned on up to 0.64 s of audio ahead | ✅ | ❌ |
| New head and eye motion on every run | ✅ | ❌ |
| Streaming, any chunk size | ✅ | ✅ |
| ARKit blendshape weights | ✅ | ✅ |
| Python and JavaScript | ✅ | ✅ |
| Parameters | 16.8M | 2.4M |
| Size (ONNX, 8-bit weights) | 17.4 MB | 2.5 MB |
| Audio ahead | 0 to 0.64 s, your choice | 0.16 s, fixed |
| Python, one thread | 1.1 ms a frame | 0.4 ms a frame |
| Browser (WebAssembly), one thread | 5.8 ms a frame | 2.2 ms a frame |
Measured on an AMD Ryzen 7 9700X; a frame is 40 ms of audio. tiny at 0.64 s of audio ahead.
How much audio tiny gets ahead of each frame decides how well the head follows the speech:
| Audio ahead | Lips | Head, eyes, body |
|---|---|---|
| 0.64 s | full | turns and nods land on the speech (the reference) |
| 0.32 s | full | nods about 75% of that, turns about 55% |
| 0.16 s | full | nods about 40%; turns no longer follow the speech |
| none | lip error about 30% higher | natural motion, not timed to the speech |
model = LipSync("tiny", ahead=0.16) # 0.64, 0.48, 0.32, 0.16, 0.08 or 0
Output
25 frames a second, 118 numbers each. Rotations are axis-angle, in radians.
| Numbers | What |
|---|---|
| 0..99 | FLAME 2023 Open expression |
| 100..102 | chest rotation |
| 103..105 | jaw |
| 106..108 | neck |
| 109..114 | left and right eye |
| 115..117 | travel of the upper body, metres |
nano fills expression, jaw and neck and leaves the rest at zero. In Python, callable_lipsync.LAYOUT has these as slices.
ARKit blendshapes
If your avatar is rigged with ARKit blendshapes (as most game-engine and phone-tracked faces are), convert the frames to the 51 ARKit weights, 0 to 1 each: jawOpen, mouthFunnel, mouthSmileLeft, eyeBlinkLeft, browInnerUp and the rest. The converter is in both packages and gives the same weights in both.
from callable_lipsync import LipSync, Arkit
model, arkit = LipSync("tiny"), Arkit("tiny")
weights = arkit(model(chunk)) # (n, 51), in the order of arkit.names
import { LipSync, Arkit } from 'callable-lipsync';
const arkit = await Arkit.load({ model: 'tiny', base: '/models/arkit/' }); // in Node, leave `base` out
for (const frame of await model.process(samples)) {
const weights = arkit.convert(frame); // Float32Array(51), in the order of arkit.names
}
It takes about 0.2 ms a frame. jawOpen and the eight eyeLook weights come straight from the jaw's and the eyes' rotation; the others are solved from the face's shape. The head, neck and chest rotations and the travel are not blendshapes: apply them to your rig's bones from the frame itself. It is an approximation: ARKit's 51 shapes reproduce about three quarters of tiny's face motion, so treat the weights as a starting point.
Typical Use Cases
- Faces for voice agents and voice bots, driven by the text-to-speech audio
- Avatars in games, apps and video calls, driven by a live microphone
- Lip sync for characters in the browser with no server and no GPU
- Batch animation of recorded speech
Roadmap
Done
- ✅
tinyandnanomodels, streaming, with a choice of lookahead - ✅ Python package (
pip install callable-lipsync) - ✅ JavaScript package (
npm install callable-lipsync), for browsers and Node - ✅ FLAME 2023 Open output
- ✅ ARKit blendshape converter in both packages
- ✅ Browser demo
Planned
- ⬜ Benchmarks
- ⬜ Unreal Engine MetaHuman support
- ⬜ VRM model support
- ⬜ Unity support
Links
- Live demo, and its source: both models on a recorded conversation, a 3D head and a 2D face
- The ARKit converter in JavaScript and in Python
- Python example and Node example
- The engine in JavaScript and in Python
- Callable
Get In Touch
Try the models, create an issue, or email us. More about what we build at callable.com.ai.
Limitations
- One speaker at a time. Feed it a mix of two voices and it will lip-sync both.
- Measured mostly on English. It listens to sound, not text, so other languages work, but we have not measured how well.
- No tongue and no teeth in the output.
- Input is 16 kHz mono. Resample other audio first.
Model card
| Model | callable-lipsync tiny and nano, by Callable |
| License | Apache 2.0 (weights and code) |
| Training data | Callable's proprietary dataset |
Citations
@misc{callable-lipsync,
author = {Callable},
title = {callable-lipsync: a tiny streaming speech-to-face model},
year = {2026},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/callabledev/callable-lipsync}},
email = {support@callable.com.ai}
}
Third-party material
The browser demo uses the FLAME 2023 Open head model (CC BY 4.0), conversations from DailyTalkContiguous (CC BY-SA 4.0, unmodified), ONNX Runtime Web and three.js. The demo video uses the same head model and one of those conversations.
Metadata
Release files for callable-lipsync 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| callable_lipsync-0.1.0.tar.gz | 19.0 MB | With provenance | Details for callable_lipsync-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| callable_lipsync-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for callable_lipsync-0.1.0-py3-none-any.whl |
Total release size: 38.1 MB
Release files / callable_lipsync-0.1.0.tar.gz
| Download URL | callable_lipsync-0.1.0.tar.gz |
|---|---|
| Size | 19.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
939ca2c7cad1c410236a2723b4efbb2402967aa1715e7bc5d82e0fc2965fd9e6
|
|
BLAKE2b-256 checksum How to use checksums |
4f0f798f63aee2235d370fd8fd3012b9b8b43c088b92f9793783938d1f8d57e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logRelease files / callable_lipsync-0.1.0-py3-none-any.whl
| Download URL | callable_lipsync-0.1.0-py3-none-any.whl |
|---|---|
| Size | 19.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7d1eef1e89a2859f0098d8294341a827bd90e348167064d7fe708fe5e4c52937
|
|
BLAKE2b-256 checksum How to use checksums |
1894a20ba05d8b66b027275d921ea85b966c4c391d863b99ccf213600ad5c406
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logSecurity for callable-lipsync 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for callable_lipsync-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.