奇妙元--开放接口样例
  1. 视频合成
奇妙元--开放接口样例
  • 视频合成
    • 视频合成--样例一
      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
  • 权限校验(临时)
    • 临时权限校验接口
      GET
  • 视频极速克隆(视频配音)
    • 视频配音-文本驱动
      POST
    • 视频配音-文本驱动+背景音
      POST
    • 视频配音-文本驱动+字幕
      POST
    • 视频配音-文本驱动+字幕+背景音
      POST
    • 视频配音-音频驱动
      POST
    • 视频配音-音频驱动+背景音
      POST
    • 视频配音-音频驱动+字幕
      POST
    • 视频配音-视频原声+字幕+背景音
      POST
    • 获取视频配音任务详情(结果查询)
      GET
  • 图片数字人合成webm
    • 图片数字人合成webm-音频驱动
    • 图片数字人合成webm-文本驱动
    • 结果查询
  • 数字人在线克隆
    • 数字人在线克隆任务提交
    • 数字人重命名
    • 克隆任务轮询接口
  • 视频翻译
    • 创建视频翻译任务
    • 视频翻译任务轮询结果
    • 视频翻译接口支持的语言列表接口
  • 生动数字人
    • 生动数字人结果轮询接口
    • 生动数字人任务提交
  • 手持商品数字人
    • 创建任务-tts
    • 创建任务-音频
    • 结果轮询
    • 模版列表查询
  • 视频翻译2期
    • 创建文本校对任务
    • 支持的语言列表
    • 创建视频翻译任务
    • 轮询结果
    • 修改文本并提交视频翻译任务
  1. 视频合成

视频合成--样例三--复杂视频

POST
/metaman/open/video/cmp

请求参数

