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.
- Author:
- Piotr Olaszewski, Ilayaperumal Gopinathan
-
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
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
language
-
duration
-
text
-
words
-
segments
-