不需要下面的功能,可以只传文本,支持标签的音色说明:公用音色sourceType为0和1的支持标签 1.电话标签,其中1234要这样写<say-as interpret-as="telephone" name="电话" alias="幺二三四">1234 2:停顿1s标签:<break time="1000ms"> 3:数值标签:<say-as interpret-as="cardinal" name="数值" alias="十二万三千四百五十六">123456 4:序列标签:<say-as interpret-as="digits" name="序列" alias="七六九 八六">769865:多音字标签,<phoneme alphabet="py" ph="zhi1">知
{
"isVideoWork": true,
"voice": "XiaoxiaoNeural",
"lang": "zh-CN",
"role": "Default",
"style": "default",
"sourceType": 1,
"speechStr": 1,
"textList": [
"<speak>详情<say-as interpret-as=\"telephone\" name=\"电话\" alias=\"幺二三四\">1234</say-as>请私信或评论区留<break time=\"1000ms\"></break>言。<say-as interpret-as=\"cardinal\" name=\"数值\" alias=\"十二万三千四百五十六\">123456</say-as>。<say-as interpret-as=\"digits\" name=\"序列\" alias=\"七六九八六\">76986</say-as>。<phoneme alphabet=\"py\" ph=\"zhi1\">知</phoneme>道吗。</speak>"
],
"oriText": [
"详情1234请私信或评论区留言。123456。76986。知道吗。"
],
"volume": 100
}
curl --location --request POST '/openApiDigitalPerson/customer/compose' \
--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 '{
"isVideoWork": true,
"voice": "XiaoxiaoNeural",
"lang": "zh-CN",
"role": "Default",
"style": "default",
"sourceType": 1,
"speechStr": 1,
"textList": [
"<speak>详情<say-as interpret-as=\"telephone\" name=\"电话\" alias=\"幺二三四\">1234</say-as>请私信或评论区留<break time=\"1000ms\"></break>言。<say-as interpret-as=\"cardinal\" name=\"数值\" alias=\"十二万三千四百五十六\">123456</say-as>。<say-as interpret-as=\"digits\" name=\"序列\" alias=\"七六九八六\">76986</say-as>。<phoneme alphabet=\"py\" ph=\"zhi1\">知</phoneme>道吗。</speak>"
],
"oriText": [
"详情1234请私信或评论区留言。123456。76986。知道吗。"
],
"volume": 100
}'
{
"code": 500,
"data": {
"duration": "8.57475",
"durationList": [
8.57475
],
"url": "https://digital-person-daily.oss-cn-hangzhou.aliyuncs.com/virtual_human/audio/zhimi_emo_ZE5dPAlf_e495af3c3be611ee9a0a0242ac110009.wav"
},
"requestId": "ngVQ5vUH",
"resultMsg": "成功",
"host": "DESKTOP-I3F4OHS",
"errorStackTrace": "成功"
}