lipsync Skill
使用 sync. labs(sync.so)对真人的现有视频进行口型同步,使其口型匹配新的配音、重录内容、歌曲或 sync. 配音的文字脚本。支持本地文件、URL、sync. 资产以及 YouTube、TikTok、Instagram 或 Facebook 链接。只要用户想让视频口型对齐音频、"让他(看起来)说……"、替换说话人视频的音频,或把片段对到歌曲上,即使没说"lipsync"也可以使用。不适用于 Veo、Kling、Sora 等工具生成的 AI 角色或片段(ai-video-to-talking)或静态图片。
安装方式:把技能目录放入 ~/.claude/skills/(Claude Code)或在 claude.ai 设置中启用;也可复制右侧安装命令一键添加。
技能指令原文(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_create to 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 "".
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.