Decart Logo
  • Real-time
  • Mirage LSD
    Mirage LSDRealtime Video Restyling
  • Lucy Edit Live
    Lucy Edit LiveRealtime Video Editing
  • LipSync Live
    LipSync LiveRealtime Lips movement
  • Video models
  • Lucy
    LucyText/Image to Video
  • Lucy Edit
    Lucy EditVideo to Video
  • Image models
  • Lucy Image
    Lucy ImageText to Image
  • Lucy Image Edit
    Lucy Image EditImage to Image
  • Cookbook icon
    Cookbook
  • Documentation icon
    Documentation
  1. Models
  2. LipSync Live
LipSync Live icon

LipSync Live

Realtime lip movement synchronization with audio input

Realtime lip movement synchronization with audio input

Documentation
1 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_frameRequired
Type:File

Video frame input (WebSocket)

audio_dataRequired
Type: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.

Examples