参数名称 | 类型 | Nested Key | 是否必传 | 示例 |
---|---|---|---|---|
audio_man | string | 是 | f6254806192e4ef99189ae899d89943e | |
speed | number | 是 | 1 | |
pitch | number | 是 | 1 | |
volume | number | 是 | 100 | |
text | object | 是 | ||
text | 是 | 你好,我是你的蝉镜数字人(文本长度限制为4000字以下) | ||
plain_text | 否 | 你好,我是你的蝉镜数字人 | ||
font_size | number | 否 | 64 | |
width | number | 否 | 1000 | |
height | number | 否 | 90 |
{
"audio_man": "C-CASE-56069e0e255c43239cf39f899cfedb42",
"speed": 1,
"pitch": 1,
"volume": 100,
"text": {
"text": "你好,我是你的蝉镜数字人",
"plain_text": "你好,我是你的蝉镜数字人"
},
"font_size": 64,
"width": 1000,
"height": 90,
"callback": ""
}
curl --location --request POST 'https://api.302.ai/chanjing/open/v1/create_audio_task' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"audio_man": "C-CASE-56069e0e255c43239cf39f899cfedb42",
"speed": 1,
"pitch": 1,
"volume": 100,
"text": {
"text": "你好,我是你的蝉镜数字人",
"plain_text": "你好,我是你的蝉镜数字人"
},
"font_size": 64,
"width": 1000,
"height": 90,
"callback": ""
}'
{
"code": 0,
"data": {
"task_id": "4df5a37f015547649de8d35f55ca191c"
},
"msg": "success",
"trace_id": "07026f836eae4982cec5107e2a2991ab"
}