Record Class SpeechTranscriptionResult.TranscriptionSegment
java.lang.Object
java.lang.Record
fr.dreamin.dreamvoice.api.speech.model.SpeechTranscriptionResult.TranscriptionSegment
- Record Components:
offsetSeconds- start offset in secondsspeakerName- resolved display name of the speakertext- transcribed text
- Enclosing class:
SpeechTranscriptionResult
-
Constructor Summary
ConstructorsConstructorDescriptionTranscriptionSegment(float offsetSeconds, @NotNull String speakerName, @NotNull String text) Creates an instance of aTranscriptionSegmentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatReturns the value of theoffsetSecondsrecord component.@NotNull StringReturns the value of thespeakerNamerecord component.@NotNull Stringtext()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TranscriptionSegment
public TranscriptionSegment(float offsetSeconds, @NotNull @NotNull String speakerName, @NotNull @NotNull String text) Creates an instance of aTranscriptionSegmentrecord class.- Parameters:
offsetSeconds- the value for theoffsetSecondsrecord componentspeakerName- the value for thespeakerNamerecord componenttext- the value for thetextrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
offsetSeconds
public float offsetSeconds()Returns the value of theoffsetSecondsrecord component.- Returns:
- the value of the
offsetSecondsrecord component
-
speakerName
Returns the value of thespeakerNamerecord component.- Returns:
- the value of the
speakerNamerecord component
-
text
-