Record Class SpeechTranscriptionResult
java.lang.Object
java.lang.Record
fr.dreamin.dreamvoice.api.speech.model.SpeechTranscriptionResult
- Record Components:
recordingUuid- UUID of the source recording, if anyspeakerUuid- UUID of the primary speaker, if knowndurationSeconds- total audio duration transcribedfullText- full concatenated transcriptsegments- list of timestamped dialogue segments
public record SpeechTranscriptionResult(@Nullable UUID recordingUuid, @Nullable UUID speakerUuid, float durationSeconds, @NotNull String fullText, @NotNull List<SpeechTranscriptionResult.TranscriptionSegment> segments)
extends Record
Result of a speech transcription process containing formatted segments and full text.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresents an individual speech segment with offset and text. -
Constructor Summary
ConstructorsConstructorDescriptionSpeechTranscriptionResult(@Nullable UUID recordingUuid, @Nullable UUID speakerUuid, float durationSeconds, @NotNull String fullText, @NotNull List<SpeechTranscriptionResult.TranscriptionSegment> segments) Creates an instance of aSpeechTranscriptionResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of thedurationSecondsrecord component.final booleanIndicates whether some other object is "equal to" this one.@NotNull StringfullText()Returns the value of thefullTextrecord component.final inthashCode()Returns a hash code value for this object.@Nullable UUIDReturns the value of therecordingUuidrecord component.segments()Returns the value of thesegmentsrecord component.@Nullable UUIDReturns the value of thespeakerUuidrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SpeechTranscriptionResult
public SpeechTranscriptionResult(@Nullable @Nullable UUID recordingUuid, @Nullable @Nullable UUID speakerUuid, float durationSeconds, @NotNull @NotNull String fullText, @NotNull @NotNull List<SpeechTranscriptionResult.TranscriptionSegment> segments) Creates an instance of aSpeechTranscriptionResultrecord class.- Parameters:
recordingUuid- the value for therecordingUuidrecord componentspeakerUuid- the value for thespeakerUuidrecord componentdurationSeconds- the value for thedurationSecondsrecord componentfullText- the value for thefullTextrecord componentsegments- the value for thesegmentsrecord 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. -
recordingUuid
Returns the value of therecordingUuidrecord component.- Returns:
- the value of the
recordingUuidrecord component
-
speakerUuid
Returns the value of thespeakerUuidrecord component.- Returns:
- the value of the
speakerUuidrecord component
-
durationSeconds
public float durationSeconds()Returns the value of thedurationSecondsrecord component.- Returns:
- the value of the
durationSecondsrecord component
-
fullText
-
segments
-