lipsync
Lip-sync one existing video of a real person to new speech with sync. labs (sync.so), so their mouth matches a new voiceover, re-recorded take, song, or a typed script that sync. voices. Accepts local files, URLs, sync. assets and YouTube, TikTok, Instagram or Facebook links. Use whenever the user wants to lipsync, lip sync or sync lips, match mouth movement to audio, "make him say…", replace the audio in a talking-head clip, or sync a clip to a song, even if they don't say "lipsync". Not for AI-generated characters or clips from Veo, Kling, Sora and similar tools (ai-video-to-talking), still pictures (talking-photo), translation (translate-and-dub), changing a few words in the original voice (edit-dialogue), or many videos at once (batch-lipsync).
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 1.6k
- Forks
- 491
01 前言 Front Matter
- name
- lipsync
- license
- MIT
- description
- Lip-sync one existing video of a real person to new speech with sync. labs (sync.so), so their mouth matches a new voiceover, re-recorded take, song, or a typed script that sync. voices. Accepts local files, URLs, sync. assets and YouTube, TikTok, Instagram or Facebook links. Use whenever the user wants to lipsync, lip sync or sync lips, match mouth movement to audio, "make him say…", replace the audio in a talking-head clip, or sync a clip to a song, even if they don't say "lipsync". Not for AI-generated characters or clips from Veo, Kling, Sora and similar tools (ai-video-to-talking), still pictures (talking-photo), translation (translate-and-dub), changing a few words in the original voice (edit-dialogue), or many videos at once (batch-lipsync).
- compatibility
- Needs the sync. MCP server or a SYNC_API_KEY. See references/connect.md.
02 资源文件 4
- 参考文档agents/openai.yaml194 B
- 参考文档references/api.md4.1 KB
- 参考文档references/connect.md3.3 KB
- 参考文档references/media-input.md3.8 KB
03 SKILL.md 正文
Lipsync a video
Delivers one MP4 of the video with the lips matched to the new speech.
If no sync. tools are available, follow references/connect.md first. Without the MCP tools, use the REST requests in references/api.md for the same steps.
Inputs
- Video: a local file, a public URL, a sync. video asset ID, or a social link.
- Speech: an audio file, URL or asset, or a script plus a voice.
Ask only for what's missing. Never invent the words.
Tools
| Step | Tool |
|---|---|
| Save files | assets_upload (chat apps), or assets_create-upload-url then assets_create (local files) |
| Import a social link | projects_create, assets_create |
| Pick a voice (script only) | voices_list |
| Quote | generations_estimate-cost |
| Shorten long audio | audio-trims_create, audio-trims_get |
| Create | lipsync_create |
| Wait | generations_get |
Steps
-
Save the inputs. Follow references/media-input.md. Save each file once, and reuse the returned asset ID for every later step and retry. Check the input-quality list there and mention problems now, such as several faces or music under the voice.
-
Voice. For a script, call
voices_list. Unless the user named a voice, suggest two or three that fit, and use the chosen voice'sidasvoiceId. -
Length. When the speech and the video differ noticeably in length, ask how to handle it and pass the answer as
options.sync_mode:bounce(default): play the video forward, then in reverse, to cover longer speechloop: repeat the video from the startcut_off: stop the speech when the video endssilence: keep the video going silently after the speech endsremap: speed the video up or slow it down to fit the speech exactly
If the audio is over the plan's length limit, offer
audio-trims_createto keep its first part. -
Speaker. If more than one face is visible, ask who should speak. Leave
options.active_speaker_detectionunset unless the user picks someone. -
Quote. Call
generations_estimate-costwith the model (sync-3unless the user chose another) and the speech'saudioDuration, or thescript. Forcut_offorsilence, also passvideoDurationandsyncMode. This prices the lipsync only. For a script, say the length is approximate and that speech synthesis is billed separately. -
Confirm. Show the video, the speech, the voice, any sync mode and the estimate, and wait for approval. Skip the wait only if the user already approved this exact request and cost.
-
Create. Call
lipsync_createonce with the video (videoAssetIdorvideoUrl), the speech (audioAssetId,audioUrl, orscriptwithvoiceId), the model, anyoptions, a newidempotencyKey, and either theprojectIdof a project you created in step 1 (withprojectIntent: "explicit") or a new random UUID asprojectCreationKeyplus a shortprojectName. Save the keys before calling. If the response is lost or times out, the job may still have started: retry once with the same keys and inputs, which returns the original generation if it exists. -
Wait and deliver. Call
generations_getwith the returnedidandwait: true, repeating until the status isCOMPLETED,FAILEDorREJECTED. Most jobs take a few minutes. Give the exactoutputMediaUrlunchanged. In a coding agent with a shell, offer to download it next to the source, for examplecurl -L -o clip_lipsync.mp4 "<url>".
Rules
- Use
sync-3unless the user picks another model, and take model names only frommodels_list. - Never start a second paid generation to check progress or to refresh a link.
- Start a new project for new work. Reuse an existing project only when the user asks for it.
- On a plan, credit or length error, quote the message and stop. On a rejected input, explain which input and why.
- Assume the user has the rights to their own media, and don't ask about consent on routine requests. Decline only when the request is to make a real, identifiable person, such as a politician or celebrity, appear to say something they didn't say, in order to deceive.
04 同仓库更多 Skills
worktable-review-with-annotations
Create, inspect, reply to, update, or resolve situated Worktable annotations. Use when feedback belongs to a Doc section, block, text range, or HTML Doc, or when the user asks to address existing review feedback and coordinate a requested artifact edit.
worktable-find-and-synthesize-context
Find, assess, and synthesize context from Worktable Docs and Records. Use when the user asks what a workspace contains, wants workspace-backed research, needs current facts reconciled across artifacts, or requests a cited synthesis without changing workspace state.
worktable-create-or-update-docs
Create, edit, rename, or maintain narrative Worktable Docs. Use for plans, decisions, briefs, notes, research syntheses, and other durable prose when the user requests a new artifact or a safe update to an existing one.
worktable-create-or-manage-records
Organize repeated structured information as durable Worktable Records. Use for research datasets, inventories, directories, pipelines, trackers, and other collections whose items need identity, fields, filtering, links, validation, or individual updates.
worktable-create-or-manage-interactive-html
Create or improve durable visual and interactive artifacts in Worktable. Use for dashboards, trackers, calculators, mini apps, slide presentations, and other requests that benefit from a polished HTML Doc.
worktable-collaborate-threads
Read, answer, and hand off messages through durable Worktable threads with users or other authenticated participants. Use when the user asks to check addressed messages, reply to a participant, continue a thread, request another agent's help, wait briefly for a response, or watch for comments and messages sent to the agent.