Chuyển đến nội dung
Skillpedia
Âm thanh và giọng nói75k · #2699

video-translate

Skill này làm gì

Skill này gửi một video đến HeyGen để tạo phiên bản dịch và lồng tiếng sang ngôn ngữ mới. Nó dành cho người muốn video của mình đến được với người xem nói ngôn ngữ khác.

Khi nào nên dùng

  • ✓Khi bạn muốn một video được lồng tiếng sang tiếng Tây Ban Nha hoặc ngôn ngữ khác.
  • ✓Khi bạn chỉ cần dịch âm thanh và không cần đồng bộ môi.
  • ✓Khi bạn có nhiều phiên bản ngôn ngữ của một video đã có.

Liên kết skill

https://github.com/calesthio/OpenMontage/blob/main/.agents/skills/video-translate/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/calesthio/OpenMontage/blob/main/.agents/skills/video-translate/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Dịch video sản phẩm của tôi sang tiếng Tây Ban Nha và giữ môi khớp với lời.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Bạn đưa liên kết video và ngôn ngữ đích. Agent bắt đầu tác vụ dịch, chờ đến khi xong, rồi đưa bạn liên kết đến video đã dịch.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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

  1. Provide a video URL or HeyGen video ID
  2. Call POST /v2/video_translate with the target language
  3. Poll GET /v2/video_translate/{translate_id} until status is completed
  4. 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
Câu hỏi thường gặp

Video có cần được đưa lên HeyGen trước không?

Không. Skill nói bạn có thể cung cấp URL video hoặc ID video HeyGen đã có.

Nếu tôi chỉ muốn đổi giọng thì sao?

Skill liệt kê một tùy chọn chỉ âm thanh bỏ qua đồng bộ môi, chạy nhanh hơn.

Tôi cần thiết lập gì?

Một khóa API HeyGen được lưu trong cài đặt HEYGEN_API_KEY.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
75k
Vị trí xếp hạng
#2699
Giấy phép
AGPL-3.0
Cập nhật
28/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự