模式1:音频合成到数字人
{
"audio_url": "https://cdn.file.boats/20250109/12N9KLFP1LTyFr8xMrrmuLYd0gbRk5.mp3",
"avatar_url": "https://cdn.file.boats/20250113/rKqzPLFZsIARABWwKxjOEXoBtSVPjn.mp4"
}
模式2:克隆音色+生成语音+合成数字人,请注意语种设置
{
"create_voice": {
"audio_url": "https://cdn.file.boats/20250113/rKqzPLFZsIARABWwKxjOEXoBtSVPjn.mp4",
"language": "cn",
"text": "输入想要说的话"
},
"avatar_url": "https://cdn.file.boats/20250113/rKqzPLFZsIARABWwKxjOEXoBtSVPjn.mp4"
}
🐂🍺音频文件支持视频文件格式,会自动抽取音轨curl --location --request POST 'https://one.api4gpt.com/avatar/generation' \
--header 'Authorization: Bearer Token' \
--header 'Content-Type: application/json' \
--data-raw '模式1:音频合成到数字人
{
"audio_url": "https://cdn.file.boats/20250109/12N9KLFP1LTyFr8xMrrmuLYd0gbRk5.mp3",
"avatar_url": "https://cdn.file.boats/20250113/rKqzPLFZsIARABWwKxjOEXoBtSVPjn.mp4"
}
模式2:克隆音色+生成语音+合成数字人,请注意语种设置
{
"create_voice": {
"audio_url": "https://cdn.file.boats/20250113/rKqzPLFZsIARABWwKxjOEXoBtSVPjn.mp4",
"language": "cn",
"text": "输入想要说的话"
},
"avatar_url": "https://cdn.file.boats/20250113/rKqzPLFZsIARABWwKxjOEXoBtSVPjn.mp4"
}
🐂🍺音频文件支持视频文件格式,会自动抽取音轨'{
"code": 0,
"data": {
"id": "string"
}
}