Body 参数application/json
callbackUrl
string 
必需
height
integer 
必需
items
array [object {1}] 
必需
detailList
array [object {12}] 
必需
name
string 
必需
width
integer 
必需
示例
{
	"callbackUrl": "",
	"height": 1080,
	"items": [
		{
			"detailList": [
				{
					"audioType": "wav",
					"contentType": "avatar",
					"height": 1166,
					"sortNum": 3,
					"wetaSpeakerId": 1644252497877012480,
					"width": 653,
					"x": 1248,
					"y": 108
				},
				{
					"audioType": "wav",
					"content": "今天我们来了解一下K E T考试听力部分的做题技巧。听力可能对很多同学来说是最不熟悉的一个部分,建议收藏本视频,反复观看。下面我们进行例题讲解。",
					"contentType": "text",
					"magicSpeakerId": "momanyu_meet_24k",
					"volume": 1.0
				},
				{
					"audioType": "wav",
					"content": "https://tfgpt.oss-cn-hangzhou.aliyuncs.com/ent/202443/mbbj_1712118051556.png",
					"contentType": "video",
					"height": 1080,
					"sortNum": 1,
					"width": 1920,
					"x": 0,
					"y": 0
				},
				{
					"audioType": "wav",
					"content": "https://admin.tuneful.cn/uploads/digital/1713265705dfd39264966bdf883f86bc67e3523829.png",
					"contentType": "video",
					"height": 161,
					"sortNum": 6,
					"width": 637,
					"x": 250,
					"y": 130
				},
				{
					"audioType": "wav",
					"content": "https://admin.tuneful.cn/uploads/digital/17132657068321350d449c5f44cb36a504d2d18d70.png",
					"contentType": "video",
					"height": 127,
					"sortNum": 7,
					"width": 370,
					"x": 538,
					"y": 367
				},
				{
					"audioType": "wav",
					"content": "https://tfgpt.oss-cn-hangzhou.aliyuncs.com/ent/202443/a5eeba8626f0f21e31a79f7638753e60_1712122605085.png",
					"contentType": "video",
					"height": 690,
					"sortNum": 2,
					"width": 1229,
					"x": 634,
					"y": 108
				}
			]
		},
		{
			"detailList": [
				{
					"audioType": "wav",
					"contentType": "avatar",
					"height": 1166,
					"sortNum": 3,
					"wetaSpeakerId": 1644252497877012480,
					"width": 653,
					"x": 1248,
					"y": 108
				},
				{
					"audioType": "wav",
					"content": "Which family are Emily's new neighbors?\n",
					"contentType": "text",
					"magicSpeakerId": "mercury_bella",
					"volume": 1.0
				},
				{
					"audioType": "wav",
					"content": "https://tfgpt.oss-cn-hangzhou.aliyuncs.com/ent/202443/mbbj_1712118051556.png",
					"contentType": "video",
					"height": 1080,
					"sortNum": 1,
					"width": 1920,
					"x": 0,
					"y": 0
				},
				{
					"audioType": "wav",
					"content": "https://admin.tuneful.cn/uploads/digital/171326384509c6239b06d1041490ba292f9010439f.png",
					"contentType": "video",
					"height": 127,
					"sortNum": 6,
					"width": 370,
					"x": 192,
					"y": 184
				},
				{
					"audioType": "wav",
					"content": "https://admin.tuneful.cn/uploads/digital/1713263845619cdada2fa0589f264df70ae0b2539c.png",
					"contentType": "video",
					"height": 98,
					"sortNum": 7,
					"width": 222,
					"x": 38,
					"y": 410
				},
				{
					"audioType": "wav",
					"content": "https://tfgpt.oss-cn-hangzhou.aliyuncs.com/ent/202443/a5eeba8626f0f21e31a79f7638753e60_1712122605085.png",
					"contentType": "video",
					"height": 690,
					"sortNum": 2,
					"width": 1229,
					"x": 634,
					"y": 108
				},
				{
					"audioType": "wav",
					"content": "https://tfgpt.oss-cn-hangzhou.aliyuncs.com/ent/2024416/ef9d66092cadf3bd611ac29d5e23f9bf_1713262934273.png",
					"contentType": "video",
					"height": 492,
					"sortNum": 6,
					"width": 1249,
					"x": 0,
					"y": 421
				}
			]
		},
		{
			"detailList": [
				{
					"audioType": "wav",
					"contentType": "avatar",
					"height": 1166,
					"sortNum": 3,
					"wetaSpeakerId": 1644252497877012480,
					"width": 653,
					"x": 1248,
					"y": 108
				},
				{
					"audioType": "wav",
					"content": "第一点,做题时审题时间有限,所以一定要在第一时间圈画关键词以及熟悉选项。确保自己明白听听力的时候去寻找的是什么文本,本题需要定位<break time='500ms'/>符合描述的家庭。选项中三幅图是三个家庭,审题时就需要分清楚每个家庭里面成员的不同。本题里,只有A图有老爷爷,只有C图有姐妹。如果提前标出关键词,很容易就能在听文本时找到相应意思。\n第二点,听力文本和题目中会有很多同义替换。所以在听听力时,不能一味地去寻找自己圈出来的关键词,而是去理解关键词想表达的意思。\n做题技巧以外,就要看同学们平时的积累啦。祝各位同学取得高分!",
					"contentType": "text",
					"magicSpeakerId": "momanyu_meet_24k",
					"speed": 1.0,
					"volume": 1.0
				},
				{
					"audioType": "wav",
					"content": "https://tfgpt.oss-cn-hangzhou.aliyuncs.com/ent/202443/mbbj_1712118051556.png",
					"contentType": "video",
					"height": 1080,
					"sortNum": 1,
					"width": 1920,
					"x": 0,
					"y": 0
				},
				{
					"audioType": "wav",
					"content": "https://admin.tuneful.cn/uploads/digital/171326595209c6239b06d1041490ba292f9010439f.png",
					"contentType": "video",
					"height": 127,
					"sortNum": 6,
					"width": 370,
					"x": 192,
					"y": 184
				},
				{
					"audioType": "wav",
					"content": "https://admin.tuneful.cn/uploads/digital/1713265952619cdada2fa0589f264df70ae0b2539c.png",
					"contentType": "video",
					"height": 98,
					"sortNum": 7,
					"width": 222,
					"x": 38,
					"y": 410
				},
				{
					"audioType": "wav",
					"content": "https://admin.tuneful.cn/uploads/digital/1713265951ec2348b02584c0b8886948887365ed83.png",
					"contentType": "video",
					"height": 48,
					"sortNum": 8,
					"width": 140,
					"x": 58,
					"y": 756
				},
				{
					"audioType": "wav",
					"content": "https://admin.tuneful.cn/uploads/digital/1713265954b2316aeabe3c80cc99c13f804acffb9e.png",
					"contentType": "video",
					"height": 48,
					"sortNum": 9,
					"width": 140,
					"x": 461,
					"y": 486
				},
				{
					"audioType": "wav",
					"content": "https://admin.tuneful.cn/uploads/digital/1713265954b2316aeabe3c80cc99c13f804acffb9e.png",
					"contentType": "video",
					"height": 48,
					"sortNum": 10,
					"width": 140,
					"x": 806,
					"y": 767
				},
				{
					"audioType": "wav",
					"content": "https://admin.tuneful.cn/uploads/digital/17132659542b051609cf432d91f2b7469ee8316e61.png",
					"contentType": "video",
					"height": 48,
					"sortNum": 11,
					"width": 198,
					"x": 1037,
					"y": 475
				},
				{
					"audioType": "wav",
					"content": "https://tfgpt.oss-cn-hangzhou.aliyuncs.com/ent/202443/a5eeba8626f0f21e31a79f7638753e60_1712122605085.png",
					"contentType": "video",
					"height": 690,
					"sortNum": 2,
					"width": 1229,
					"x": 634,
					"y": 108
				},
				{
					"audioType": "wav",
					"content": "https://tfgpt.oss-cn-hangzhou.aliyuncs.com/ent/2024416/ef9d66092cadf3bd611ac29d5e23f9bf_1713262934273.png",
					"contentType": "video",
					"height": 491,
					"sortNum": 6,
					"width": 1248,
					"x": 0,
					"y": 421
				}
			]
		}
	],
	"name": "我的数字人20240416191234",
	"width": 1920
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/metaman/open/video/cmp' \
--header 'Content-Type: application/json' \
--data-raw '{
	"callbackUrl": "",
	"height": 1080,
	"items": [
		{
			"detailList": [
				{
					"audioType": "wav",
					"contentType": "avatar",
					"height": 1166,
					"sortNum": 3,
					"wetaSpeakerId": 1644252497877012480,
					"width": 653,
					"x": 1248,
					"y": 108
				},
				{
					"audioType": "wav",
					"content": "今天我们来了解一下K E T考试听力部分的做题技巧。听力可能对很多同学来说是最不熟悉的一个部分,建议收藏本视频,反复观看。下面我们进行例题讲解。",
					"contentType": "text",
					"magicSpeakerId": "momanyu_meet_24k",
					"volume": 1.0
				},
				{
					"audioType": "wav",
					"content": "https://tfgpt.oss-cn-hangzhou.aliyuncs.com/ent/202443/mbbj_1712118051556.png",
					"contentType": "video",
					"height": 1080,
					"sortNum": 1,
					"width": 1920,
					"x": 0,
					"y": 0
				},
				{
					"audioType": "wav",
					"content": "https://admin.tuneful.cn/uploads/digital/1713265705dfd39264966bdf883f86bc67e3523829.png",
					"contentType": "video",
					"height": 161,
					"sortNum": 6,
					"width": 637,
					"x": 250,
					"y": 130
				},
				{
					"audioType": "wav",
					"content": "https://admin.tuneful.cn/uploads/digital/17132657068321350d449c5f44cb36a504d2d18d70.png",
					"contentType": "video",
					"height": 127,
					"sortNum": 7,
					"width": 370,
					"x": 538,
					"y": 367
				},
				{
					"audioType": "wav",
					"content": "https://tfgpt.oss-cn-hangzhou.aliyuncs.com/ent/202443/a5eeba8626f0f21e31a79f7638753e60_1712122605085.png",
					"contentType": "video",
					"height": 690,
					"sortNum": 2,
					"width": 1229,
					"x": 634,
					"y": 108
				}
			]
		},
		{
			"detailList": [
				{
					"audioType": "wav",
					"contentType": "avatar",
					"height": 1166,
					"sortNum": 3,
					"wetaSpeakerId": 1644252497877012480,
					"width": 653,
					"x": 1248,
					"y": 108
				},
				{
					"audioType": "wav",
					"content": "Which family are Emily'\''s new neighbors?\n",
					"contentType": "text",
					"magicSpeakerId": "mercury_bella",
					"volume": 1.0
				},
				{
					"audioType": "wav",
					"content": "https://tfgpt.oss-cn-hangzhou.aliyuncs.com/ent/202443/mbbj_1712118051556.png",
					"contentType": "video",
					"height": 1080,
					"sortNum": 1,
					"width": 1920,
					"x": 0,
					"y": 0
				},
				{
					"audioType": "wav",
					"content": "https://admin.tuneful.cn/uploads/digital/171326384509c6239b06d1041490ba292f9010439f.png",
					"contentType": "video",
					"height": 127,
					"sortNum": 6,
					"width": 370,
					"x": 192,
					"y": 184
				},
				{
					"audioType": "wav",
					"content": "https://admin.tuneful.cn/uploads/digital/1713263845619cdada2fa0589f264df70ae0b2539c.png",
					"contentType": "video",
					"height": 98,
					"sortNum": 7,
					"width": 222,
					"x": 38,
					"y": 410
				},
				{
					"audioType": "wav",
					"content": "https://tfgpt.oss-cn-hangzhou.aliyuncs.com/ent/202443/a5eeba8626f0f21e31a79f7638753e60_1712122605085.png",
					"contentType": "video",
					"height": 690,
					"sortNum": 2,
					"width": 1229,
					"x": 634,
					"y": 108
				},
				{
					"audioType": "wav",
					"content": "https://tfgpt.oss-cn-hangzhou.aliyuncs.com/ent/2024416/ef9d66092cadf3bd611ac29d5e23f9bf_1713262934273.png",
					"contentType": "video",
					"height": 492,
					"sortNum": 6,
					"width": 1249,
					"x": 0,
					"y": 421
				}
			]
		},
		{
			"detailList": [
				{
					"audioType": "wav",
					"contentType": "avatar",
					"height": 1166,
					"sortNum": 3,
					"wetaSpeakerId": 1644252497877012480,
					"width": 653,
					"x": 1248,
					"y": 108
				},
				{
					"audioType": "wav",
					"content": "第一点,做题时审题时间有限,所以一定要在第一时间圈画关键词以及熟悉选项。确保自己明白听听力的时候去寻找的是什么文本,本题需要定位<break time='\''500ms'\''/>符合描述的家庭。选项中三幅图是三个家庭,审题时就需要分清楚每个家庭里面成员的不同。本题里,只有A图有老爷爷,只有C图有姐妹。如果提前标出关键词,很容易就能在听文本时找到相应意思。\n第二点,听力文本和题目中会有很多同义替换。所以在听听力时,不能一味地去寻找自己圈出来的关键词,而是去理解关键词想表达的意思。\n做题技巧以外,就要看同学们平时的积累啦。祝各位同学取得高分!",
					"contentType": "text",
					"magicSpeakerId": "momanyu_meet_24k",
					"speed": 1.0,
					"volume": 1.0
				},
				{
					"audioType": "wav",
					"content": "https://tfgpt.oss-cn-hangzhou.aliyuncs.com/ent/202443/mbbj_1712118051556.png",
					"contentType": "video",
					"height": 1080,
					"sortNum": 1,
					"width": 1920,
					"x": 0,
					"y": 0
				},
				{
					"audioType": "wav",
					"content": "https://admin.tuneful.cn/uploads/digital/171326595209c6239b06d1041490ba292f9010439f.png",
					"contentType": "video",
					"height": 127,
					"sortNum": 6,
					"width": 370,
					"x": 192,
					"y": 184
				},
				{
					"audioType": "wav",
					"content": "https://admin.tuneful.cn/uploads/digital/1713265952619cdada2fa0589f264df70ae0b2539c.png",
					"contentType": "video",
					"height": 98,
					"sortNum": 7,
					"width": 222,
					"x": 38,
					"y": 410
				},
				{
					"audioType": "wav",
					"content": "https://admin.tuneful.cn/uploads/digital/1713265951ec2348b02584c0b8886948887365ed83.png",
					"contentType": "video",
					"height": 48,
					"sortNum": 8,
					"width": 140,
					"x": 58,
					"y": 756
				},
				{
					"audioType": "wav",
					"content": "https://admin.tuneful.cn/uploads/digital/1713265954b2316aeabe3c80cc99c13f804acffb9e.png",
					"contentType": "video",
					"height": 48,
					"sortNum": 9,
					"width": 140,
					"x": 461,
					"y": 486
				},
				{
					"audioType": "wav",
					"content": "https://admin.tuneful.cn/uploads/digital/1713265954b2316aeabe3c80cc99c13f804acffb9e.png",
					"contentType": "video",
					"height": 48,
					"sortNum": 10,
					"width": 140,
					"x": 806,
					"y": 767
				},
				{
					"audioType": "wav",
					"content": "https://admin.tuneful.cn/uploads/digital/17132659542b051609cf432d91f2b7469ee8316e61.png",
					"contentType": "video",
					"height": 48,
					"sortNum": 11,
					"width": 198,
					"x": 1037,
					"y": 475
				},
				{
					"audioType": "wav",
					"content": "https://tfgpt.oss-cn-hangzhou.aliyuncs.com/ent/202443/a5eeba8626f0f21e31a79f7638753e60_1712122605085.png",
					"contentType": "video",
					"height": 690,
					"sortNum": 2,
					"width": 1229,
					"x": 634,
					"y": 108
				},
				{
					"audioType": "wav",
					"content": "https://tfgpt.oss-cn-hangzhou.aliyuncs.com/ent/2024416/ef9d66092cadf3bd611ac29d5e23f9bf_1713262934273.png",
					"contentType": "video",
					"height": 491,
					"sortNum": 6,
					"width": 1248,
					"x": 0,
					"y": 421
				}
			]
		}
	],
	"name": "我的数字人20240416191234",
	"width": 1920
}'

返回响应

🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2024-10-29 02:59:33
上一页
视频合成--样例二--背景图
下一页
视频合成--样例四--音频
Built with