Video translation

From ChatCut-Inc/agent-plugin · View interactive version

Video translation is an AI agent skill from the GitHub repository ChatCut-Inc/agent-plugin. Translate, dub, and localize speech in an existing video while optionally preserving speaker voices, generating translated captions, or synchronizing the speaker's lip movements. Use when the user asks for 视频译制、多语言配音、 把视频里的中文变成英文、让视频里的人说另一种语言、保留原音色、翻译声音、 口型同步、translated video, video dubbing, voice t

How to use this skill

Skill file

Video Translation

If submit_video_translation is not loaded yet, load it with ToolSearch before calling it, so you use its real parameters instead of guessing.

Create a new localized video asset from an existing project video. Treat

speech translation, dubbing, voice preservation, lip synchronization, captions,

quality, authorization, generation, and verification as one workflow.

Lip-synced translation starts with source-transcript review in an editable

ChatCut Widget. The recognized source wording is never treated as final until

the user has edited or approved that form and submitted it. Audio-only

translation keeps the existing direct-submit flow and skips this review.

Authentication and inputs

Use the declared ChatCut MCP connection for this workflow; the host manages

authentication. Do not read passwords, API keys, or OAuth credentials from the

user's environment, credential stores, or local files. Tool arguments below are

project asset identifiers, language and treatment options, and user-reviewed

transcript text, not authentication values.

When to Use

Use this skill when the user wants an existing video to:

Typical triggering requests include:

Route adjacent requests elsewhere:

then use the Digital Human Skill.

Talking Head Guide.

Treat these requests as ambiguous:

For an ambiguous request, ask one treatment question with text choices. Keep

the wording natural for the conversation, and include all applicable paths:

and submit with audioOnly: false or omit audioOnly.

audioOnly: true.

translation job.

Keep user-facing terminology in one language. These are localized concept names,

not fixed full option sentences; descriptions may stay natural for the context:

| Conversation language | Lip-sync path | Audio-only path | Subtitle-only path |

| --------------------- | ------------------------------------ | ------------------------ | ----------------------------- |

| Chinese | 口型同步翻译 | 只翻译声音 | 只翻译字幕 |

| English | Lip-synced translation | Audio-only translation | Subtitle-only translation |

| Spanish | Traducción con sincronización labial | Traducción solo de audio | Traducción solo de subtítulos |

The target translation language does not control this copy; the user's

conversation language does. Never append a second-language gloss such as

(lip-sync) to a localized label.

Do not omit lip-sync when the source has a visible speaker. Do not relabel

audio-only translation as generic "AI voice replacement"; choosing a new

synthetic voice is a separate Voice Skill workflow. If the user already stated

one treatment, skip this question and follow that route directly.

Do not submit a paid video-translation job until changing the spoken audio is

explicitly requested or confirmed.

Workflow

  1. Resolve the source video. It must be an imported project video asset;

use the exact asset id from the attachment, selection, or browse_assets.

Local or external media must be imported first.

  1. Resolve the target language from the live catalog. Call

submit_video_translation with action: "list_languages" and no other

arguments. This only reads the catalog; it requires no project, transcript

review, confirmation, or credits. Then copy the matching returned value

verbatim into targetLanguage, including any dialect, region,

or script qualifier. Do not invent a language name or send an ISO code.

Match the user's requested language and variant against the returned catalog;

confirm the language when the user only implied a market ("海外版"). If a

submission reports an unsupported language, use its suggested candidates or

refresh the catalog with action: "list_languages" instead of retrying

guessed names. The action argument is required on every call.

  1. Pick the treatment:

the speakers' vocal identity, plus synchronized mouth movements. Continue

through the source-transcript review below.

untouched. Use for screen recordings, voice-over footage, or when the user

says the picture must not change. Prefer this for transparent WebM when

preserving the alpha channel matters. **Skip steps 4–6 and keep the existing

direct-submit flow; do not require or include reviewedSourceTranscript.**

  1. Prepare the source transcript for lip-sync only. If word-level

