public class SmartCallRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
Boolean |
actionCodeBreak
Specifies whether the playback of the recording file can be interrupted.
|
Integer |
actionCodeTimeBreak
The duration that the user keeps speaking.
|
String |
asrBaseId
The ASR base model.
|
String |
asrModelId
The ID of the Automatic Speech Recognition (ASR) model.
|
String |
backgroundFileCode
The ID of the background voice file that is played back when the user talks with the robot.
|
Integer |
backgroundSpeed
This parameter is unavailable.
|
Integer |
backgroundVolume
This parameter is unavailable.
|
String |
calledNumber
The called number.
|
String |
calledShowNumber
The number displayed to the called party.
|
String |
dynamicId
The dynamic extension ID that is reserved for the caller of the operation.
|
Boolean |
earlyMediaAsr
Specifies whether to enable speech recognition of early media.
|
Boolean |
enableITN
Specifies whether to enable Inverse Text Normalization (ITN) during post-processing.
|
Integer |
muteTime
The silence duration.
|
Double |
noiseThreshold |
String |
outId
The ID that is reserved for the caller of the operation.
|
Long |
ownerId |
Integer |
pauseTime
The pause duration.
|
Boolean |
recordFlag
Specifies whether to record the conversation.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
Integer |
sessionTimeout
The maximum call duration.
|
Integer |
speed
This parameter is unavailable.
|
Integer |
streamAsr
Specifies whether to enable streaming ASR, which intelligently judges what the user wants to express based on the first few words spoken by the user.
|
Boolean |
ttsConf
Specifies whether to set TTS sound parameters.
|
Integer |
ttsSpeed
The speed of TTS variable playback.
|
String |
ttsStyle
The sound style for TTS variable playback.
|
Integer |
ttsVolume
The volume of TTS variable playback.
|
String |
voiceCode
The recording file that is played back in the intelligent outbound call.
|
String |
voiceCodeParam
The value of the TTS variable, in the JSON format.
|
Integer |
volume
The volume at which the recording file is played.
|
| 构造器和说明 |
|---|
SmartCallRequest() |
@NameInMap(value="ActionCodeBreak") public Boolean actionCodeBreak
Specifies whether the playback of the recording file can be interrupted. Default value: true. The default value indicates that the playback of the recording file can be interrupted.
If you set the value of this parameter to false, the playback of the recording file cannot be interrupted even if the value of action_break is set to true.
example:The value of action_code_break takes precedence over the value of action_break.
true
@NameInMap(value="ActionCodeTimeBreak") public Integer actionCodeTimeBreak
The duration that the user keeps speaking. The playback of the recording file is interrupted when this duration is reached. Unit: milliseconds.
If the value of ActionCodeBreak is set to true for the recording file and the duration that the user keeps speaking reaches the specified duration, the playback of the recording file is interrupted. If you do not specify ActionCodeTimeBreak or set the value of ActionCodeTimeBreak to 0, the setting of ActionCodeBreak does not take effect.
example:120
@NameInMap(value="AsrBaseId") public String asrBaseId
The ASR base model. Valid values:
You must specify the ASR model when you call the SmartCall operation. We recommend that you specify either of the AsrModelId and AsrBaseId parameters.
If you specify only the AsrModelId parameter, the specified ASR model is used.
If you specify only the AsrBaseId parameter, the ASR base model is used.
If you specify neither of the two parameters, the default ASR base model is used, that is, the default value customer_service_8k is used for the AsrBaseId parameter.
If you specify both parameters, make sure that their values do not conflict with each other.
customer_service_8k
@NameInMap(value="AsrModelId") public String asrModelId
The ID of the Automatic Speech Recognition (ASR) model.
You can log on to the Voice Messaging Service console and view the ID of the ASR model on the ASR Model Management page.
You must specify the ASR model when you call the SmartCall operation. We recommend that you specify either of the AsrModelId and AsrBaseId parameters.
If you specify only the AsrModelId parameter, the specified ASR model is used.
If you specify only the AsrBaseId parameter, the specified ASR base model is used.
If you specify neither of the two parameters, the default value customer_service_8k is used for the AsrBaseId parameter. This means that the default Mandarin ASR base model is used.
If you specify both parameters, make sure that their values do not conflict with each other.
2070aca1eff146f9a7bc826f1c3d****
@NameInMap(value="BackgroundFileCode") public String backgroundFileCode
The ID of the background voice file that is played back when the user talks with the robot.
You can log on to the Voice Messaging Service console, choose Voice File Management, click the Intelligent Speech Interaction Recording File tab, and then click Details in the Actions column to view the voice ID.
example:2d4c-4e78-8d2a-afbb06cf****.wav
@NameInMap(value="BackgroundSpeed") public Integer backgroundSpeed
This parameter is unavailable.
example:1
@NameInMap(value="BackgroundVolume") public Integer backgroundVolume
This parameter is unavailable.
example:1
@NameInMap(value="CalledNumber") public String calledNumber
The called number. Only phone numbers in the Chinese mainland are supported.
This parameter is required.
example:1590****0000
@NameInMap(value="CalledShowNumber") public String calledShowNumber
The number displayed to the called party. The value must be the number you purchased.
You can log on to the Voice Messaging Service console and choose Voice Numbers > Real Number Management to view the number you purchased.
This parameter is required.
example:0571****5678
@NameInMap(value="DynamicId") public String dynamicId
The dynamic extension ID that is reserved for the caller of the operation. This ID is returned in the callback URL and is used as the development identifier of the customer.
example:abcdefgh
@NameInMap(value="EarlyMediaAsr") public Boolean earlyMediaAsr
Specifies whether to enable speech recognition of early media. Valid values:
example:If you set the value of this parameter to true, the reason why the call is not answered is recorded.
true
@NameInMap(value="EnableITN") public Boolean enableITN
Specifies whether to enable Inverse Text Normalization (ITN) during post-processing. Default value: false. If you set the value to false, ITN is not enabled during post-processing.
If you set the value to true, Chinese numerals are converted into Arabic numerals for output.
example:false
@NameInMap(value="MuteTime") public Integer muteTime
The silence duration. The system determines the end of the conversation based on the silence duration of the user. Unit: milliseconds. Valid values: 1000 to 20000.****
If you specify a value out of the valid range, the default value 10000 is used.
The parameter value can be adjusted during the conversation. The last setting prevails.
10000
@NameInMap(value="NoiseThreshold") public Double noiseThreshold
@NameInMap(value="OutId") public String outId
The ID that is reserved for the caller of the operation. 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:342268*****
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="PauseTime") public Integer pauseTime
The pause duration. The system determines the end of a sentence based on the pause duration of the user in the conversation. Unit: milliseconds. Valid values: 300 to 1200.****
If you specify a value out of the valid range, the default value 800 is used.
You cannot change the parameter value after specifying it.
800
@NameInMap(value="RecordFlag") public Boolean recordFlag
Specifies whether to record the conversation. Valid values:
true
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="SessionTimeout") public Integer sessionTimeout
The maximum call duration. The call is automatically hung up when the maximum call duration is reached. Unit: seconds.
example:The maximum call duration is 3,600 seconds.
120
@NameInMap(value="Speed") public Integer speed
This parameter is unavailable.
example:1
@NameInMap(value="StreamAsr") public Integer streamAsr
Specifies whether to enable streaming ASR, which intelligently judges what the user wants to express based on the first few words spoken by the user. Valid values:
1
@NameInMap(value="TtsConf") public Boolean ttsConf
Specifies whether to set TTS sound parameters. Valid values:
true
@NameInMap(value="TtsSpeed") public Integer ttsSpeed
The speed of TTS variable playback. Valid values: -200 to 200. Default value: 0.
example:100
@NameInMap(value="TtsStyle") public String ttsStyle
The sound style for TTS variable playback. Default value: xiaoyun. For more information about the sound styles, see the Sound styles table below.
example:xiaoyun
@NameInMap(value="TtsVolume") public Integer ttsVolume
The volume of TTS variable playback. Valid values: 0 to 100. Default value: 0.
example:10
@NameInMap(value="VoiceCode") public String voiceCode
The recording file that is played back in the intelligent outbound call.
The file can be an online file, a voice file uploaded from the Voice Messaging Service console, or a text-to-speech (TTS) template that contains variables. You can specify multiple files and a TTS variable together. Separate them with commas (,). The values of the variables in the TTS template are specified by the VoiceCodeParam parameter.
This parameter is required.
example:2d4c-4e78-8d2a-afbb06cf****.wav,$name$
@NameInMap(value="VoiceCodeParam") public String voiceCodeParam
The value of the TTS variable, in the JSON format. This value must match the TTS variable specified by the VoiceCode parameter.
example:{"name":"hello"}
@NameInMap(value="Volume") public Integer volume
The volume at which the recording file is played. Valid values: -4 to 4. We recommend that you set the value of this parameter to 1.
example:1
public static SmartCallRequest build(Map<String,?> map) throws Exception
Exceptionpublic SmartCallRequest setActionCodeBreak(Boolean actionCodeBreak)
public Boolean getActionCodeBreak()
public SmartCallRequest setActionCodeTimeBreak(Integer actionCodeTimeBreak)
public Integer getActionCodeTimeBreak()
public SmartCallRequest setAsrBaseId(String asrBaseId)
public String getAsrBaseId()
public SmartCallRequest setAsrModelId(String asrModelId)
public String getAsrModelId()
public SmartCallRequest setBackgroundFileCode(String backgroundFileCode)
public String getBackgroundFileCode()
public SmartCallRequest setBackgroundSpeed(Integer backgroundSpeed)
public Integer getBackgroundSpeed()
public SmartCallRequest setBackgroundVolume(Integer backgroundVolume)
public Integer getBackgroundVolume()
public SmartCallRequest setCalledNumber(String calledNumber)
public String getCalledNumber()
public SmartCallRequest setCalledShowNumber(String calledShowNumber)
public String getCalledShowNumber()
public SmartCallRequest setDynamicId(String dynamicId)
public String getDynamicId()
public SmartCallRequest setEarlyMediaAsr(Boolean earlyMediaAsr)
public Boolean getEarlyMediaAsr()
public SmartCallRequest setEnableITN(Boolean enableITN)
public Boolean getEnableITN()
public SmartCallRequest setMuteTime(Integer muteTime)
public Integer getMuteTime()
public SmartCallRequest setNoiseThreshold(Double noiseThreshold)
public Double getNoiseThreshold()
public SmartCallRequest setOutId(String outId)
public String getOutId()
public SmartCallRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public SmartCallRequest setPauseTime(Integer pauseTime)
public Integer getPauseTime()
public SmartCallRequest setRecordFlag(Boolean recordFlag)
public Boolean getRecordFlag()
public SmartCallRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public SmartCallRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public SmartCallRequest setSessionTimeout(Integer sessionTimeout)
public Integer getSessionTimeout()
public SmartCallRequest setSpeed(Integer speed)
public Integer getSpeed()
public SmartCallRequest setStreamAsr(Integer streamAsr)
public Integer getStreamAsr()
public SmartCallRequest setTtsConf(Boolean ttsConf)
public Boolean getTtsConf()
public SmartCallRequest setTtsSpeed(Integer ttsSpeed)
public Integer getTtsSpeed()
public SmartCallRequest setTtsStyle(String ttsStyle)
public String getTtsStyle()
public SmartCallRequest setTtsVolume(Integer ttsVolume)
public Integer getTtsVolume()
public SmartCallRequest setVoiceCode(String voiceCode)
public String getVoiceCode()
public SmartCallRequest setVoiceCodeParam(String voiceCodeParam)
public String getVoiceCodeParam()
public SmartCallRequest setVolume(Integer volume)
public Integer getVolume()
Copyright © 2025. All rights reserved.