Record Class TranslationRecognitionResult.Transcription
java.lang.Object
java.lang.Record
com.alibaba.cloud.ai.dashscope.audio.transcription.TranslationRecognitionResult.Transcription
- Enclosing class:
- TranslationRecognitionResult
public static record TranslationRecognitionResult.Transcription(Long sentenceId, Long beginTime, Long endTime, String text, List<TranslationRecognitionResult.Word> words, TranslationRecognitionResult.Stash stash, Boolean sentenceEnd, Boolean vadPreEnd, Boolean preEndFailed, Long preEndTimemillis, Long preEndStartTime, Long preEndEndTime)
extends Record
Source-language transcription result.
-
Constructor Summary
ConstructorsConstructorDescriptionTranscription(Long sentenceId, Long beginTime, Long endTime, String text, List<TranslationRecognitionResult.Word> words, TranslationRecognitionResult.Stash stash, Boolean sentenceEnd, Boolean vadPreEnd, Boolean preEndFailed, Long preEndTimemillis, Long preEndStartTime, Long preEndEndTime) Creates an instance of aTranscriptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebeginTimerecord 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 thepreEndEndTimerecord component.Returns the value of thepreEndFailedrecord component.Returns the value of thepreEndStartTimerecord component.Returns the value of thepreEndTimemillisrecord component.Returns the value of thesentenceEndrecord component.Returns the value of thesentenceIdrecord 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
-
Transcription
public Transcription(Long sentenceId, Long beginTime, Long endTime, String text, List<TranslationRecognitionResult.Word> words, TranslationRecognitionResult.Stash stash, Boolean sentenceEnd, Boolean vadPreEnd, Boolean preEndFailed, Long preEndTimemillis, Long preEndStartTime, Long preEndEndTime) Creates an instance of aTranscriptionrecord 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 componentsentenceEnd- the value for thesentenceEndrecord 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 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
-
sentenceEnd
Returns the value of thesentenceEndrecord component.- Returns:
- the value of the
sentenceEndrecord 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
-