Record Class DashScopeAudioTranscriptionApi.RealtimeResponse.Payload.Output.Transcription
java.lang.Object
java.lang.Record
com.alibaba.cloud.ai.dashscope.api.DashScopeAudioTranscriptionApi.RealtimeResponse.Payload.Output.Transcription
- Enclosing class:
- DashScopeAudioTranscriptionApi.RealtimeResponse.Payload.Output
-
Constructor Summary
ConstructorsConstructorDescriptionTranscription(Integer sentenceId, String text, Integer beginTime, Integer currentTime, Boolean sentenceEnd, List<DashScopeAudioTranscriptionApi.RealtimeResponse.Payload.Output.Word> words) Creates an instance of aTranscriptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebeginTimerecord component.Returns the value of thecurrentTimerecord 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 thesentenceEndrecord component.Returns the value of thesentenceIdrecord 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
-
Transcription
public Transcription(Integer sentenceId, String text, Integer beginTime, Integer currentTime, Boolean sentenceEnd, List<DashScopeAudioTranscriptionApi.RealtimeResponse.Payload.Output.Word> words) Creates an instance of aTranscriptionrecord class.- Parameters:
sentenceId- the value for thesentenceIdrecord componenttext- the value for thetextrecord componentbeginTime- the value for thebeginTimerecord componentcurrentTime- the value for thecurrentTimerecord componentsentenceEnd- the value for thesentenceEndrecord 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
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
beginTime
Returns the value of thebeginTimerecord component.- Returns:
- the value of the
beginTimerecord component
-
currentTime
Returns the value of thecurrentTimerecord component.- Returns:
- the value of the
currentTimerecord component
-
sentenceEnd
Returns the value of thesentenceEndrecord component.- Returns:
- the value of the
sentenceEndrecord component
-
words
Returns the value of thewordsrecord component.- Returns:
- the value of the
wordsrecord component
-