获取视频翻译任务的产物信息,包括源视频、纯净版视频、成品视频、字幕、音频等
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
参数 | 类型 | 是否必填 | 示例值 | 描述 |
|---|---|---|---|---|
Action | String | 是 | VideoProjectGetTaskProduct | 要执行的操作,取值:VideoProjectGetTaskProduct。 |
Version | String | 是 | 2021-05-21 | API的版本,取值:2021-05-21。 |
projectId | String | 是 | 12345 | 项目ID |
subtaskIds | Array of String | 否 | ['2333323'] | 子任务id集合 |
taskId | String | 是 | 67890 | 任务ID |
types | Array of Integer | 否 | [4,2] | 需要获取的产物类型: 1-原文字幕, 2-译文字幕, 3-纯净版视频, 4-成品视频, 5-成品音频, 6-源视频 |
subtitleExportConfig | Object | 否 | {"subtitleFileType":1} | 字幕导出配置,仅导出字幕类型资源时生效,默认是ass |
下表仅列出本接口特有的返回参数。更多信息请参见返回结构。
参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
data | Object | { | 返回数据 |
POST /?Action=VideoProjectGetTaskProduct&Version=2021-05-21 HTTP/1.1 Host: open.volcengineapi.com Content-Type: application/json; charset=UTF-8 X-Date: 20260323T091125Z X-Content-Sha256: 287e874e******d653b44d21e Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20260323/cn-beijing/i18n_openapi/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f {"projectId":"12345","taskId":"67890","types":[4,2],"subtitleExportConfig":{"subtitleFileType":1}}
{ "ResponseMetadata": { "RequestId": "2026032317112912311503601596D968", "Action": "VideoProjectGetTaskProduct", "Version": "2021-05-21", "Service": "i18n_openapi", "Region": "cn-beijing" }, "Result": { "data": { "subtaskProducts": [ { "subtaskId": "100001", "targetLang": "en", "originVideo": { "vid": "v0xxxxxxxx", "name": "origin.mp4", "url": "https://example.com/origin.mp4" }, "aiRemoveVideo": { "vid": "v0yyyyyyyy", "name": "ai_remove.mp4", "url": "https://example.com/ai_remove.mp4" }, "finishedVideo": { "vid": "v0zzzzzzzz", "name": "finished.mp4", "url": "https://example.com/finished.mp4" }, "sourceSubtitle": { "name": "source.srt", "url": "https://example.com/source.srt" }, "targetSubtitle": { "name": "target.srt", "url": "https://example.com/target.srt" }, "finishedAudio": { "name": "finished.mp3", "url": "https://example.com/finished.mp3" } } ], "baseResp": { "statusMessage": "success", "statusCode": 0 } } } }
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
状态码 | 错误码 | 说明 |
|---|---|---|
400 | 1001 | 服务内部错误 |