奇妙元--开放接口样例
  1. 视频翻译2期
奇妙元--开放接口样例
  • 视频合成
    • 视频合成--样例一
      POST
    • 视频合成--样例一 加字幕
      POST
    • 视频合成--样例一 字幕优化
      POST
    • 视频合成--样例二--背景图
      POST
    • 视频合成--样例三--复杂视频
      POST
    • 视频合成--样例四--音频
      POST
    • 视频合成--样例五--头像
      POST
    • 视频合成--结果查询
      GET
  • 文档转图片
    • ppt 转图片
      POST
    • pdf 转图片
      POST
    • 文档转图片结果
      GET
  • 公用接口
    • 数字人查询
      GET
    • 字体查询
      GET
  • 图片数字人
    • 图片数字人
      POST
    • 图片数字人--字幕
      POST
    • 图片数字人--音频
      POST
    • 图片数字人结果
      GET
  • webm合成
    • webm合成-音频
      POST
    • webm合成-文本
      POST
    • webm合成结果
      GET
  • 权限校验(临时)
    • 临时权限校验接口
  • 视频极速克隆(视频配音)
    • 视频配音-文本驱动
    • 视频配音-文本驱动+背景音
    • 视频配音-文本驱动+字幕
    • 视频配音-文本驱动+字幕+背景音
    • 视频配音-音频驱动
    • 视频配音-音频驱动+背景音
    • 视频配音-音频驱动+字幕
    • 视频配音-视频原声+字幕+背景音
    • 获取视频配音任务详情(结果查询)
  • 图片数字人合成webm
    • 图片数字人合成webm-音频驱动
    • 图片数字人合成webm-文本驱动
    • 结果查询
  • 数字人在线克隆
    • 数字人在线克隆任务提交
    • 数字人重命名
    • 克隆任务轮询接口
  • 视频翻译
    • 创建视频翻译任务
    • 视频翻译任务轮询结果
    • 视频翻译接口支持的语言列表接口
  • 生动数字人
    • 生动数字人结果轮询接口
    • 生动数字人任务提交
  • 手持商品数字人
    • 创建任务-tts
    • 创建任务-音频
    • 结果轮询
    • 模版列表查询
  • 视频翻译2期
    • 创建文本校对任务
      POST
    • 支持的语言列表
      GET
    • 创建视频翻译任务
      POST
    • 轮询结果
      POST
    • 修改文本并提交视频翻译任务
      POST
  1. 视频翻译2期

修改文本并提交视频翻译任务

测试中
POST
/videoTranslateV2/start/translate

请求参数

