云客服-上传语音通知的文字转语音模板文件(createVoiceTemplate):报文样例

时间:2024-09-24 14:46:23

报文样例

请求头:

Content-Type:application/json
Authorization:Bearer XXXXXXXXXXXXXXXXXXXXXXX
X-APP-Key:XXXXXXXXXXXXXXXXXXXXXXX

请求参数:

{
     "name":"ctest1",
     "scene":"3",
     "volume":0,
    "speed":50,
     "voicename":"cn_kefuman_cn",
     "callBackUrl" : "http://10.134.227.74:18133/upload",
     "voicecontent":{
             "language":"zh_CN",
             "textcontent":"测试"
     }
 }

响应参数:

{
   "returnCode": "0",
   "description": "The file is uploaded successfully.",
   "templateId": "1249756280719641601"
 }

回调URL样例报文:

//请求参数
{
    "fileUrl": "Y:/IVR/147/voice/0/nPqV9vU3_1666706957559.wav",
    "fileId": "1323606152730207249",
    "status": "2",
    "comment": "审核通过"
}
//响应参数
{
    "returnCode": "0"
}
support.huaweicloud.com/api-ccfs-cec/cec_07_1040.html