Record Class DashScopeAudioTranscriptionMetadata
java.lang.Object
java.lang.Record
com.alibaba.cloud.ai.dashscope.metadata.audio.DashScopeAudioTranscriptionMetadata
- All Implemented Interfaces:
org.springframework.ai.audio.transcription.AudioTranscriptionMetadata,org.springframework.ai.model.ResultMetadata
public record DashScopeAudioTranscriptionMetadata(Integer sentenceId, Integer beginTime, Integer endTime, List<DashScopeAudioTranscriptionResponseMetadata.Translation.Word> words, Boolean sentenceEnd, Integer channelId, Integer contentDurationInMilliseconds, List<DashScopeAudioTranscriptionResponseMetadata.Sentence> sentences)
extends Record
implements org.springframework.ai.audio.transcription.AudioTranscriptionMetadata
- Since:
- 2026/2/7
- Author:
- yingzi
-
Field Summary
Fields inherited from interface org.springframework.ai.audio.transcription.AudioTranscriptionMetadata
NULL -
Constructor Summary
ConstructorsConstructorDescriptionDashScopeAudioTranscriptionMetadata(Integer sentenceId, Integer beginTime, Integer endTime, List<DashScopeAudioTranscriptionResponseMetadata.Translation.Word> words, Boolean sentenceEnd, Integer channelId, Integer contentDurationInMilliseconds, List<DashScopeAudioTranscriptionResponseMetadata.Sentence> sentences) Creates an instance of aDashScopeAudioTranscriptionMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebeginTimerecord component.Returns the value of thechannelIdrecord component.Returns the value of thecontentDurationInMillisecondsrecord 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 thesentenceEndrecord component.Returns the value of thesentenceIdrecord component.Returns the value of thesentencesrecord component.final StringtoString()Returns a string representation of this record class.words()Returns the value of thewordsrecord component.
-
Constructor Details
-
DashScopeAudioTranscriptionMetadata
public DashScopeAudioTranscriptionMetadata(Integer sentenceId, Integer beginTime, Integer endTime, List<DashScopeAudioTranscriptionResponseMetadata.Translation.Word> words, Boolean sentenceEnd, Integer channelId, Integer contentDurationInMilliseconds, List<DashScopeAudioTranscriptionResponseMetadata.Sentence> sentences) Creates an instance of aDashScopeAudioTranscriptionMetadatarecord class.- Parameters:
sentenceId- the value for thesentenceIdrecord componentbeginTime- the value for thebeginTimerecord componentendTime- the value for theendTimerecord componentwords- the value for thewordsrecord componentsentenceEnd- the value for thesentenceEndrecord componentchannelId- the value for thechannelIdrecord componentcontentDurationInMilliseconds- the value for thecontentDurationInMillisecondsrecord componentsentences- the value for thesentencesrecord 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
-
words
Returns the value of thewordsrecord component.- Returns:
- the value of the
wordsrecord component
-
sentenceEnd
Returns the value of thesentenceEndrecord component.- Returns:
- the value of the
sentenceEndrecord component
-
channelId
Returns the value of thechannelIdrecord component.- Returns:
- the value of the
channelIdrecord component
-
contentDurationInMilliseconds
Returns the value of thecontentDurationInMillisecondsrecord component.- Returns:
- the value of the
contentDurationInMillisecondsrecord component
-
sentences
Returns the value of thesentencesrecord component.- Returns:
- the value of the
sentencesrecord component
-