Sends a voice notification to multiple phone numbers. A voice file or text-to-speech (TTS) template is supported.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resourcesis used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| dyvms:VoiceGroupCall | none | *All Resources * |
| none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| CallerIdNumber | string | No | The calling number. If you do not specify this parameter, the system uses a local random number as the display number. If you use a dedicated number for outbound calls, you must specify the purchased number. You can specify only one number. You can log on to the VMS console and go to the number management page to view the purchased phone numbers. | 852****1111 |
| CalledNumber | array | No | The called numbers. You can specify up to 50,000 numbers. | |
| string | No | The number. You must add the country/region dialing code to the beginning of the phone number. Example: 852****0000. | 852****0000 | |
| TtsCode | string | No | The ID of the TTS template. You can log on to the VMS console and go to the TTS templates page to view the template ID. You must specify either TtsCode or VoiceCode. You can specify TtsCode to use the voice file as the call content, or you can specify VoiceCode to use preset text as the call content. | 1****01 |
| TtsParam | string | No | The variables in the template, in the JSON format. | {"code":"1234"} |
| VoiceCode | string | No | The ID of the voice file template. You can log on to the VMS console and go to the voice file templates page to view the template ID. You must specify either TtsCode or VoiceCode. You can specify TtsCode to use the voice file as the call content, or you can specify VoiceCode to use preset text as the call content. | 2*****01 |
| PlayTimes | long | No | The number of times the voice notification is played in the call. Valid values: 1 to 3. | 1 |
| Volume | long | No | The playback volume of the voice file. Valid values: 0 to 100. Default value: 100. | 100 |
| Speed | long | No | The playback speed. Valid values: -500 to 500. This parameter is required when a TTS template is used. You do not need to specify this parameter when a recorded voice file is used. | 100 |
| TaskName | string | No | The task name. | calltask |
| SendType | long | No | The delivery type. Valid values: 1 and 2. 1: immediately delivers the task. 2: delivers the task at a scheduled time. If you set this parameter to 2, you must specify TimingStart. | 1 |
| TimingStart | string | No | The time when the task is scheduled to be delivered. | 2022-05-01T08:00:00+08:00 |
| OutId | string | No | The ID reserved for the caller. This ID is returned to the caller in a receipt message. The value must be a string that is 1 to 15 bytes in length. | 22596**** |
| CountryId | string | No | The ISO2 country/region code. | HK |
Response parameters
Examples
Sample success responses
JSONformat
{
"AccessDeniedDetail": "",
"RequestId": "E50F****-****-****-****-********966F",
"Message": "OK",
"Model": {
"test": "test",
"test2": 1
},
"Code": "OK",
"Success": true
}Error codes
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|
