知识中心
所有文章
帮助中心
AI客户联络中心 升级日志
API文档
AI客户联络
白标接口及地址
2.5 创建合成视频任务-语音合成
最后更新于 2023/04/27   阅读数 181

接口地址

/api/user/speechSynthesis

#请求方式

POST

#请求参数

字段

类型

是否必须

备注

text

String

文本

sampleRate

Integer

比特率

supplier

Integer

1:阿里2:问问

voice

String

发音人id

volume

Integer

音量 0-100

speechRate

Integer

语速 -500~500

pitchRate

Integer

语速,范围是-500~500

type

Integer

1:男声0:女声

workId

String

作品id

sceneId

String

作品场景id

paddingLeft

Integer

左声道空白时长ms

paddingLeft

Integer

右声道空白时长ms

示例:

{
  "text": "1 2 3 4 5 6 7 8 9",
  "format": "wav",
  "sampleRate": 1,
  "supplier": 3,
  "voice": "manchaozn_meet_48k",
  "volume": 100,
  "speechRate": 0,
  "pitchRate": 0,
  "type": 1,
  "workId": "1635572689870209026",
  "sceneId": "1635572690151227393",
  "paddingLeft": 500,
  "paddingRight": 500
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
plaintext

#返回结果

字段

类型

是否必须

备注

code

Integer

Y

返回的状态码,为0表示成功

success

String

Y

成功/错误

data

json

Y

返回的JSONObject

id

String

Y

作品id

示例:

{
	"code": 0,
	"msg": "success",
	"data": {
		"id": "1650022843737554946"
	},
	"meta": ""
}
1
2
3
4
5
6
7
8
plaintext
未能解决您的问题?请联系
本篇目录

接口地址

#请求方式

#请求参数

#返回结果