Talk to any face
Eleven faces, each with a personality and a voice of its own. Type a message and the face answers aloud, lip-synced to every word, its feelings showing as it talks. Swap faces, voices and looks as you go.
Its eyes follow your pointer
Loading...
Who to talk to
Talk
The face is the Wireface SDK's 3D face on a canvas. Its voice can come from any AI that streams speech: push the audio into StreamVoice and the mouth is worked out from the sound itself, a moment before it plays.
import { createFace, StreamVoice } from '@wireface/sdk';
const face = createFace(canvas, { assets });
await face.useCharacter('marcus'); // a face from the catalogue
face.set({ skin_amount: 0.7, preset: 'violet' });
// a voice AI's reply, as it streams in
const voice = new StreamVoice(face, audioContext);
ai.on('audio', pcm => voice.push(pcm)); // 24 kHz, 16-bit
ai.on('done', () => voice.end());
ai.on('feeling', f => face.express(f, 4));