获取指定翻译子任务(单集任务)的字幕列表
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
参数 | 类型 | 是否必填 | 示例值 | 描述 |
|---|---|---|---|---|
Action | String | 是 | VideoEditorListSubtitles | 要执行的操作,取值:VideoEditorListSubtitles。 |
Version | String | 是 | 2021-05-21 | API的版本,取值:2021-05-21。 |
subtaskId | String | 是 | "675969" | 子任务id |
下表仅列出本接口特有的返回参数。更多信息请参见返回结构。
参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
data | Array of Object | [ ] | 字幕列表 |
segmentId | String | seg_1 | 字幕ID,字幕唯一标识 |
startTime | String | 0 | 起始时间(ms) |
endTime | String | 1800 | 结束时间(ms) |
source | Object | 原文内容 | |
text | String | hello | 字幕文本 |
target | Object | 译文内容 | |
text | String | hello | 字幕文本 |
sourceStyle | String | 原文字幕样式 | |
targetStyle | String | 译文字幕样式 | |
voiceTosUrl | String | 字幕配音音频tos地址 | |
speakerId | String | 1001 | 角色ID,字幕对应配音的角色ID |
aiVoiceId | String | 2001 | 音色ID,字幕对应配音的音色ID |
operator | String | demo_user | 操作人。 当为"pipeline"时为系统操作 |
effectType | Integer | 0 | 字幕类型 |
updateTime | String | 1710000000000 | 更新时间 |
createTime | String | 1710000000000 | 创建时间 |
GET /?Action=VideoEditorListSubtitles&Version=2021-05-21&subTaskId=15557560 HOST:open.volcengineapi.com ServiceName:i18n_openapi
{ "data": [ { "segmentId": "seg_1", "operator": "demo_user", "startTime": "0", "endTime": 1800, "source": { "text": "hello", "style": "" }, "target": { "text": "你好", "style": "" }, "createTime": "1710000000000", "updateTime": "1710000000000", "confirmTime": "1710000000000", "sourceStyle": "", "targetStyle": "", "effectType": 0, "sourceLqaData": "", "targetLqaData": "", "voiceTosUrl": "", "speakerId": "1001", "aiVoiceId": "2001", "relatedSegmentId": "seg_0", "extra": "{}" } ] }
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
状态码 | 错误码 | 说明 |
|---|---|---|
400 | 1001 | 服务内部错误 |