为子任务添加配音角色
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
参数 | 类型 | 是否必填 | 示例值 | 描述 |
|---|---|---|---|---|
Action | String | 是 | VideoEditorAddSpeaker | 要执行的操作,取值:VideoEditorAddSpeaker。 |
Version | String | 是 | 2021-05-21 | API的版本,取值:2021-05-21。 |
subtaskId | String | 是 | 88087192834 | 子任务ID |
speakerName | String | 是 | 角色A | 角色名称 |
type | Integer | 是 | 1 | 角色类型,1本集角色,2本剧角色 |
下表仅列出本接口特有的返回参数。更多信息请参见返回结构。
参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
data | Object | { | 添加说话人结果 |
POST /?Action=VideoEditorAddSpeaker&Version=2021-05-21 HTTP/1.1 Host: openapi.volcengineapi.com Content-Type: application/json; charset=UTF-8 X-Date: 20260417T080630Z X-Content-Sha256: 287e874e******d653b44d21e Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20260417/cn-beijing/i18n_openapi/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f { "subtaskId": "ll8NT", "speakerName": "角色A", "type": 1 }
{ "ResponseMetadata": { "RequestId": "20260417160639026188056135B51488", "Action": "VideoEditorAddSpeaker", "Version": "2021-05-21", "Service": "i18n_openapi", "Region": "cn-beijing" }, "Result": { "data": { "id": "6341606" } } }
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
状态码 | 错误码 | 说明 |
|---|---|---|
400 | 1001 | 服务内部错误 |