alicloud-media-video-translation

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
Category: service
Category: service

IMS 视频翻译(OpenAPI)

IMS Video Translation (OpenAPI)

通过 OpenAPI 提交视频翻译任务并轮询结果,覆盖字幕级/语音级/面容级。
Submit video translation jobs and poll for results via OpenAPI, covering subtitle-level, voice-level, and face-level translation.

Prerequisites

Prerequisites

  • 准备 OSS 输入/输出地址(建议与 API 调用 region 一致)。
  • 配置 AK:
    ALICLOUD_ACCESS_KEY_ID
    /
    ALICLOUD_ACCESS_KEY_SECRET
    /
    ALICLOUD_REGION_ID
    ALICLOUD_REGION_ID
    可作为默认 Region;未设置时可选择最合理 Region,无法判断则询问用户)。
  • Prepare OSS input/output addresses (it is recommended to use the same region as the API call).
  • Configure AK:
    ALICLOUD_ACCESS_KEY_ID
    /
    ALICLOUD_ACCESS_KEY_SECRET
    /
    ALICLOUD_REGION_ID
    (
    ALICLOUD_REGION_ID
    can be used as the default Region; if not set, select the most appropriate Region, or ask the user if it cannot be determined).

Workflow

Workflow

  1. 准备源文件与输出 OSS 位置。
  2. 调用
    SubmitVideoTranslationJob
    提交任务。
  3. 使用
    GetSmartHandleJob
    轮询状态与结果。
  4. 需要时使用
    ListSmartJobs
    /
    DeleteSmartJob
    管理任务。
  1. Prepare the source file and output OSS location.
  2. Call
    SubmitVideoTranslationJob
    to submit the job.
  3. Use
    GetSmartHandleJob
    to poll for status and results.
  4. Use
    ListSmartJobs
    /
    DeleteSmartJob
    to manage jobs when needed.

Level 选择与参数

Level Selection and Parameters

  • 字幕级 / 语音级 / 面容级的选择规则与字段见
    references/fields.md
  • 字段示例(Input/Output/EditingConfig)也在
    references/fields.md
  • The selection rules and fields for subtitle-level / voice-level / face-level translation can be found in
    references/fields.md
    .
  • Field examples (Input/Output/EditingConfig) are also in
    references/fields.md
    .

Notes

Notes

  • 如需二次修正,请在首个任务设置
    SupportEditing=true
    ,后续用
    OriginalJobId
    关联。
  • 输入与输出的 OSS region 必须与 OpenAPI 调用 region 一致。
  • 大任务需更长轮询间隔,避免频繁请求。
  • For secondary revision, set
    SupportEditing=true
    in the first job, and associate subsequent jobs with
    OriginalJobId
    .
  • The OSS region of input and output must be consistent with the OpenAPI call region.
  • Longer polling intervals are required for large jobs to avoid frequent requests.

References

References

  • Source list:
    references/sources.md
  • Source list:
    references/sources.md