public class LiveStreamTransTextRecognitionResult extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
LiveStreamTransTextRecognitionResult()  | 
LiveStreamTransTextRecognitionResult(LiveStreamTransTextRecognitionResult 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 | 
|---|---|
Float | 
getConfidence()
Get The confidence score for a segment. 
 | 
Float | 
getEndPtsTime()
Get The PTS (seconds) of the end of a segment. 
 | 
String | 
getEndTime()
Get 
 | 
Float | 
getStartPtsTime()
Get The PTS (seconds) of the start of a segment. 
 | 
String | 
getStartTime()
Get 
 | 
Boolean | 
getSteadyState()
Get 
 | 
String | 
getText()
Get The text transcript. 
 | 
String | 
getTrans()
Get The translation. 
 | 
String | 
getUserId()
Get User ID in the result of real-time translation via WebSocket and TRTC. 
 | 
void | 
setConfidence(Float Confidence)
Set The confidence score for a segment. 
 | 
void | 
setEndPtsTime(Float EndPtsTime)
Set The PTS (seconds) of the end of a segment. 
 | 
void | 
setEndTime(String EndTime)
Set 
 | 
void | 
setStartPtsTime(Float StartPtsTime)
Set The PTS (seconds) of the start of a segment. 
 | 
void | 
setStartTime(String StartTime)
Set 
 | 
void | 
setSteadyState(Boolean SteadyState)
Set 
 | 
void | 
setText(String Text)
Set The text transcript. 
 | 
void | 
setTrans(String Trans)
Set The translation. 
 | 
void | 
setUserId(String UserId)
Set User ID in the result of real-time translation via WebSocket and TRTC. 
 | 
void | 
toMap(HashMap<String,String> map,
     String prefix)
Internal implementation, normal users should not use it. 
 | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic LiveStreamTransTextRecognitionResult()
public LiveStreamTransTextRecognitionResult(LiveStreamTransTextRecognitionResult source)
public String getText()
public void setText(String Text)
Text - The text transcript.public Float getStartPtsTime()
public void setStartPtsTime(Float StartPtsTime)
StartPtsTime - The PTS (seconds) of the start of a segment.public Float getEndPtsTime()
public void setEndPtsTime(Float EndPtsTime)
EndPtsTime - The PTS (seconds) of the end of a segment.public Float getConfidence()
public void setConfidence(Float Confidence)
Confidence - The confidence score for a segment. Value range: 0-100.public String getTrans()
public void setTrans(String Trans)
Trans - The translation.public String getStartTime()
public void setStartTime(String StartTime)
StartTime - public String getEndTime()
public void setEndTime(String EndTime)
EndTime - public Boolean getSteadyState()
public void setSteadyState(Boolean SteadyState)
SteadyState - public String getUserId()
public void setUserId(String UserId)
UserId - User ID in the result of real-time translation via WebSocket and TRTC.
Note: This field may return null, indicating that no valid value can be obtained.Copyright © 2025. All rights reserved.