SingleCallByVoice
Sends a voice notification to a phone number by using a voice notification file.
Operation description
Due to business adjustments, the updates of the voice notification and voice verification code services have been stopped in regions outside the Chinese mainland and the services have been discontinued since March 2022. Only qualified customers can continue using the voice notification and voice verification code services.
You can call the SingleCallByTts operation to send voice notifications with variables.
QPS limits
You can call this operation up to 1,200 times per second per account.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
dyvms:SingleCallByVoice | none | *All Resource
| None | None |
Request parameters
Parameter | Type | Required | Description | Example |
CalledShowNumber | string | No | The number displayed to the called party.
| 0571****5678 |
CalledNumber | string | Yes | The number for receiving voice notifications. Number format:
Note
| 159****0000 |
VoiceCode | string | Yes | The voice ID of the voice notification file. You can log on to the Voice Messaging Service console, choose Voice Messages > Voice Notifications or Voice File Management, and then click the Voice Notification Files tab to view the voice ID. | 2d4c-4e78-8d2a-afbb06cf****.wav |
PlayTimes | integer | No | The number of times the voice notification file is played. Valid values: 1 to 3. | 3 |
Volume | integer | No | The playback volume of the voice notification file. Valid values: 0 to 100. Default value: 100. | 100 |
Speed | integer | No | The playback speed of the voice notification file. Valid values: -500 to 500. | 100 |
OutId | string | No | The ID reserved for the caller. This ID is returned to the caller in a receipt message. The value must be of the STRING type and 1 to 15 bytes in length. | 22596**** |
Response elements
Element | Type | Description | Example |
object | The response parameters. | ||
Code | string | The response code.
| OK |
Message | string | The returned message. | OK |
RequestId | string | The request ID. | E50FFA85-0B79-4421-A7BD-00B0A271966F |
CallId | string | The unique receipt ID for the call. You can call the QueryCallDetailByCallId operation to query the details of the call. | 116004767703^102806**** |
Examples
Success response
JSON format
{
"Code": "OK",
"Message": "OK",
"RequestId": "E50FFA85-0B79-4421-A7BD-00B0A271966F",
"CallId": "116004767703^102806****"
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.