Sends voice verification codes and voice notifications with parameter variables to specified numbers, and supports voice file templates or text-to-speech templates.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dyvms:VoiceSingleCall |
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 the purchased numbers. |
852****0001 |
| CalledNumber |
string |
No |
The mobile phone number that receives the voice notification. Number format: country code + phone number. Example: 85200****00. |
852****0000 |
| TtsCode |
string |
No |
The ID of the text-to-speech 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. You must specify either this parameter or VoiceCode. This parameter specifies that fixed template text is used as the call content, whereas VoiceCode specifies that a voice file is used. |
1001 |
| 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. You must specify either this parameter or TtsCode. This parameter specifies that a voice file is used as the call content, whereas TtsCode specifies that fixed template text is used. |
1002 |
| PlayTimes |
integer |
No |
The number of times the voice notification content is played during a single call. Valid values: 1 to 3. Default value: 3. |
2 |
| Volume |
integer |
No |
The playback volume of the voice notification. Valid values: 0 to 100. Default value: 100. |
100 |
| Speed |
integer |
No |
The speech rate. Valid values: -500 to 500. |
0 |
| TaskName |
string |
No |
The name of the task. |
Single call task name |
| SendType |
integer |
No |
The sending type. Valid values:
|
1 |
| TimingStart |
string |
No |
The scheduled time for sending the message. |
2022-05-01T08:00:00+08:00 |
| OutId |
string |
No |
The ID reserved for the caller. This ID is returned to the caller in the receipt message. The value must be a string that is 1 to 15 bytes in length. |
22522**** |
| CountryId |
string |
No |
The ISO2 country or region code. |
HK |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| AccessDeniedDetail |
string |
The details of the access denial. |
"" |
| Message |
string |
The returned message. |
OK |
| RequestId |
string |
The request ID. |
D9CB****-****-****-****-********9D23 |
| Model |
object |
The request result data. |
|
| Code |
string |
The request status code. A value of SUCCESS indicates that the request is successful. For other error codes, see API error codes. |
SUCCESS |
| Success |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"AccessDeniedDetail": "\"\"",
"Message": "OK",
"RequestId": "D9CB****-****-****-****-********9D23\n",
"Model": {
"test": "test",
"test2": 1
},
"Code": "SUCCESS",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.