7 synchronicity-labs

edit-dialogue Skill

使用 sync. labs(sync.so)修改或删除单人视频中少数几句口头内容,保留说话人本人的声音并重新同步口型,无需重新拍摄。适用于纠正说错的词、错误的名字、数字、价格或日期、发音错误、台词中的笔误,或删掉口头禅和赘词,也可从一条录制中生成每位收件人姓名各自的版本。不适用于替换整个脚本(lipsync 配新脚本)、翻译(translate-and-dub)或换用其他声音。

安装方式:把技能目录放入 ~/.claude/skills/(Claude Code)或在 claude.ai 设置中启用;也可复制右侧安装命令一键添加。

查看源码

技能指令原文(SKILL.md)

Fix spoken words

sync. labs | Dialogue editing guide

Delivers one MP4 where only the agreed words change. Everything else keeps the original picture and voice.

If no sync. tools are available, follow references/connect.md first. The REST version of this workflow is in early access and needs features enabled per organization; see https://sync.so/docs/developer-guides/dialogue-editing.

Inputs

  • Video: one person speaking, up to 10 minutes, as a local file, public URL or sync. video asset ID.
  • The fix: which words to change or remove, and what to say instead. Never guess the replacement words.

Tools

| Step | Tool |
| --- | --- |
| Check support | dialogue_get-options |
| Create the project | projects_create |
| Save the video | assets_upload, assets_create-upload-url + assets_create (local files), or assets_create (URLs) |
| Transcribe | dialogue-transcriptions_create, dialogue-transcriptions_get |
| Preview the new audio | dialogue-previews_create, dialogue-previews_get |
| Quote | dialogue-videos_estimate |
| Create | dialogue-videos_create |
| Wait | generations_get |
| Many variants | jobs_create-many, jobs_get-many |

Steps

  1. Support. Call dialogue_get-options. If Edit Dialogue isn't available for this account, say so and stop. Note whether it reports keyedPreview.
  2. Project. Call projects_create with a new random UUID as id, a short name and defaultWorkflow: "edit_dialogue". Save the returned id as projectId. Pass it wherever a tool asks for projectId, and add projectIntent: "explicit" only on tools that take that field.
  3. Save the video into that project. Follow references/media-input.md.
  4. Transcribe. Call dialogue-transcriptions_create with the projectId and videoAssetId, then dialogue-transcriptions_get with the returned id until it completes. If the result includes a new videoAssetId, the video was copied into sync. storage: use that ID from here on. If more than one speaker is detected, explain that this workflow handles one speaker, and stop.
  5. Agree the edits. Show the transcript lines around the fix. Turn the request into edits that use the transcript's word IDs:
  • {"kind": "change", "wordId": "w35", "replacement": "Mia"}, adding "pronunciation": "meeah" only for a name the voice might say wrong. Write respellings as plain words, without hyphens or capitals, which the voice may spell out.
  • {"kind": "remove", "wordIds": ["w12", "w13"]} for consecutive words.

Confirm the edits with the user.

  1. Preview. The preview clones the speaker's voice and can incur synthesis charges, so mention that when you confirm the edits. Call dialogue-previews_create with the edits and the transcriptionJobId, plus a new idempotencyKey saved before the call when keyedPreview is reported. If that call's outcome is unclear, retry only the identical request with the same key. Poll dialogue-previews_get until it completes, and share the preview audio. If some edits failed (a partial completion), for example because a replacement is too long for the gap it fills, say which, suggest shorter wording, confirm the revised edits, and make a new preview with previousPreviewId.
  2. Quote. Call dialogue-videos_estimate with the completed preview's ID as dialogueEditId and model: "sync-3". Show the estimate and wait for approval of both the preview and the cost.
  3. Create. Call dialogue-videos_create once with the same dialogueEditId, the model, the project and a new idempotencyKey. If the response is lost, retry once with the same key and inputs.
  4. Wait and deliver. Poll generations_get with the returned id and wait: true until it's final. Give the exact outputMediaUrl unchanged.

Many variants

To make many versions of one recording, such as one per recipient's name, transcribe once (steps 1 to 4), then:

  1. Agree every variant's edits as in step 5, as a table with one row per variant, and confirm them once, mentioning the synthesis charges.
  2. Previews. With jobs_create-many listed, save a new UUID for the set, then call it with tool: "dialogue-previews_create", that UUID as idempotencyKey, and one item per variant: the projectId with projectIntent: "explicit", the videoAssetId, the transcriptionJobId and that variant's edits. Leave idempotencyKey out of the items: the tool derives one per item when the account reports keyedPreview. Without keyedPreview, never resend a preview set after an unclear response; tell the user instead. Preview requests are limited to 30 a minute, so send at most 30 variants per call and wait a minute before the next. Follow them with jobs_get-many and wait: true, and handle partial completions as in step 6. Without jobs_create-many, make the previews one at a time as in step 6, at the same pace.
  3. Quote once. Call dialogue-videos_estimate for each completed preview, show the count and the total, and wait for one approval of the whole set.
  4. Renders. Write one idempotencyKey per variant into your variant table, plus a new UUID for the set, before calling. Then call jobs_create-many with tool: "dialogue-videos_create", that UUID as idempotencyKey, and one item per approved preview: projectId with projectIntent: "explicit", videoAssetId, the preview's ID as dialogueEditId, model: "sync-3" and the variant's idempotencyKey. Send at most 50 per call. Follow them with jobs_get-many and wait: true. When the response has remaining, send it again exactly as returned once running jobs finish; if the tool refuses a single remaining item, send that variant with dialogue-videos_create and the same key. Without jobs_create-many, call dialogue-videos_create once per preview with its own key, keeping at most the plan's generationLimits.concurrency from account_get-context in flight.
  5. Deliver a table of variant, status and exact outputMediaUrl.

Limits

  • One speaker per video, up to 10 minutes, and at most 100 edits per preview.
  • Targeted words only. For a whole new script, explain that this workflow keeps the original recording, and offer the lipsync skill with a script and a chosen voice instead. Never split a new script into many word edits to get around this.
  • The speaker's voice is cloned for the new words. 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.