Record Class RecognitionResult.Sentence
java.lang.Object
java.lang.Record
com.alibaba.cloud.ai.dashscope.audio.transcription.RecognitionResult.Sentence
- Enclosing class:
- RecognitionResult
public static record RecognitionResult.Sentence(Long sentenceId, Long beginTime, Long endTime, String text, List<RecognitionResult.Word> words, RecognitionResult.Stash stash, String emoTag, Double emoConfidence, Boolean heartbeat, Boolean vadPreEnd, Boolean preEndFailed, Long preEndTimemillis, Long preEndStartTime, Long preEndEndTime, Boolean sentenceBegin, Boolean sentenceEnd, Integer speakerId)
extends Record
A single recognition sentence, including both final and intermediate results.
-
Constructor Summary
ConstructorsConstructorDescriptionSentence(Long sentenceId, Long beginTime, Long endTime, String text, List<RecognitionResult.Word> words, RecognitionResult.Stash stash, String emoTag, Double emoConfidence, Boolean heartbeat, Boolean vadPreEnd, Boolean preEndFailed, Long preEndTimemillis, Long preEndStartTime, Long preEndEndTime, Boolean sentenceBegin, Boolean sentenceEnd, Integer speakerId) Creates an instance of aSentencerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebeginTimerecord component.Returns the value of theemoConfidencerecord component.emoTag()Returns the value of theemoTagrecord component.endTime()Returns the value of theendTimerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theheartbeatrecord component.Returns the value of thepreEndEndTimerecord component.Returns the value of thepreEndFailedrecord component.Returns the value of thepreEndStartTimerecord component.Returns the value of thepreEndTimemillisrecord component.Returns the value of thesentenceBeginrecord component.Returns the value of thesentenceEndrecord component.Returns the value of thesentenceIdrecord component.Returns the value of thespeakerIdrecord component.stash()Returns the value of thestashrecord component.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevadPreEndrecord component.words()Returns the value of thewordsrecord component.
-
Constructor Details
-
Sentence
public Sentence(Long sentenceId, Long beginTime, Long endTime, String text, List<RecognitionResult.Word> words, RecognitionResult.Stash stash, String emoTag, Double emoConfidence, Boolean heartbeat, Boolean vadPreEnd, Boolean preEndFailed, Long preEndTimemillis, Long preEndStartTime, Long preEndEndTime, Boolean sentenceBegin, Boolean sentenceEnd, Integer speakerId) Creates an instance of aSentencerecord class.- Parameters:
sentenceId- the value for thesentenceIdrecord componentbeginTime- the value for thebeginTimerecord componentendTime- the value for theendTimerecord componenttext- the value for thetextrecord componentwords- the value for thewordsrecord componentstash- the value for thestashrecord componentemoTag- the value for theemoTagrecord componentemoConfidence- the value for theemoConfidencerecord componentheartbeat- the value for theheartbeatrecord componentvadPreEnd- the value for thevadPreEndrecord componentpreEndFailed- the value for thepreEndFailedrecord componentpreEndTimemillis- the value for thepreEndTimemillisrecord componentpreEndStartTime- the value for thepreEndStartTimerecord componentpreEndEndTime- the value for thepreEndEndTimerecord componentsentenceBegin- the value for thesentenceBeginrecord componentsentenceEnd- the value for thesentenceEndrecord componentspeakerId- the value for thespeakerIdrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
sentenceId
Returns the value of thesentenceIdrecord component.- Returns:
- the value of the
sentenceIdrecord component
-
beginTime
Returns the value of thebeginTimerecord component.- Returns:
- the value of the
beginTimerecord component
-
endTime
Returns the value of theendTimerecord component.- Returns:
- the value of the
endTimerecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
words
Returns the value of thewordsrecord component.- Returns:
- the value of the
wordsrecord component
-
stash
Returns the value of thestashrecord component.- Returns:
- the value of the
stashrecord component
-
emoTag
Returns the value of theemoTagrecord component.- Returns:
- the value of the
emoTagrecord component
-
emoConfidence
Returns the value of theemoConfidencerecord component.- Returns:
- the value of the
emoConfidencerecord component
-
heartbeat
Returns the value of theheartbeatrecord component.- Returns:
- the value of the
heartbeatrecord component
-
vadPreEnd
Returns the value of thevadPreEndrecord component.- Returns:
- the value of the
vadPreEndrecord component
-
preEndFailed
Returns the value of thepreEndFailedrecord component.- Returns:
- the value of the
preEndFailedrecord component
-
preEndTimemillis
Returns the value of thepreEndTimemillisrecord component.- Returns:
- the value of the
preEndTimemillisrecord component
-
preEndStartTime
Returns the value of thepreEndStartTimerecord component.- Returns:
- the value of the
preEndStartTimerecord component
-
preEndEndTime
Returns the value of thepreEndEndTimerecord component.- Returns:
- the value of the
preEndEndTimerecord component
-
sentenceBegin
Returns the value of thesentenceBeginrecord component.- Returns:
- the value of the
sentenceBeginrecord component
-
sentenceEnd
Returns the value of thesentenceEndrecord component.- Returns:
- the value of the
sentenceEndrecord component
-
speakerId
Returns the value of thespeakerIdrecord component.- Returns:
- the value of the
speakerIdrecord component
-