video-translate
できること
このスキルは、動画をHeyGenに送り、新しい言語に翻訳され吹き替えられた版を作成します。同じ動画を他の言語を話す視聴者に届けたい人向けです。
使う場面
- ✓動画をスペイン語などの言語に吹き替えたいとき。
- ✓音声だけを翻訳し、口の動きを合わせる必要がないとき。
- ✓既にある動画について、複数の言語版が欲しいとき。
スキルのリンク
https://github.com/calesthio/OpenMontage/blob/main/.agents/skills/video-translate/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私の製品動画をスペイン語に翻訳し、口の動きを言葉に合わせたままにしてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
動画のリンクと翻訳先の言語を渡すと、エージェントは翻訳ジョブを開始し、完了を待ってから、翻訳された動画へのリンクを返します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Video Translation (HeyGen)
Translate and dub existing videos into multiple languages, preserving lip-sync and natural speech patterns. Provide a video URL or HeyGen video ID — no need to create the video on HeyGen first.
Authentication
All requests require the X-Api-Key header. Set the HEYGEN_API_KEY environment variable.
curl -X POST "https://api.heygen.com/v2/video_translate" \
-H "X-Api-Key: $HEYGEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"video_url": "https://example.com/video.mp4", "output_language": "es-ES"}'
Default Workflow
- Provide a video URL or HeyGen video ID
- Call
POST /v2/video_translatewith the target language - Poll
GET /v2/video_translate/{translate_id}until status iscompleted - Download the translated video from the returned URL
Creating a Translation Job
Request Fields
| Field | Type | Req | Description |
|---|---|---|---|
video_url |
string | Y* | URL of video to translate (*or video_id) |
video_id |
string | Y* | HeyGen video ID (*or video_url) |
output_language |
string | Y | Target language code (e.g., "es-ES") |
title |
string | Name for the translated video | |
translate_audio_only |
boolean | Audio only, no lip-sync (faster) | |
speaker_num |
number | Number of speakers in video | |
callback_id |
string | Custom ID for webhook tracking | |
callback_url |
string | URL for completion notification |
Either video_url or video_id must be provided.
curl
curl -X POST "https://api.heygen.com/v2/video_translate" \
-H "X-Api-Key: $HEYGEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"video_url": "https://example.com/original-video.mp4",
"output_language": "es-ES",
"title": "Spanish Version"
}'
TypeScript
interface VideoTranslateRequest {
video_url?: string;
video_id?: string;
output_language: string;
title?: string;
translate_audio_only?: boolean;
speaker_num?: number;
callback_id?: string;
callback_url?: string;
}
interface VideoTranslateResponse {
error: null | string;
data: {
video_translate_id: string;
};
}
async function translateVideo(config: VideoTranslateRequest): Promise<string> {
const response = await fetch("https://api.heygen.com/v2/video_translate", {
method: "POST",
headers: {
"X-Api-Key": process.env.HEYGEN_API_KEY!,
"Content-Type": "application/json",
},
body: JSON.stringify(config),
});
const json: VideoTranslateResponse = await response.json();
if (json.error) {
throw new Error(json.error);
}
return json.data.video_translate_id;
}
Python
import requests
import os
def translate_video(config: dict) -> str:
response = requests.post(
"https://api.heygen.com/v2/video_translate",
headers={
"X-Api-Key": os.environ["HEYGEN_API_KEY"],
"Content-Type": "application/json"
},
json=config
)
data = response.json()
if data.get("error"):
raise Exception(data["error"])
return data["data"]["video_translate_id"]
Supported Languages
| Language | Code | Notes |
|---|---|---|
| English (US) | en-US | Default source |
| Spanish (Spain) | es-ES | European Spanish |
| Spanish (Mexico) | es-MX | Latin American |
| French | fr-FR | Standard French |
| German | de-DE | Standard German |
| Italian | it-IT | Standard Italian |
| Portuguese (Brazil) | pt-BR | Brazilian Portuguese |
| Japanese | ja-JP | Standard Japanese |
| Korean | ko-KR | Standard Korean |
| Chinese (Mandarin) | zh-CN | Simplified Chinese |
| Hindi | hi-IN | Standard Hindi |
| Arabic | ar-SA | Modern Standard Arabic |
Translation Options
Basic Translation (with lip-sync)
const config = {
video_url: "https://example.com/original.mp4",
output_language: "es-ES",
title: "Spanish Translation",
};
Audio-Only Translation (faster, no lip-sync)
const config = {
video_url: "https://example.com/original.mp4",
output_language: "es-ES",
translate_audio_only: true,
};
Multi-Speaker Videos
const config = {
video_url: "https://example.com/interview.mp4",
output_language: "fr-FR",
speaker_num: 2,
};
Advanced Options (v4 API)
For more control over translation:
interface VideoTranslateV4Request {
input_video_id?: string;
google_url?: stri
よくある質問
動画は先にHeyGenにアップロードされている必要がありますか?
いいえ。このスキルでは、動画のURLまたは既存のHeyGen動画IDを渡せると説明しています。
声だけを変えたい場合はどうしますか?
このスキルには、口の動きを合わせない音声のみのオプションがあり、より速く動作します。
何を設定する必要がありますか?
HEYGEN_API_KEY設定に保存されたHeyGenのAPIキーです。
詳細
作者による元の説明
Translate and dub existing videos into multiple languages using HeyGen. Use when: (1) Translating a video into another language, (2) Dubbing video content with lip-sync, (3) Creating multi-language versions of existing videos, (4) Audio-only translation without lip-sync, (5) Working with HeyGen's /v2/video_translate endpoint.
repo: calesthio/OpenMontage
人気
- GitHubのスター
- 75k
- ランキング
- #2699
- ライセンス
- AGPL-3.0
- 更新日
- 2026/10/28
コメント
- …
このリポジトリの他のスキル
3d-asset-generation
75kシーンに使う3Dオブジェクトの作り方を、カタログ、テキストや画像から3Dへのツール、最終的な組み立てのための Blender の中から選ぶよう、エージェントを支援します。
acestep
75k動画用の背景音楽、曲、ジングル、ステムを、オープンな ACE-Step の音楽生成ツールを使って作るよう、エージェントを支援します。
agents
75kElevenLabs を使って、顧客対応のボットやインタラクティブな音声キャラクターなど、音声のAIアシスタントを作ります。
ai-video-gen
75kテキストの説明や参考画像から、いくつかの動画生成サービスの中から選んで、AI の動画クリップを生成するよう、エージェントを支援します。