public class TranscriptionParams extends AbstractModel
header, skipSign
Constructor and Description |
---|
TranscriptionParams() |
TranscriptionParams(TranscriptionParams 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 |
getMaxIdleTime()
Get If there is no streaming in the room for more than MaxIdleTime, the background will automatically close the task.
|
String |
getTargetUserId()
Get Required when TranscriptionMode is 1.
|
Long |
getTranscriptionMode()
Get 1 means the robot subscribes to the stream of only one person, 0 means the robot subscribes to the stream of the entire room.
|
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.
|
void |
setMaxIdleTime(Long MaxIdleTime)
Set If there is no streaming in the room for more than MaxIdleTime, the background will automatically close the task.
|
void |
setTargetUserId(String TargetUserId)
Set Required when TranscriptionMode is 1.
|
void |
setTranscriptionMode(Long TranscriptionMode)
Set 1 means the robot subscribes to the stream of only one person, 0 means the robot subscribes to the stream of the entire room.
|
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 |
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 TranscriptionParams()
public TranscriptionParams(TranscriptionParams 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 Long getMaxIdleTime()
public void setMaxIdleTime(Long MaxIdleTime)
MaxIdleTime
- If there is no streaming in the room for more than MaxIdleTime, the background will automatically close the task. The default value is 60s.public Long getTranscriptionMode()
public void setTranscriptionMode(Long TranscriptionMode)
TranscriptionMode
- 1 means the robot subscribes to the stream of only one person, 0 means the robot subscribes to the stream of the entire room. If it is not filled in, the robot subscribes to the stream of the entire room by default.public String getTargetUserId()
public void setTargetUserId(String TargetUserId)
TargetUserId
- Required when TranscriptionMode is 1. The robot will only pull the stream of the userid and ignore other users in the room.Copyright © 2024. All rights reserved.