Skip to main content
Glama

create_lipsync

Synchronize audio with video to create lipsync videos by providing video and audio URLs. This tool generates videos where mouth movements match the audio track.

Instructions

Create a lipsync video by synchronizing audio with video

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
video_urlYesURL to the source video
audio_urlYesURL to the audio file to sync
callback_urlNoURL to receive completion callback

Implementation Reference

  • The createLipsync handler method that makes a POST request to /lipsync endpoint with the provided arguments and returns the response data
    private async createLipsync(args: any) {
      const response = await this.axiosInstance.post('/lipsync', args);
      return {
        content: [{
          type: 'text',
          text: JSON.stringify(response.data, null, 2),
        }],
      };
    }
  • Tool definition with name 'create_lipsync', description, and inputSchema specifying video_url, audio_url (required), and callback_url (optional) parameters
    // Lipsync
    {
      name: 'create_lipsync',
      description: 'Create a lipsync video by synchronizing audio with video',
      inputSchema: {
        type: 'object',
        properties: {
          video_url: {
            type: 'string',
            description: 'URL to the source video',
          },
          audio_url: {
            type: 'string',
            description: 'URL to the audio file to sync',
          },
          callback_url: {
            type: 'string',
            description: 'URL to receive completion callback',
          },
        },
        required: ['video_url', 'audio_url'],
      },
    },
  • src/index.ts:740-741 (registration)
    Switch case routing 'create_lipsync' tool calls to the createLipsync handler method
    case 'create_lipsync':
      return await this.createLipsync(request.params.arguments);

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rakeshdavid/Tavus-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server