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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
Segment of the transcribed text and its corresponding details.static final record
Extracted word and it's corresponding timestamps. -
Constructor Summary
ConstructorDescriptionStructuredResponse
(String language, Float duration, String text, List<AzureOpenAiAudioTranscriptionOptions.StructuredResponse.Word> words, List<AzureOpenAiAudioTranscriptionOptions.StructuredResponse.Segment> segments) Creates an instance of aStructuredResponse
record class. -
Method Summary
Modifier and TypeMethodDescriptionduration()
Returns the value of theduration
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.language()
Returns the value of thelanguage
record component.segments()
Returns the value of thesegments
record component.text()
Returns the value of thetext
record component.final String
toString()
Returns a string representation of this record class.words()
Returns the value of thewords
record 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 aStructuredResponse
record 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 thelanguage
record component.- Returns:
- the value of the
language
record component
-
duration
Returns the value of theduration
record component.- Returns:
- the value of the
duration
record component
-
text
Returns the value of thetext
record component.- Returns:
- the value of the
text
record component
-
words
Returns the value of thewords
record component.- Returns:
- the value of the
words
record component
-
segments
Returns the value of thesegments
record component.- Returns:
- the value of the
segments
record component
-