LipSync Live
Realtime lip movement synchronization with audio input
Realtime lip movement synchronization with audio input
Documentation1 Credit Per Second
1 Credit Per Second
Upload audio file
or
Click to record audio
Generation settings
const ws = new WebSocket('wss://api.decart.ai/router/lipsync/ws?api_key=--your-api-key--');
ws.onopen = () => {
// Send configuration
ws.send(JSON.stringify({
type: 'config',
video_fps: 25,
audio_sample_rate: 16000
}));
};
ws.onmessage = (event) => {
const message = JSON.parse(event.data);
if (message.type === 'config_ack') {
console.log('Connected and configured');
// Send video frames and audio data
ws.send(JSON.stringify({
type: 'video_input',
video_frame: videoFrameBase64
}));
ws.send(JSON.stringify({
type: 'audio_input',
audio_data: audioDataBase64
}));
} else if (message.type === 'synced_result') {
// Render the lip-synced output
const videoFrame = message.video_frame;
const audioFrame = message.audio_frame;
// Display frames...
}
};Available Endpoints
Request Parameters
video_frameRequiredType:File
Video frame input (WebSocket)
audio_dataRequiredType:File
Audio data for lip-sync (WebSocket)
Parameter
Type
Required
Description
video_frameFileYesVideo frame input (WebSocket)audio_dataFileYesAudio data for lip-sync (WebSocket)LipSync Live
Generate real time, natural lip-sync from audio
Real-time voice meets real-time video. Stream audio, and get flawless lip-sync and expressive avatars with zero uncanny lag.
Pricing
Model
pro
720p
1 Creditsper 1s
Video models are charged per second of generated video. Final cost depends on video duration and selected resolution.