public class AgentConfig extends AbstractModel
header, skipSign
Constructor and Description |
---|
AgentConfig() |
AgentConfig(AgentConfig source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
Long |
getInterruptMode()
Get Intelligent interruption mode, the default value is 0, 0 means the server automatically interrupts, 1 means the server does not interrupt, and the client sends an interrupt signal to interrupt
|
Long |
getInterruptSpeechDuration()
Get Used when InterruptMode is 0, in milliseconds, with a default value of 500ms.
|
Long |
getMaxIdleTime()
Get If there is no streaming in the room for more than MaxIdleTime, the Service will automatically close the task.
|
String |
getTargetUserId()
Get The UserId of the robot pulling the media stream.
|
String |
getUserId()
Get The robot's UserId is used to enter a room and initiate tasks.
|
String |
getUserSig()
Get The verification signature corresponding to the robot's UserId, that is, UserId and UserSig are equivalent to the robot's login password to enter the room.
|
String |
getWelcomeMessage()
Get Robot's welcome message
|
void |
setInterruptMode(Long InterruptMode)
Set Intelligent interruption mode, the default value is 0, 0 means the server automatically interrupts, 1 means the server does not interrupt, and the client sends an interrupt signal to interrupt
|
void |
setInterruptSpeechDuration(Long InterruptSpeechDuration)
Set Used when InterruptMode is 0, in milliseconds, with a default value of 500ms.
|
void |
setMaxIdleTime(Long MaxIdleTime)
Set If there is no streaming in the room for more than MaxIdleTime, the Service will automatically close the task.
|
void |
setTargetUserId(String TargetUserId)
Set The UserId of the robot pulling the media stream.
|
void |
setUserId(String UserId)
Set The robot's UserId is used to enter a room and initiate tasks.
|
void |
setUserSig(String UserSig)
Set The verification signature corresponding to the robot's UserId, that is, UserId and UserSig are equivalent to the robot's login password to enter the room.
|
void |
setWelcomeMessage(String WelcomeMessage)
Set Robot's welcome message
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public AgentConfig()
public AgentConfig(AgentConfig source)
public String getUserId()
public void setUserId(String UserId)
UserId
- The robot's UserId is used to enter a room and initiate tasks. [Note] This UserId cannot be repeated with the host viewer [UserId](https://cloud.tencent.com/document/product/647/46351#userid) in the current room. If multiple tasks are initiated in a room, the robot's UserId cannot be repeated, otherwise the previous task will be interrupted. The robot's UserId must be unique in the room.public String getUserSig()
public void setUserSig(String UserSig)
UserSig
- The verification signature corresponding to the robot's UserId, that is, UserId and UserSig are equivalent to the robot's login password to enter the room. For the specific calculation method, please refer to the TRTC calculation [UserSig](https://cloud.tencent.com/document/product/647/45910#UserSig) solution.public String getTargetUserId()
public void setTargetUserId(String TargetUserId)
TargetUserId
- The UserId of the robot pulling the media stream. After filling in, the robot will pull the media stream of the UserId for real-time processingpublic Long getMaxIdleTime()
public void setMaxIdleTime(Long MaxIdleTime)
MaxIdleTime
- If there is no streaming in the room for more than MaxIdleTime, the Service will automatically close the task. The default value is 60s.public String getWelcomeMessage()
public void setWelcomeMessage(String WelcomeMessage)
WelcomeMessage
- Robot's welcome messagepublic Long getInterruptMode()
public void setInterruptMode(Long InterruptMode)
InterruptMode
- Intelligent interruption mode, the default value is 0, 0 means the server automatically interrupts, 1 means the server does not interrupt, and the client sends an interrupt signal to interruptpublic Long getInterruptSpeechDuration()
public void setInterruptSpeechDuration(Long InterruptSpeechDuration)
InterruptSpeechDuration
- Used when InterruptMode is 0, in milliseconds, with a default value of 500ms. This means that the server will interrupt when it detects a human voice that lasts for InterruptSpeechDuration milliseconds.Copyright © 2024. All rights reserved.