video-translate
Translate and dub videos into multiple languages with automatic lip-sync using HeyGen.
Works with
0
total installs
0
this week
103
GitHub stars
0
upvotes
Install Skill
Run in your terminal
0
installs
0
this week
103
stars
What it does
Supports 12+ languages including Spanish, French, German, Japanese, Chinese, and Arabic with automatic voice cloning to match original speaker characteristics
Offers two translation modes: full lip-sync dubbing or faster audio-only translation without video adjustments
Handles multi-speaker videos, custom vocabulary preservation, and optional background music removal or speech enhancement
Includ
Installation Guide
How to use video-translate on Cursor
AI-first code editor with Composer
Prerequisites
Before installing skills in Cursor, ensure your development environment meets these requirements:
- ›Cursor installed and configured on your machine
- ›Node.js 16+ with npm — verify with
node --version - ›Active project directory where you want to add
video-translate
Run the install command
Execute the skills CLI command in your project's root directory to begin installation:
Fetches video-translate from heygen-com/skills and configures it for Cursor.
Select Cursor when prompted
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Verify installation
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate video-translate. Access via /video-translate in your agent's command palette.
Security Notice
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Documentation
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?: string;
output_languages: string[]; // Multiple languages in one call
name: string;
srt_key?: string; // Custom SRT subtitles
instruction?: string;
vocabulary?: string[]; // Terms to preserve as-is
brand_voice_id?: string;
speaker_num?: number;
keep_the_same_format?: boolean;
input_language?: string;
enable_video_stretching?: boolean;
disable_music_track?: boolean;
enable_speech_enhancement?: boolean;
srt_role?: "input" | "output";
translate_audio_only?: boolean;
}
Multiple Output Languages
const config = {
input_video_id: "original_video_id",
output_languages: ["es-ES", "fr-FR", "de-DE"],
name: "Multi-language translations",
};
Custom Vocabulary (preserve specific terms)
const config = {
video_url: "https://example.com/product-demo.mp4",
output_language: "ja-JP"List & Monetize Your Skill
Submit your Claude Code skill and start earning
Get started →Use Cases
Task Automation & Efficiency
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Knowledge Enhancement
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Quality Improvement
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
Implementation Guide
Prerequisites
- ›Claude Desktop or compatible AI client with skill support
- ›Clear understanding of task or problem to solve
- ›Willingness to iterate and refine outputs
Time Estimate
15-45 minutes depending on use case complexity
Steps
- 1Install skill using provided installation command
- 2Test with simple use case relevant to your work
- 3Evaluate output quality and relevance
- 4Iterate on prompts to improve results
- 5Integrate into regular workflow if valuable
Common Pitfalls
- ⚠Expecting perfect results without iteration
- ⚠Not providing enough context in prompts
- ⚠Using skill for tasks outside its intended scope
- ⚠Accepting outputs without review and validation
Best Practices
✓ Do
- +Start with clear, specific prompts
- +Provide relevant context and constraints
- +Review and refine all outputs before using
- +Iterate to improve output quality
- +Document successful prompt patterns
✗ Don't
- −Don't use without understanding skill limitations
- −Don't skip validation of outputs
- −Don't share sensitive information in prompts
- −Don't expect skill to replace human judgment
💡 Pro Tips
- ★Be specific about desired format and style
- ★Ask for multiple options to choose from
- ★Request explanations to understand reasoning
- ★Combine AI efficiency with human expertise
When to Use This
✓ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
Learning Path
- 1Familiarize yourself with skill capabilities and limitations
- 2Start with low-risk, non-critical tasks
- 3Progress to more complex and valuable use cases
- 4Build expertise through regular use and experimentation
Related Skills
video-understand
5heygen-com/skills
remotion-video-production
7supercent-io/skills-template
video-editing
7affaan-m/everything-claude-code
remotion-best-practices
6remotion-dev/skills
video-downloader
6davila7/claude-code-templates
video-analyzer
6zrong/skills
Reviews
- SShikha Mishra★★★★★Dec 4, 2024
Keeps context tight: video-translate is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ZZara Robinson★★★★★Dec 4, 2024
Registry listing for video-translate matched our evaluation — installs cleanly and behaves as described in the markdown.
- YYash Thakker★★★★★Nov 23, 2024
Registry listing for video-translate matched our evaluation — installs cleanly and behaves as described in the markdown.
- LLayla Martin★★★★★Nov 23, 2024
Keeps context tight: video-translate is the kind of skill you can hand to a new teammate without a long onboarding doc.
- AAnika Sharma★★★★★Nov 11, 2024
We added video-translate from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- SSakshi Patil★★★★★Nov 3, 2024
We added video-translate from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- CChaitanya Patil★★★★★Oct 22, 2024
video-translate fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- DDhruvi Jain★★★★★Oct 14, 2024
video-translate reduced setup friction for our internal harness; good balance of opinion and flexibility.
- TTariq Sharma★★★★★Oct 14, 2024
video-translate is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- AAnaya Kim★★★★★Oct 2, 2024
video-translate fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
showing 1-10 of 40
Discussion
Comments — not star reviews- No comments yet — start the thread.