Skip to content

语音通知 ​

接口说明 ​

调用接口可实现语音通知。 ⚠️接口有频次限制(10次/秒),如需大批量语音通知,请使用自动外呼任务结合IVR实现。

请求方式 ​

POST/call/api/v1/voiceNotify

请求参数 ​

参数类型必填示例值说明
customerNumberstring是—被叫号码
customerNumberEncryptedboolean否false被叫号码是否加密
displayNumberstring否—外显号码,不传则随机一个可用号码
timeoutinteger否—呼叫超时时长,默认60秒
voiceTypestring是—语音类型(voice: 语音文件; tts: 语音合成)
voiceIdstring否—语音文件id,voiceType为voice时必传
ttsTextstring否—语音合成文本,voiceType为tts时必传

请求示例 ​

json
{
  "customerNumber": "01000000000",
  "customerNumberEncrypted": false,
  "displayNumber": "01012345678",
  "timeout": 30,
  "voiceType": "",
  "voiceId": "",
  "ttsText": ""
}

成功响应 ​

json
{
  "success": true,
  "code": "200",
  "message": "200 ok!",
  "data": null
}