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

机器翻译

复制全文
下载 pdf
视频工具
VideoEditorListSubtitles - 获取字幕列表
复制全文
下载 pdf
VideoEditorListSubtitles - 获取字幕列表

获取指定翻译子任务(单集任务)的字幕列表

请求参数

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

参数
类型
是否必填
示例值
描述
Action
String

VideoEditorListSubtitles

要执行的操作,取值:VideoEditorListSubtitles。

Version
String

2021-05-21

API的版本,取值:2021-05-21。

subtaskId
String

"675969"

子任务id

返回参数

下表仅列出本接口特有的返回参数。更多信息请参见返回结构

参数
类型
示例值
描述
data
Array of Object

[
{
"startTime": "12540",
"endTime": "13340",
"createTime": "1766723905",
"updateTime": "1774962160",
"speakerId": "32421401090",
"aiVoiceId": "32421401858",
"segmentId": "5c156e99-1f4d",
"operator": "pipeline",
"source": {
"text": "刘少"
},
"target": {
"text": "منصور الصغير"
},
"sourceStyle": "",
"targetStyle": "",
"effectType": 0,
"voiceTosUrl": "https://sf1-cdn-tos.huoshanstatic.com/obj/ies.fe.starling/seg_32403403778_490837103_2_1774962159_dba057d0.mp3?duration=3892&end_time=978&index=0&match_score=94&speed_factor=1.14&start_time=0&total=3",
}

]

字幕列表

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

Server Error

服务内部错误

最近更新时间:2026.04.10 16:51:58
这个页面对您有帮助吗?
有用
有用
无用
无用