public class SentenceDetail extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| SentenceDetail() | 
| SentenceDetail(SentenceDetail 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 | getEmotionalEnergy()Get Emotional energy value. | 
| String[] | getEmotionType()Get Emotion type. | 
| Long | getEndMs()Get End time of a sentence (ms). | 
| String | getFinalSentence()Get Final recognition result of a sentence. | 
| KeyWordResult[] | getKeyWordResults()Get List of recognized keywords. | 
| Long | getSilenceTime()Get Silent duration between the current sentence and the last sentence. | 
| String | getSliceSentence()Get Intermediate recognition result of a sentence. | 
| Long | getSpeakerId()Get Channel or speaker ID. | 
| Float | getSpeechSpeed()Get Speech speed of a sentence. | 
| Long | getStartMs()Get Start time of a sentence (ms). | 
| SentenceWords[] | getWords()Get Word details of a sentence. | 
| Long | getWordsNum()Get Number of words in a sentence. | 
| String | getWrittenText()Get Oral-to-written transcription result. | 
| void | setEmotionalEnergy(Float EmotionalEnergy)Set Emotional energy value. | 
| void | setEmotionType(String[] EmotionType)Set Emotion type. | 
| void | setEndMs(Long EndMs)Set End time of a sentence (ms). | 
| void | setFinalSentence(String FinalSentence)Set Final recognition result of a sentence. | 
| void | setKeyWordResults(KeyWordResult[] KeyWordResults)Set List of recognized keywords. | 
| void | setSilenceTime(Long SilenceTime)Set Silent duration between the current sentence and the last sentence. | 
| void | setSliceSentence(String SliceSentence)Set Intermediate recognition result of a sentence. | 
| void | setSpeakerId(Long SpeakerId)Set Channel or speaker ID. | 
| void | setSpeechSpeed(Float SpeechSpeed)Set Speech speed of a sentence. | 
| void | setStartMs(Long StartMs)Set Start time of a sentence (ms). | 
| void | setWords(SentenceWords[] Words)Set Word details of a sentence. | 
| void | setWordsNum(Long WordsNum)Set Number of words in a sentence. | 
| void | setWrittenText(String WrittenText)Set Oral-to-written transcription result. | 
| 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 SentenceDetail()
public SentenceDetail(SentenceDetail source)
public String getFinalSentence()
public void setFinalSentence(String FinalSentence)
FinalSentence - Final recognition result of a sentence.
Note: This field may return null, indicating that no valid values can be obtained.public String getSliceSentence()
public void setSliceSentence(String SliceSentence)
SliceSentence - Intermediate recognition result of a sentence. The sentence is split into multiple phrases by spaces.
Note: This field may return null, indicating that no valid values can be obtained.public String getWrittenText()
public void setWrittenText(String WrittenText)
WrittenText - Oral-to-written transcription result. This parameter has a value only if the corresponding feature is enabled.
Note: This field may return null, indicating that no valid values can be obtained.public Long getStartMs()
public void setStartMs(Long StartMs)
StartMs - Start time of a sentence (ms).
Note: This field may return null, indicating that no valid values can be obtained.public Long getEndMs()
public void setEndMs(Long EndMs)
EndMs - End time of a sentence (ms).
Note: This field may return null, indicating that no valid values can be obtained.public Long getWordsNum()
public void setWordsNum(Long WordsNum)
WordsNum - Number of words in a sentence.
Note: This field may return null, indicating that no valid values can be obtained.public SentenceWords[] getWords()
public void setWords(SentenceWords[] Words)
Words - Word details of a sentence.
Note: This field may return null, indicating that no valid values can be obtained.public Float getSpeechSpeed()
public void setSpeechSpeed(Float SpeechSpeed)
SpeechSpeed - Speech speed of a sentence. Unit: Number of words per second.
Note: This field may return null, indicating that no valid values can be obtained.public Long getSpeakerId()
public void setSpeakerId(Long SpeakerId)
SpeakerId - Channel or speaker ID. (If speaker_diarization is specified or ChannelNum is set to 2 (stereo) in the request, speakers or channels can be distinguished.)
Different values represent different speakers in mono mode. For the speakerId values, 0 represents the left channel, and 1 represents the right channel in stereo mode if an 8k engine is used.
Note: This field may return null, indicating that no valid values can be obtained.public Float getEmotionalEnergy()
public void setEmotionalEnergy(Float EmotionalEnergy)
EmotionalEnergy - Emotional energy value. This value is the result of dividing the sound volume in dB by 10. Value range: [1,10]. The higher the value, the stronger the emotion.
Note: This field may return null, indicating that no valid values can be obtained.public Long getSilenceTime()
public void setSilenceTime(Long SilenceTime)
SilenceTime - Silent duration between the current sentence and the last sentence.
Note: This field may return null, indicating that no valid values can be obtained.public String[] getEmotionType()
public void setEmotionType(String[] EmotionType)
EmotionType - Emotion type. (This parameter may be left blank in two scenarios: 1. No corresponding resource package exists; 2. The emotion is not recognized because it is not strong enough, which is related to the emotional energy.)
Note: This field may return null, indicating that no valid values can be obtained.public KeyWordResult[] getKeyWordResults()
public void setKeyWordResults(KeyWordResult[] KeyWordResults)
KeyWordResults - List of recognized keywords.
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2025. All rights reserved.