云客服-依据文本生成TTS语音接口:报文样例

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

报文样例

请求消息头

Content-Type:application/json; charset=UTF-8

请求体消息

{
    "config": {
       "voiceName":"cn_tianmeiru_common"		
    },
    "text":"你好,测试一下文本合成语音接口。",
    "authToken": "********************",
    "tenantId":"********************"
}

响应体消息

{
  "data": {
    "sentences": [
      {
        "st": 0,
        "offset": 0,
        "len": 48,
        "et": 2790
      }
    ],
    "voiceData": "UklGRuRsAQBXQVZFZm10IBA",
    "format": "wav",
    "sampleRate": "16000"
  },
  "retCode": "0"
}
support.huaweicloud.com/api-ccfs-cec/cec_07_2059.html