小冰-私有化
  1. 视频创建接口
小冰-私有化
  • 交付流程须知
  • 接口调用须知
  • 性能测试报告
  • 部署须知
    • 信创可用环境 - 整合
    • 私有化 步骤一 -- 前期接洽沟通
    • 私有化 步骤二 -- 业务定版封包
    • 私有化 步骤三 -- 售后升级响应
  • 基础服务
    • 概述
    • 常见问题
    • 技术文档
    • 数据准备
      • 模型迁移
      • 范例视频迁移
      • 分配租户形象和声音
      • 租户创建(开箱操作)
  • TTS
    • 概述
    • 技术文档
    • 常见问题
    • 接口返回码枚举
    • 接口
      • 查询声音列表
      • 实时流式音频接口(300字以内)
      • 实时同步音频接口(3000字以内)
      • 异步音频接口(10万字以内)
      • 查询异步tts结果
      • 查询tts权益
  • 视频生成
    • 概述
    • 技术文档
    • 常见问题
    • 接口
      • 接口使用须知
      • 视频创建接口
        • 获取数字员工列表
          GET
        • 获取数字员工详情
          POST
        • 批量获取数字员工详情
          POST
        • 创建透明虚拟人视频
          POST
        • 创建编辑器视频
          POST
        • 获取任务结果
          GET
        • 获取播报相关权益,
          GET
        • 查询声音列表
          GET
      • 声音形象定制
        • 获取训练的权益
        • 提交视频训练任务
        • 获取视频训练任务结果
        • 确认预览结果
        • 提交音频训练任务
        • 获取音频训练任务结果
  • 交互
    • 概述
    • 技术文档
    • 交互SDK
    • 常见问题
    • 接口
      • 生成签名Signature
      • 获取所有虚拟人信息
      • 获取虚拟人资源(带状态)
      • 获取虚拟人可用的声音信息
      • 创建
    • 其他
      • Demo页面验证流程
  • ASR
    • 概述
    • 部署架构图
    • 常见问题
    • 接口
  • 训练平台
    • 概述
    • 技术文档
    • 常见问题
  • 大脑
    • 概述
    • 技术文档
    • 常见问题
    • 接口鉴权
    • 示例代码
    • 对话URL获取
    • 接口
      • 流式对话接口(SSE)
  • ws交互接口
  1. 视频创建接口

创建编辑器视频

POST
/openapi/video/createDirectorVideo

请求参数