transcription is not complete, call trigger_transcript, wait for it with

track_progress, and retry only when it is ready. Call read_script, then

read the matching library/<filename>.md source transcript. Do not use the

editable timeline.md cut as the translation source. **Do not substitute

inspect_asset transcript ranges for read_script; the range result may be

partial and is not the canonical complete source transcript.**

  1. Render the editable source-text review for lip-sync only. Load the

widget-forms Skill and reuse the same <form-textarea> confirmation pattern

used by the Digital Human Skill. Strip the library's [sN] addresses and

speaker-rendering rows, but keep **exactly one recognized transcript segment

per line**, in source order. Put that complete text in the textarea's

default; use a localized label that asks the user to check and correct the

recognized original text. Do not expose segment ids, word indices, file

syntax, or timestamps.

Hard preflight before emitting the Widget:

defaultValue, value, or placeholder.

not a placeholder or an omitted value. If the transcript text has not been

read successfully, do not render the Widget; read the canonical library

document first.

last non-empty source segments are both present before sending the form.

escaping rule to the complete transcript before placing it in default.

Never put unescaped recognized text inside the tag.

Embedded ChatCut example (localize visible copy):

```text

Please review the recognized source text and correct any mistakes:

<widget>

<form-textarea id="reviewedSourceTranscript" label="Please review and correct the source text" rows="12" required="true" default="<recognized source text; one segment per line>"/>

</widget>

```

Follow widget-forms for the active host rather than emitting raw tags in a

host that does not support the embedded protocol. Do not add a separate

yes/no question or a handwritten submit button. **Stop here and wait. Never

submit a translation in the same turn that first presents the Widget.**

  1. Use the submitted revision exactly. The Widget submission is explicit

confirmation. Read the complete reviewedSourceTranscript textarea answer

from the user's next message and preserve its wording, punctuation, and

order exactly. Preserve the returned line breaks when present, but do

not reject or rewrite normal line-break edits made inside the textarea; the

tool realigns them to the source timing. Do not paraphrase the text and do

not ask the user to confirm the same text again. If the user replies outside

the Widget with further corrections, reopen the same editable Widget with

those corrections applied rather than reverting to a prose transcript.

  1. Duration behavior. By default the output may run slightly longer or

shorter than the source so the translated speech keeps a natural pace. Set

keepDuration: true only when the user needs the exact original length

(for example to swap it into an existing timeline slot), and mention that

pacing may sound faster.

  1. Submit with submit_video_translation using action: "submit". For lip-sync, set

reviewedSourceTranscript as the exact complete textarea value returned in

step 6; the tool combines those reviewed lines with the original segment

timestamps and creates source subtitles. For audioOnly: true, omit

reviewedSourceTranscript and preserve the pre-existing direct-submit path.

The tool shows the user a paid confirmation before the job starts; do not

resubmit after a denial.

  1. Track with track_progress(action="wait") until the translated video

asset lands in the library, then hand it back (place on the timeline only

when asked).

Constraints and cost

localize only a section, trim/export that section into its own asset first,

then translate the shorter asset.

output video.

This is best-effort for lip-sync because the picture is re-rendered. A

transparent WebM may become opaque, and 4K or >30 fps media may be

re-encoded. The tool confirmation calls these cases out; never promise that

lip-sync will preserve the container, alpha channel, HDR, codec, bitrate, or

frame rate exactly.

facial re-rendering and is the safest treatment for transparent sources, but

do not promise byte-for-byte container preservation. After completion ChatCut

compares the source and output resolution, frame rate, and alpha pixel format

when media probing is available, and reports detected changes in generation

status.

the submitted text can reuse the original word-level timing. Supply the complete

Widget value directly to the tool; do not merge, split, reorder, or silently

normalize it in the conversation layer. Do not invoke this review for

audioOnly: true.

translation of the recorded voice, so confirm the user has rights to the

footage and its speakers when the material is clearly someone else's.

AI video translation.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.