Sends multiple voice calls to specified phone numbers by using voice file templates or text-to-speech (TTS) templates.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dyvms:VoiceGroupCall |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| CallerIdNumber |
string |
No |
The caller ID number. If you do not specify this parameter, the system uses a random local number as the caller ID. If you use a dedicated number for outbound calls, you must specify a purchased number. Only one number is supported. You can log on to the Voice Messaging Service console and choose Number Management to view purchased numbers. |
852****1111 |
| CalledNumber |
array |
No |
The called numbers. The maximum number is 50,000. |
|
|
string |
No |
The number format: country code + phone number. Example: 852****0000. |
852****0000 |
|
| TtsCode |
string |
No |
The ID of the text-to-speech (TTS) template. You can log on to the Voice Messaging Service console and choose Voice Template Management > Text-to-Speech Templates to view the template ID. Either this parameter or VoiceCode is required. These parameters specify whether to use a voice file or fixed template text as the call content. |
1****01 |
| TtsParam |
string |
No |
The variable parameters in the template, in JSON format. |
{"code":"1234"} |
| VoiceCode |
string |
No |
The ID of the voice file template. You can log on to the Voice Messaging Service console and choose Voice Template Management > Voice Files to view the template ID. Either this parameter or TtsCode is required. These parameters specify whether to use a voice file or fixed template text as the call content. |
2*****01 |
| PlayTimes |
integer |
No |
The number of times the voice file is played. Valid values: 1 to 3. |
1 |
| Volume |
integer |
No |
The volume for the voice file playback. Valid values: 0 to 100. Default value: 100. |
100 |
| Speed |
integer |
No |
The speech rate. Valid values: -500 to 500. This parameter is required when the audio type is TTS. It is optional for recorded voice files. |
100 |
| TaskName |
string |
No |
The name of the task. |
Voice broadcast task |
| SendType |
integer |
No |
The sending type. Valid values:
|
1 |
| TimingStart |
string |
No |
The scheduled sending time. |
2022-05-01T08:00:00+08:00 |
| OutId |
string |
No |
The custom ID that is returned to the caller in the receipt message. The value must be a string and 1 to 15 bytes in length. |
22596**** |
| CountryId |
string |
No |
The two-letter country or region code (ISO 3166-1 alpha-2). |
HK |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| AccessDeniedDetail |
string |
The details of the access denial. |
"" |
| RequestId |
string |
The ID of the request. |
E50F****-****-****-****-********966F |
| Message |
string |
The returned message. |
OK |
| Model |
object |
The result data of the request. |
|
| Code |
string |
The status code of the request. A value of OK indicates that the request is successful. For other error codes, see Error codes. |
OK |
| Success |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"AccessDeniedDetail": "\"\"",
"RequestId": "E50F****-****-****-****-********966F",
"Message": "OK",
"Model": {
"test": "test",
"test2": 1
},
"Code": "OK",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.