Header 参数
subscription-key
string 
可选
示例值:
{{subKey}}
Body 参数application/json
targetFolderName
string 
可选
outputVideoName
string 
可选
outputVideoFormat
string 
可选
outputVideoWidthHeight
string 
可选
creationDetail
object (OpenApiVideoCreationDetail) 
可选
scenes
array[object (OpenApiIceScene) {10}] 
必需
backgroundMusic
object (OpenApiBackgroundMusic) 
可选
costQuota
boolean 
可选
默认值:
true
示例
{
    "targetFolderName": "string",
    "outputVideoName": "string",
    "outputVideoFormat": "string",
    "outputVideoWidthHeight": "string",
    "creationDetail": {
        "scenes": [
            {
                "virtualHuman": {
                    "zIndex": 0,
                    "virtualHumanId": "string",
                    "virtualHumanPostureId": "string",
                    "attributes": {
                        "width": 0,
                        "height": 0,
                        "x": 0,
                        "y": 0,
                        "forceMattingType": 0
                    }
                },
                "tts": {
                    "voiceId": "string",
                    "name": "string",
                    "rate": 1,
                    "pitch": 1,
                    "volume": 50,
                    "voiceStyle": "string",
                    "voiceRole": "string"
                },
                "voiceUrl": "string",
                "voiceTexts": [
                    "string"
                ],
                "displayTexts": [
                    {
                        "content": "string",
                        "attributes": {
                            "effects": [
                                {
                                    "run": true,
                                    "Duration": 0,
                                    "SubType": "string",
                                    "webType": "string"
                                }
                            ],
                            "motionLoopEffect": "string",
                            "ratio": 0,
                            "loopRun": true,
                            "width": 0,
                            "x": 0,
                            "font": 0,
                            "fontSize": 0,
                            "y": 0,
                            "fontColor": "string",
                            "fontColorOpacity": 0,
                            "angle": 0,
                            "type": "string",
                            "bold": true,
                            "italic": true,
                            "underline": true,
                            "spacing": 0,
                            "shadowOn": true,
                            "shadowColor": "string",
                            "shadowOffsetX": 0,
                            "shadowOffsetY": 0,
                            "strokeOn": true,
                            "strokeColor": "string",
                            "strokeWidth": 0,
                            "backgroundOn": true,
                            "backgroundColor": "string",
                            "radius": 0
                        },
                        "playFrom": 0,
                        "playTo": 0,
                        "effectIn": {
                            "enable": true,
                            "type": "string",
                            "start": 0,
                            "duration": 0
                        },
                        "effectOut": {
                            "enable": true,
                            "type": "string",
                            "countDownStart": 0,
                            "duration": 0
                        },
                        "zIndex": 9
                    }
                ],
                "displayImages": [
                    {
                        "mediaUrl": "string",
                        "mediaId": "string",
                        "zIndex": 0,
                        "attributes": {
                            "width": 0,
                            "height": 0,
                            "x": 0,
                            "y": 0,
                            "rotation": 0,
                            "opacity": 0,
                            "draggable": true
                        }
                    }
                ],
                "displayVideos": [
                    {
                        "zIndex": 0,
                        "mediaUrl": "string",
                        "mediaId": "string",
                        "attributes": {
                            "width": 0,
                            "height": 0,
                            "x": 0,
                            "y": 0,
                            "rotation": 0,
                            "opacity": 0,
                            "draggable": true,
                            "loop": true,
                            "durationMilliseconds": 0,
                            "volume": 0
                        }
                    }
                ],
                "backgroundMusic": {
                    "mediaId": "string",
                    "mediaUrl": "string",
                    "volume": 0,
                    "speed": 0,
                    "loop": true
                },
                "backgroundImage": {
                    "mediaUrl": "string",
                    "mediaId": "string"
                },
                "caption": {
                    "topRight": true,
                    "topLeft": true,
                    "topCenter": true,
                    "zIndex": 0,
                    "attributes": {
                        "effects": [
                            {
                                "run": true,
                                "Duration": 0,
                                "SubType": "string",
                                "webType": "string"
                            }
                        ],
                        "motionLoopEffect": "string",
                        "ratio": 0,
                        "loopRun": true,
                        "width": 0,
                        "x": 0,
                        "font": 0,
                        "fontSize": 0,
                        "y": 0,
                        "fontColor": "string",
                        "fontColorOpacity": 0,
                        "angle": 0,
                        "type": "string",
                        "bold": true,
                        "italic": true,
                        "underline": true,
                        "spacing": 0,
                        "shadowOn": true,
                        "shadowColor": "string",
                        "shadowOffsetX": 0,
                        "shadowOffsetY": 0,
                        "strokeOn": true,
                        "strokeColor": "string",
                        "strokeWidth": 0,
                        "backgroundOn": true,
                        "backgroundColor": "string",
                        "radius": 0
                    }
                }
            }
        ],
        "backgroundMusic": {
            "mediaId": "string",
            "mediaUrl": "string",
            "volume": 0,
            "speed": 0,
            "loop": true
        }
    },
    "costQuota": true
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/openapi/video/createDirectorVideo' \
--header 'subscription-key: {{subKey}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "targetFolderName": "string",
    "outputVideoName": "string",
    "outputVideoFormat": "string",
    "outputVideoWidthHeight": "string",
    "creationDetail": {
        "scenes": [
            {
                "virtualHuman": {
                    "zIndex": 0,
                    "virtualHumanId": "string",
                    "virtualHumanPostureId": "string",
                    "attributes": {
                        "width": 0,
                        "height": 0,
                        "x": 0,
                        "y": 0,
                        "forceMattingType": 0
                    }
                },
                "tts": {
                    "voiceId": "string",
                    "name": "string",
                    "rate": 1,
                    "pitch": 1,
                    "volume": 50,
                    "voiceStyle": "string",
                    "voiceRole": "string"
                },
                "voiceUrl": "string",
                "voiceTexts": [
                    "string"
                ],
                "displayTexts": [
                    {
                        "content": "string",
                        "attributes": {
                            "effects": [
                                {
                                    "run": true,
                                    "Duration": 0,
                                    "SubType": "string",
                                    "webType": "string"
                                }
                            ],
                            "motionLoopEffect": "string",
                            "ratio": 0,
                            "loopRun": true,
                            "width": 0,
                            "x": 0,
                            "font": 0,
                            "fontSize": 0,
                            "y": 0,
                            "fontColor": "string",
                            "fontColorOpacity": 0,
                            "angle": 0,
                            "type": "string",
                            "bold": true,
                            "italic": true,
                            "underline": true,
                            "spacing": 0,
                            "shadowOn": true,
                            "shadowColor": "string",
                            "shadowOffsetX": 0,
                            "shadowOffsetY": 0,
                            "strokeOn": true,
                            "strokeColor": "string",
                            "strokeWidth": 0,
                            "backgroundOn": true,
                            "backgroundColor": "string",
                            "radius": 0
                        },
                        "playFrom": 0,
                        "playTo": 0,
                        "effectIn": {
                            "enable": true,
                            "type": "string",
                            "start": 0,
                            "duration": 0
                        },
                        "effectOut": {
                            "enable": true,
                            "type": "string",
                            "countDownStart": 0,
                            "duration": 0
                        },
                        "zIndex": 9
                    }
                ],
                "displayImages": [
                    {
                        "mediaUrl": "string",
                        "mediaId": "string",
                        "zIndex": 0,
                        "attributes": {
                            "width": 0,
                            "height": 0,
                            "x": 0,
                            "y": 0,
                            "rotation": 0,
                            "opacity": 0,
                            "draggable": true
                        }
                    }
                ],
                "displayVideos": [
                    {
                        "zIndex": 0,
                        "mediaUrl": "string",
                        "mediaId": "string",
                        "attributes": {
                            "width": 0,
                            "height": 0,
                            "x": 0,
                            "y": 0,
                            "rotation": 0,
                            "opacity": 0,
                            "draggable": true,
                            "loop": true,
                            "durationMilliseconds": 0,
                            "volume": 0
                        }
                    }
                ],
                "backgroundMusic": {
                    "mediaId": "string",
                    "mediaUrl": "string",
                    "volume": 0,
                    "speed": 0,
                    "loop": true
                },
                "backgroundImage": {
                    "mediaUrl": "string",
                    "mediaId": "string"
                },
                "caption": {
                    "topRight": true,
                    "topLeft": true,
                    "topCenter": true,
                    "zIndex": 0,
                    "attributes": {
                        "effects": [
                            {
                                "run": true,
                                "Duration": 0,
                                "SubType": "string",
                                "webType": "string"
                            }
                        ],
                        "motionLoopEffect": "string",
                        "ratio": 0,
                        "loopRun": true,
                        "width": 0,
                        "x": 0,
                        "font": 0,
                        "fontSize": 0,
                        "y": 0,
                        "fontColor": "string",
                        "fontColorOpacity": 0,
                        "angle": 0,
                        "type": "string",
                        "bold": true,
                        "italic": true,
                        "underline": true,
                        "spacing": 0,
                        "shadowOn": true,
                        "shadowColor": "string",
                        "shadowOffsetX": 0,
                        "shadowOffsetY": 0,
                        "strokeOn": true,
                        "strokeColor": "string",
                        "strokeWidth": 0,
                        "backgroundOn": true,
                        "backgroundColor": "string",
                        "radius": 0
                    }
                }
            }
        ],
        "backgroundMusic": {
            "mediaId": "string",
            "mediaUrl": "string",
            "volume": 0,
            "speed": 0,
            "loop": true
        }
    },
    "costQuota": true
}'

返回响应

🟢200成功
application/json
Body
taskId
string 
可选
示例
{
  "taskId": ""
}
修改于 2024-11-28 11:47:38
上一页
创建透明虚拟人视频
下一页
获取任务结果
Built with