alicloud-media-video-translation
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCategory: 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可作为默认 Region;未设置时可选择最合理 Region,无法判断则询问用户)。ALICLOUD_REGION_ID
- 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_IDcan be used as the default Region; if not set, select the most appropriate Region, or ask the user if it cannot be determined).ALICLOUD_REGION_ID
Workflow
Workflow
- 准备源文件与输出 OSS 位置。
- 调用 提交任务。
SubmitVideoTranslationJob - 使用 轮询状态与结果。
GetSmartHandleJob - 需要时使用 /
ListSmartJobs管理任务。DeleteSmartJob
- Prepare the source file and output OSS location.
- Call to submit the job.
SubmitVideoTranslationJob - Use to poll for status and results.
GetSmartHandleJob - Use /
ListSmartJobsto manage jobs when needed.DeleteSmartJob
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 in the first job, and associate subsequent jobs with
SupportEditing=true.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