Record Class DashScopeAudioTranscriptionApi.RealtimeResponse.Payload.Output.Sentence
java.lang.Object
java.lang.Record
com.alibaba.cloud.ai.dashscope.api.DashScopeAudioTranscriptionApi.RealtimeResponse.Payload.Output.Sentence
- Enclosing class:
- DashScopeAudioTranscriptionApi.RealtimeResponse.Payload.Output
public static record DashScopeAudioTranscriptionApi.RealtimeResponse.Payload.Output.Sentence(String sentenceId, Integer beginTime, Integer endTime, String text, Integer channelId, String speakerId, Boolean heartbeat, Boolean sentenceBegin, Boolean sentenceEnd, String emoTag, Double emoConfidence, List<DashScopeAudioTranscriptionApi.RealtimeResponse.Payload.Output.Word> words)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSentence(String sentenceId, Integer beginTime, Integer endTime, String text, Integer channelId, String speakerId, Boolean heartbeat, Boolean sentenceBegin, Boolean sentenceEnd, String emoTag, Double emoConfidence, List<DashScopeAudioTranscriptionApi.RealtimeResponse.Payload.Output.Word> words) Creates an instance of aSentencerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebeginTimerecord component.Returns the value of thechannelIdrecord 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 thesentenceBeginrecord component.Returns the value of thesentenceEndrecord component.Returns the value of thesentenceIdrecord component.Returns the value of thespeakerIdrecord component.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.words()Returns the value of thewordsrecord component.
-
Constructor Details
-
Sentence
public Sentence(String sentenceId, Integer beginTime, Integer endTime, String text, Integer channelId, String speakerId, Boolean heartbeat, Boolean sentenceBegin, Boolean sentenceEnd, String emoTag, Double emoConfidence, List<DashScopeAudioTranscriptionApi.RealtimeResponse.Payload.Output.Word> words) 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 componentchannelId- the value for thechannelIdrecord componentspeakerId- the value for thespeakerIdrecord componentheartbeat- the value for theheartbeatrecord componentsentenceBegin- the value for thesentenceBeginrecord componentsentenceEnd- the value for thesentenceEndrecord componentemoTag- the value for theemoTagrecord componentemoConfidence- the value for theemoConfidencerecord componentwords- the value for thewordsrecord 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
-
channelId
Returns the value of thechannelIdrecord component.- Returns:
- the value of the
channelIdrecord component
-
speakerId
Returns the value of thespeakerIdrecord component.- Returns:
- the value of the
speakerIdrecord component
-
heartbeat
Returns the value of theheartbeatrecord component.- Returns:
- the value of the
heartbeatrecord 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
-
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
-
words
Returns the value of thewordsrecord component.- Returns:
- the value of the
wordsrecord component
-