
Project · A browser library
Wireface: a face for a voice, in the browser
A drop-in lipsync renderer for stylised character profiles: no rigged avatar, no machine-learning inference, no server round trip. Wireface analyses voice or text-to-speech audio in the browser and drives a wireframe face through 30 expression channels.
Above, live
That is the library’s own editor, running in your browser
It is the editor that ships with Wireface 1.4.1, unchanged, with the sample voice from its repository. It opens on the face from this site’s home page. Press Play and it speaks, and every panel around it changes the face while it talks.
loadPreset
Pick a face
Six to start with, each one JSON file: this site’s face in its light and its dark colours, and the four that come with the library, from a sparse blue head to a dense red mesh.
setLipSync · setMood
Change how it speaks
Two ways of reading the voice, new in 1.4: one opens the jaw by loudness and shows one mouth shape at a time, the other blends several. The faces here use the first. Moods from happy to asleep, and a dial for each of the 30 channels.
setRenderConfig · getPreset
Make your own
Mesh, mouth, eyes, jaw, lines and colours are bars and switches beside the face. Save keeps a face in the list with its picture; Export gives the file the library loads, and Import takes one back.
The editor runs in a sandboxed frame. The faces you save are kept in this browser and nowhere else: nothing you do here is sent anywhere. Press F, or the button in the player, for full screen.
30 channels. 15 visemes from the Oculus Lipsync phoneme alphabet, plus 15 ARKit-style face blendshapes: jaw, lips, blinks, eye gaze, squint, brows, nose and head rotation.
One preset per character. Mesh resolution, the shape of the lips, colours, depth fade, glow, mood weights, channel gains and the lip-sync settings live in one JSON preset, saved from the bundled editor and replayed by a single JavaScript file.
One call. One canvas, one peer dependency (Babylon.js), one createWireface(canvas). Each face is independent, so a page can host several talking at once.
Any audio. Anything the browser can decode: MP3, WAV, OGG, M4A, FLAC, AAC or Opus.
Since version 1.3
Speech as it streams in, on the sound’s clock
A voice from a speech service arrives in chunks, not as one file. Wireface analyses each chunk the moment it arrives and schedules the mouth against the sound. Its own test suite measures the mouth opening 50 ms ahead of the sound, closed 66 ms after it ends, and closed 83 ms after a cut.
pushAudio
Streamed speech
Audio chunks go in as they arrive, each placed on a clock so the lips match what is heard.
setBehaviour
Behaviours
States such as idle, waiting, listen and speak, and shots from a close-up of the mouth to a distant view.
on(event)
Events
Speech starting and ending, the audio running dry, and each change of behaviour, so a page can follow what every face is doing.
Version 1.4.1 is on npm with a signed SLSA build-provenance record, and its test suite runs on every push.
Why it is here
A voice for the study’s explainers
The research is told in reports, short videos and audio. Wireface is the light way to put a face to a voice in a page, with nothing to install and nothing sent to a server.