public class SingleCallByTtsRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
calledNumber
The mobile phone number that receives voice notifications.
|
String |
calledShowNumber
The number displayed to the called party.
|
String |
outId
The custom ID that is reserved for the caller of the operation when the request is initiated.
|
Long |
ownerId |
Integer |
playTimes
The number of times a voice notification is played back in a call.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
Integer |
speed
The playback speed.
|
String |
ttsCode
The ID of the approved TTS notification template or voice verification code template.
|
String |
ttsParam
The variables in the template, in the JSON format.
|
Integer |
volume
The playback volume of the voice notification.
|
| 构造器和说明 |
|---|
SingleCallByTtsRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static SingleCallByTtsRequest |
build(Map<String,?> map) |
String |
getCalledNumber() |
String |
getCalledShowNumber() |
String |
getOutId() |
Long |
getOwnerId() |
Integer |
getPlayTimes() |
String |
getResourceOwnerAccount() |
Long |
getResourceOwnerId() |
Integer |
getSpeed() |
String |
getTtsCode() |
String |
getTtsParam() |
Integer |
getVolume() |
SingleCallByTtsRequest |
setCalledNumber(String calledNumber) |
SingleCallByTtsRequest |
setCalledShowNumber(String calledShowNumber) |
SingleCallByTtsRequest |
setOutId(String outId) |
SingleCallByTtsRequest |
setOwnerId(Long ownerId) |
SingleCallByTtsRequest |
setPlayTimes(Integer playTimes) |
SingleCallByTtsRequest |
setResourceOwnerAccount(String resourceOwnerAccount) |
SingleCallByTtsRequest |
setResourceOwnerId(Long resourceOwnerId) |
SingleCallByTtsRequest |
setSpeed(Integer speed) |
SingleCallByTtsRequest |
setTtsCode(String ttsCode) |
SingleCallByTtsRequest |
setTtsParam(String ttsParam) |
SingleCallByTtsRequest |
setVolume(Integer volume) |
@NameInMap(value="CalledNumber") public String calledNumber
The mobile phone number that receives voice notifications.
Number format in the Chinese mainland:
Number format outside the Chinese mainland: country code + phone number, for example, 85200\\\*\*00.
Each request supports only one called number. For more information, see How to use voice notifications in the Chinese mainland or How to use voice verification codes in regions outside the Chinese mainland.
Voice verification codes are sent to a called number at the following frequency: one time per minute, five times per hour, and 20 times per 24 hours.
This parameter is required.
example:1590****000
@NameInMap(value="CalledShowNumber") public String calledShowNumber
The number displayed to the called party.
0571****5678
@NameInMap(value="OutId") public String outId
The custom ID that is reserved for the caller of the operation when the request is initiated. This ID is returned to the caller in a receipt message.
The value is of the STRING type and must be 1 to 15 bytes in length.
example:225869*****
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="PlayTimes") public Integer playTimes
The number of times a voice notification is played back in a call. Valid values: 1 to 3. Default value: 3.
example:3
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="Speed") public Integer speed
The playback speed. Valid value: -500 to 500.
example:5
@NameInMap(value="TtsCode") public String ttsCode
The ID of the approved TTS notification template or voice verification code template.
You can log on to the Voice Messaging Service console, and choose Voice Messages > Voice Verification Codes or choose Voice Messages > Voice Notifications to view the template ID.
The account to which the TTS template belongs must be the same as the account that is used to call the SingleCallByTts operation.
This parameter is required.
example:TTS_100****
@NameInMap(value="TtsParam") public String ttsParam
The variables in the template, in the JSON format.
example:The variables in the template must be less than 250 characters in length. The length of each single variable is not limited. These variables do not support URLs. The variables in the verification code template support only digits and letters.
{"AckNum":"123456"}
@NameInMap(value="Volume") public Integer volume
The playback volume of the voice notification. Valid values: 0 to 100. Default value: 100.
example:100
public static SingleCallByTtsRequest build(Map<String,?> map) throws Exception
Exceptionpublic SingleCallByTtsRequest setCalledNumber(String calledNumber)
public String getCalledNumber()
public SingleCallByTtsRequest setCalledShowNumber(String calledShowNumber)
public String getCalledShowNumber()
public SingleCallByTtsRequest setOutId(String outId)
public String getOutId()
public SingleCallByTtsRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public SingleCallByTtsRequest setPlayTimes(Integer playTimes)
public Integer getPlayTimes()
public SingleCallByTtsRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public SingleCallByTtsRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public SingleCallByTtsRequest setSpeed(Integer speed)
public Integer getSpeed()
public SingleCallByTtsRequest setTtsCode(String ttsCode)
public String getTtsCode()
public SingleCallByTtsRequest setTtsParam(String ttsParam)
public String getTtsParam()
public SingleCallByTtsRequest setVolume(Integer volume)
public Integer getVolume()
Copyright © 2025. All rights reserved.