public class SingleCallByVoiceRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
calledNumber
The number for receiving voice notifications.
|
String |
calledShowNumber
The number displayed to the called party.
|
String |
outId
The ID reserved for the caller.
|
Long |
ownerId |
Integer |
playTimes
The number of times the voice notification file is played.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
Integer |
speed
The playback speed of the voice notification file.
|
String |
voiceCode
The voice ID of the voice notification file.
|
Integer |
volume
The playback volume of the voice notification file.
|
| 构造器和说明 |
|---|
SingleCallByVoiceRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static SingleCallByVoiceRequest |
build(Map<String,?> map) |
String |
getCalledNumber() |
String |
getCalledShowNumber() |
String |
getOutId() |
Long |
getOwnerId() |
Integer |
getPlayTimes() |
String |
getResourceOwnerAccount() |
Long |
getResourceOwnerId() |
Integer |
getSpeed() |
String |
getVoiceCode() |
Integer |
getVolume() |
SingleCallByVoiceRequest |
setCalledNumber(String calledNumber) |
SingleCallByVoiceRequest |
setCalledShowNumber(String calledShowNumber) |
SingleCallByVoiceRequest |
setOutId(String outId) |
SingleCallByVoiceRequest |
setOwnerId(Long ownerId) |
SingleCallByVoiceRequest |
setPlayTimes(Integer playTimes) |
SingleCallByVoiceRequest |
setResourceOwnerAccount(String resourceOwnerAccount) |
SingleCallByVoiceRequest |
setResourceOwnerId(Long resourceOwnerId) |
SingleCallByVoiceRequest |
setSpeed(Integer speed) |
SingleCallByVoiceRequest |
setVoiceCode(String voiceCode) |
SingleCallByVoiceRequest |
setVolume(Integer volume) |
@NameInMap(value="CalledNumber") public String calledNumber
The number for receiving voice notifications.
Number format:
In the Chinese mainland:
Outside the Chinese mainland: country code + phone number, for example, 85200\\\*\*00.
You can specify only one called number for a request. For more information, see How to use voice notifications in the Chinese mainland or How to use voice notifications in regions outside the Chinese mainland.
Voice notifications 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 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.
example:22596****
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="PlayTimes") public Integer playTimes
The number of times the voice notification file is played. Valid values: 1 to 3.
example:3
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="Speed") public Integer speed
The playback speed of the voice notification file. Valid values: -500 to 500.
example:100
@NameInMap(value="VoiceCode") public String voiceCode
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.
This parameter is required.
example:2d4c-4e78-8d2a-afbb06cf****.wav
@NameInMap(value="Volume") public Integer volume
The playback volume of the voice notification file. Valid values: 0 to 100. Default value: 100.
example:100
public static SingleCallByVoiceRequest build(Map<String,?> map) throws Exception
Exceptionpublic SingleCallByVoiceRequest setCalledNumber(String calledNumber)
public String getCalledNumber()
public SingleCallByVoiceRequest setCalledShowNumber(String calledShowNumber)
public String getCalledShowNumber()
public SingleCallByVoiceRequest setOutId(String outId)
public String getOutId()
public SingleCallByVoiceRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public SingleCallByVoiceRequest setPlayTimes(Integer playTimes)
public Integer getPlayTimes()
public SingleCallByVoiceRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public SingleCallByVoiceRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public SingleCallByVoiceRequest setSpeed(Integer speed)
public Integer getSpeed()
public SingleCallByVoiceRequest setVoiceCode(String voiceCode)
public String getVoiceCode()
public SingleCallByVoiceRequest setVolume(Integer volume)
public Integer getVolume()
Copyright © 2025. All rights reserved.