- 账户权益管理API
- 短视频离线合成API
- 调用须知
- 常见问题
- 流式TTS-音色需报备
- 短视频作品合成、编辑和查询
- 音频作品合成、编辑和查询
- 数字人和音色模型
- 素材准备和编辑
- 数字人互动
- 直播OpenApi
音色定制
POST
/openApiDigitalPerson/customer/audioCustomize
请求参数
Header 参数
authorization
string
必需
示例值:
{{auth|md5}}
req_from
string
必需
示例值:
C
timestamp
integer
时间戳
示例值:
{{timestamp}}
app_id
string
必需
示例值:
{{appId}}
account
string
可选
示例值:
19999999999
Body 参数application/json
name
string
音色名称
avatar
null
可选
urlList
array[string]
必需
description
string
可选
audioCorpus
array [object {3}]
必需
单一语料:每次上传最多上传1个音频,文件最大5MB;
单轨低噪声:尽可能的选取低噪声、单人且人声效果较好的单轨音频(不用双声道录制);
支持多格式:支持多格式:wav、mp3、ogg、m4a、aac,建议使用wav格式
name
string
可选
url
string
必需
duration
number
可选
audioType
string
可选
示例
{
"name": "111",
"description": "1111",
"avatar": null,
"urlList": [
"virtual_human/41/Audio/AudioCustomization/1704936808026/59.wav"
],
"audioCorpus": [
{
"name": "59.wav",
"url": "https://digital-person-daily.oss-cn-hangzhou.aliyuncs.com/virtual_human/41/Audio/AudioCustomization/1704936808026/59.wav",
"duration": 53.655
}
],
"audioType": "CLONE_SOUND_CUSTOMIZED"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/openApiDigitalPerson/customer/audioCustomize' \
--header 'authorization: {{auth|md5}}' \
--header 'req_from: C' \
--header 'timestamp: {{timestamp}}' \
--header 'app_id: {{appId}}' \
--header 'account: 19999999999' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "111",
"description": "1111",
"avatar": null,
"urlList": [
"virtual_human/41/Audio/AudioCustomization/1704936808026/59.wav"
],
"audioCorpus": [
{
"name": "59.wav",
"url": "https://digital-person-daily.oss-cn-hangzhou.aliyuncs.com/virtual_human/41/Audio/AudioCustomization/1704936808026/59.wav",
"duration": 53.655
}
],
"audioType": "CLONE_SOUND_CUSTOMIZED"
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
data
object
必需
requestId
string
必需
resultMsg
string
必需
host
string
必需
errorStackTrace
string
必需
示例
{
"code": 0,
"data": {},
"requestId": "",
"resultMsg": "",
"host": "",
"errorStackTrace": ""
}
修改于 2025-03-27 10:14:04