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
- Support. Call
dialogue_get-options. If Edit Dialogue isn't available for this account, say so and stop. Note whether it reportskeyedPreview. - Project. Call
projects_createwith a new random UUID asid, a shortnameanddefaultWorkflow: "edit_dialogue". Save the returnedidasprojectId. Pass it wherever a tool asks forprojectId, and addprojectIntent: "explicit"only on tools that take that field. - Save the video into that project. Follow references/media-input.md.
- Transcribe. Call
dialogue-transcriptions_createwith theprojectIdandvideoAssetId, thendialogue-transcriptions_getwith the returnediduntil it completes. If the result includes a newvideoAssetId, 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. - 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.
- Preview. The preview clones the speaker's voice and can incur synthesis charges, so mention that when you confirm the edits. Call
dialogue-previews_createwith the edits and thetranscriptionJobId, plus a newidempotencyKeysaved before the call whenkeyedPreviewis reported. If that call's outcome is unclear, retry only the identical request with the same key. Polldialogue-previews_getuntil 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 withpreviousPreviewId. - Quote. Call
dialogue-videos_estimatewith the completed preview's ID asdialogueEditIdandmodel: "sync-3". Show the estimate and wait for approval of both the preview and the cost. - Create. Call
dialogue-videos_createonce with the samedialogueEditId, the model, the project and a newidempotencyKey. If the response is lost, retry once with the same key and inputs. - Wait and deliver. Poll
generations_getwith the returnedidandwait: trueuntil it's final. Give the exactoutputMediaUrlunchanged.
Many variants
To make many versions of one recording, such as one per recipient's name, transcribe once (steps 1 to 4), then:
- 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.
- Previews. With
jobs_create-manylisted, save a new UUID for the set, then call it withtool: "dialogue-previews_create", that UUID asidempotencyKey, and one item per variant: theprojectIdwithprojectIntent: "explicit", thevideoAssetId, thetranscriptionJobIdand that variant'sedits. LeaveidempotencyKeyout of the items: the tool derives one per item when the account reportskeyedPreview. WithoutkeyedPreview, 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 withjobs_get-manyandwait: true, and handle partial completions as in step 6. Withoutjobs_create-many, make the previews one at a time as in step 6, at the same pace. - Quote once. Call
dialogue-videos_estimatefor each completed preview, show the count and the total, and wait for one approval of the whole set. - Renders. Write one
idempotencyKeyper variant into your variant table, plus a new UUID for the set, before calling. Then calljobs_create-manywithtool: "dialogue-videos_create", that UUID asidempotencyKey, and one item per approved preview:projectIdwithprojectIntent: "explicit",videoAssetId, the preview's ID asdialogueEditId,model: "sync-3"and the variant'sidempotencyKey. Send at most 50 per call. Follow them withjobs_get-manyandwait: true. When the response hasremaining, send it again exactly as returned once running jobs finish; if the tool refuses a single remaining item, send that variant withdialogue-videos_createand the same key. Withoutjobs_create-many, calldialogue-videos_createonce per preview with its own key, keeping at most the plan'sgenerationLimits.concurrencyfromaccount_get-contextin flight. - 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.