You need to enable JavaScript to run this app.
文档中心
机器翻译

机器翻译

复制全文
下载 pdf
任务管理
VideoProjectGetTaskProduct - 获取任务产物
复制全文
下载 pdf
VideoProjectGetTaskProduct - 获取任务产物

获取视频翻译任务的产物信息,包括源视频、纯净版视频、成品视频、字幕、音频等

请求参数

下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。

参数
类型
是否必填
示例值
描述
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

{
"subtaskProducts": [
{
"subtaskId": "349428523778",
"targetLang": "ja",
"sourceSubtitle": {
"name": "的说法_原文字幕_zh_1_e3b3d095fcb045c4bcfc973df578b4ee.srt",
"url": "https://sf1-cdn-tos.huoshanstatic.com/obj/ies.fe.starling/的说法_原文字幕_zh_1_e3b3d095fcb045c4bcfc973df578b4ee.srt"
},
"targetSubtitle": {
"name": "的说法_译文字幕_ja_1_b63957b4e59a4e94a74977d4d475c6af.srt",
"url": "https://sf1-cdn-tos.huoshanstatic.com/obj/ies.fe.starling/的说法_译文字幕_ja_1_b63957b4e59a4e94a74977d4d475c6af.srt"
}
},
{
"subtaskId": "349428524034",
"targetLang": "ja",
"sourceSubtitle": {
"name": "的说法_原文字幕_zh_2_c984700fb69744a082da22fd01bd406c.srt",
"url": "https://sf1-cdn-tos.huoshanstatic.com/obj/ies.fe.starling/的说法_原文字幕_zh_2_c984700fb69744a082da22fd01bd406c.srt"
},
"targetSubtitle": {
"name": "的说法_译文字幕_ja_2_889d2f18024e4188a40b3ab6d1d97745.srt",
"url": "https://sf1-cdn-tos.huoshanstatic.com/obj/ies.fe.starling/的说法_译文字幕_ja_2_889d2f18024e4188a40b3ab6d1d97745.srt"
}
},
{
"subtaskId": "349428524546",
"targetLang": "ja",
"sourceSubtitle": {
"name": "的说法_原文字幕_zh_3_5e2b0bbb4fce4e0c959360d54d5c7540.srt",
"url": "https://sf1-cdn-tos.huoshanstatic.com/obj/ies.fe.starling/的说法_原文字幕_zh_3_5e2b0bbb4fce4e0c959360d54d5c7540.srt"
},
"targetSubtitle": {
"name": "的说法_译文字幕_ja_3_5e85358ae0bf422a84420a17f398b0c7.srt",
"url": "https://sf1-cdn-tos.huoshanstatic.com/obj/ies.fe.starling/的说法_译文字幕_ja_3_5e85358ae0bf422a84420a17f398b0c7.srt"
}
}
],}

返回数据

请求示例

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

Server Error

服务内部错误

最近更新时间:2026.07.24 17:41:25
这个页面对您有帮助吗?
有用
有用
无用
无用