Body 参数application/json
taskId
integer <int64>
任务id
可选
srtFormatArray
array [object {13}] 
字幕格式信息
可选
fontsize
integer 
字体大小
可选
bold
integer 
是否加粗
可选
0/1,默认0
italic
integer 
是否斜体
可选
0/1,默认0
underline
integer 
是否加下划线
可选
0/1,默认0
outlineColour
string 
轮廓颜色
可选
outline
integer 
当BorderStyle为1时, 该值定义轮廓宽度
可选
整型,取值范围为0, 1, 2, 3, 4
(单位为像素)
marginV
integer 
字幕可出现区域与下边缘的距离
可选
0(单位为像素)
fontname
string 
字体名称
可选
shadow
integer 
当BorderStyle为1时, 该值定义阴影深度
可选
整型,取值范围为0, 1, 2, 3, 4
(单位为像素)
marginL
integer 
字幕可出现区域与左边缘的距离
可选
0(单位为像素)
marginR
integer 
字幕可出现区域与右边缘的距离
可选
0(单位为像素)
borderStyle
integer 
边框样式
可选
1=边框+阴影, 3=纯色背景. 当值为3时,将outline=1 ,文字下方为轮廓颜色的背景, 最下方为阴影颜色背景
primaryColour
string 
字体主要颜色
可选
textList
array [object {3}] 
字幕文本信息
可选
id
integer <int64>
字幕id
可选
字幕id
originalText
string 
原文字幕
可选
targetText
string 
译文字幕
可选
示例
{
    "taskId": 1925063703267659777,
    "srtFormatArray": [
        {
            "fontsize": 30,
            "bold": 1,
            "italic": 1,
            "underline": 1,
            "outlineColour": "&HAA000000",
            "outline": 2,
            "marginV": 57,
            "shadow": 0,
            "marginL": 24,
            "marginR": 24,
            "borderStyle": 3,
            "primaryColour": "#0A0A0A"
        },
        {
            "fontsize": 15,
            "bold": 1,
            "italic": 1,
            "underline": 1,
            "outlineColour": "&HAA000000",
            "outline": 2,
            "marginV": 5,
            "shadow": 0,
            "marginL": 24,
            "marginR": 24,
            "borderStyle": 3,
            "primaryColour": "#00F5FF"
        }
    ],
    "textList": [
        {
            "id": 1925064134442110978,
            "originalText": "不止所措。那么公安什么时候来放这个人,咱们家属应该去做些什么呢?那么今天我就来给大家讲解一下,检察院如果一旦没批捕,会出具一份文书,叫做不予批准逮捕书。再把这份文书呢递交给公安。公安并不是说拿到这份文书,就直接能去看守所去放人了。公安呢会制作自己的释放决定书以及取保候审的决定书。那么他的。",
            "targetText": "don't know what to do. So when will the police come to release this person, and what should the family do? Today, I will explain this. If the prosecutor’s office does not approve the arrest, they will issue a document called a \"Decision Not to Approve Arrest.\" This document will then be handed over to the police. However, the police cannot release the person from the detention center immediately upon receiving this document. The police will prepare their own release decision document as well as the decision document for bail pending trial."
        }
    ]
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/videoTranslateV2/start/translate' \
--header 'Content-Type: application/json' \
--data-raw '{
    "taskId": 1925063703267659777,
    "srtFormatArray": [
        {
            "fontsize": 30,
            "bold": 1,
            "italic": 1,
            "underline": 1,
            "outlineColour": "&HAA000000",
            "outline": 2,
            "marginV": 57,
            "shadow": 0,
            "marginL": 24,
            "marginR": 24,
            "borderStyle": 3,
            "primaryColour": "#0A0A0A"
        },
        {
            "fontsize": 15,
            "bold": 1,
            "italic": 1,
            "underline": 1,
            "outlineColour": "&HAA000000",
            "outline": 2,
            "marginV": 5,
            "shadow": 0,
            "marginL": 24,
            "marginR": 24,
            "borderStyle": 3,
            "primaryColour": "#00F5FF"
        }
    ],
    "textList": [
        {
            "id": 1925064134442110978,
            "originalText": "不止所措。那么公安什么时候来放这个人,咱们家属应该去做些什么呢?那么今天我就来给大家讲解一下,检察院如果一旦没批捕,会出具一份文书,叫做不予批准逮捕书。再把这份文书呢递交给公安。公安并不是说拿到这份文书,就直接能去看守所去放人了。公安呢会制作自己的释放决定书以及取保候审的决定书。那么他的。",
            "targetText": "don'\''t know what to do. So when will the police come to release this person, and what should the family do? Today, I will explain this. If the prosecutor’s office does not approve the arrest, they will issue a document called a \"Decision Not to Approve Arrest.\" This document will then be handed over to the police. However, the police cannot release the person from the detention center immediately upon receiving this document. The police will prepare their own release decision document as well as the decision document for bail pending trial."
        }
    ]
}'

返回响应

🟢200成功
application/json
Body
code
integer 
状态码
可选
message
string 
返回消息
可选
data
integer <int64>
返回数据
可选
示例
{
    "code": 200,
    "message": "操作成功",
    "data": "1924705437909475329",
    "ok": true
}
修改于 2025-05-27 03:00:57
上一页
轮询结果
Built with