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 any
speakerUuid - UUID of the primary speaker, if known
durationSeconds - total audio duration transcribed
fullText - full concatenated transcript
segments - 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.
  • 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 a SpeechTranscriptionResult record class.
      Parameters:
      recordingUuid - the value for the recordingUuid record component
      speakerUuid - the value for the speakerUuid record component
      durationSeconds - the value for the durationSeconds record component
      fullText - the value for the fullText record component
      segments - the value for the segments record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • recordingUuid

      @Nullable public @Nullable UUID recordingUuid()
      Returns the value of the recordingUuid record component.
      Returns:
      the value of the recordingUuid record component
    • speakerUuid

      @Nullable public @Nullable UUID speakerUuid()
      Returns the value of the speakerUuid record component.
      Returns:
      the value of the speakerUuid record component
    • durationSeconds

      public float durationSeconds()
      Returns the value of the durationSeconds record component.
      Returns:
      the value of the durationSeconds record component
    • fullText

      @NotNull public @NotNull String fullText()
      Returns the value of the fullText record component.
      Returns:
      the value of the fullText record component
    • segments

      @NotNull public @NotNull List<SpeechTranscriptionResult.TranscriptionSegment> segments()
      Returns the value of the segments record component.
      Returns:
      the value of the segments record component