Field | Type | Required | Description |
---|---|---|---|
name | String | Yes | Voice name |
url | String | Yes | Voice link, supports mp3, wav, m4a. Recording environment must be quiet, no background noise, normal speaking speed, clear voice, continuous speech for at least 8 seconds, preferably with emotional expression. Duration: 30 seconds to 5 minutes, file size not exceeding 100MB |
model_type | Model Type | No | Default model is cicada1.0, supports cicada1.0, cicada3.0 |
language | Language | No | Default is cn (Chinese), supports en (English). Other languages are not supported currently. For special language requirements, please contact customer service. |
text | String | No | Voice preview text, content must not exceed 50 characters |
callback | String | No | Callback URL, task results will be sent to this address via a POST request. The request body output is the same as the data returned by the voice details query |
{
"name": "302test",
"url": "https://file.302.ai/gpt/imgs/20250619/6b0985f5cef54c7cbc5db2b0ba756118.mp3",
"callback": ""
}
curl --location --request POST 'https://api.302.ai/chanjing/open/v1/create_customised_audio' \
--header 'Authorization: Bearer sk-jls4AaVBGoe1GwZD64qZA1qyKTN1MPHa4NmvH1cT68z7K1Zz' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "302test",
"url": "https://file.302.ai/gpt/imgs/20250619/6b0985f5cef54c7cbc5db2b0ba756118.mp3",
"callback": ""
}'
{
"code": 0,
"data": "C-Audio-ac568092f7bb4bb0980a8100dacb80d1",
"msg": "success",
"trace_id": "64b15fbcb5cf4295ec2e078d4112bb80"
}