Record Class AzureOpenAiAudioTranscriptionOptions.StructuredResponse
java.lang.Object
java.lang.Record
org.springframework.ai.azure.openai.AzureOpenAiAudioTranscriptionOptions.StructuredResponse
- Record Components:
language- The language of the transcribed text.duration- The duration of the audio in seconds.text- The transcribed text.words- The extracted words and their timestamps.segments- The segments of the transcribed text and their corresponding details.
- Enclosing class:
- AzureOpenAiAudioTranscriptionOptions
public static record AzureOpenAiAudioTranscriptionOptions.StructuredResponse(String language, Float duration, String text, List<AzureOpenAiAudioTranscriptionOptions.StructuredResponse.Word> words, List<AzureOpenAiAudioTranscriptionOptions.StructuredResponse.Segment> segments)
extends Record
Structured response of the transcribed audio.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordSegment of the transcribed text and its corresponding details.static final recordExtracted word and it's corresponding timestamps. -
Constructor Summary
ConstructorsConstructorDescriptionStructuredResponse(String language, Float duration, String text, List<AzureOpenAiAudioTranscriptionOptions.StructuredResponse.Word> words, List<AzureOpenAiAudioTranscriptionOptions.StructuredResponse.Segment> segments) Creates an instance of aStructuredResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionduration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.language()Returns the value of thelanguagerecord component.segments()Returns the value of thesegmentsrecord component.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.words()Returns the value of thewordsrecord component.
-
Constructor Details
-
StructuredResponse
public StructuredResponse(String language, Float duration, String text, List<AzureOpenAiAudioTranscriptionOptions.StructuredResponse.Word> words, List<AzureOpenAiAudioTranscriptionOptions.StructuredResponse.Segment> segments) Creates an instance of aStructuredResponserecord class.
-
-
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). -
language
Returns the value of thelanguagerecord component.- Returns:
- the value of the
languagerecord component
-
duration
Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord 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
-
segments
Returns the value of thesegmentsrecord component.- Returns:
- the value of the
segmentsrecord component
-