Record Class AzureOpenAiAudioTranscriptionOptions.StructuredResponse.Segment
java.lang.Object
java.lang.Record
org.springframework.ai.azure.openai.AzureOpenAiAudioTranscriptionOptions.StructuredResponse.Segment
- Record Components:
id
- Unique identifier of the segment.seek
- Seek offset of the segment.start
- Start time of the segment in seconds.end
- End time of the segment in seconds.text
- The text content of the segment.tokens
- Array of token IDs for the text content.temperature
- Temperature parameter used for generating the segment.avgLogprob
- Average logprob of the segment. If the value is lower than -1, consider the logprobs failed.compressionRatio
- Compression ratio of the segment. If the value is greater than 2.4, consider the compression failed.noSpeechProb
- Probability of no speech in the segment. If the value is higher than 1.0 and the avg_logprob is below -1, consider this segment silent.
- Enclosing class:
- AzureOpenAiAudioTranscriptionOptions.StructuredResponse
public static record AzureOpenAiAudioTranscriptionOptions.StructuredResponse.Segment(Integer id, Integer seek, Float start, Float end, String text, List<Integer> tokens, Float temperature, Float avgLogprob, Float compressionRatio, Float noSpeechProb)
extends Record
Segment of the transcribed text and its corresponding details.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theavgLogprob
record component.Returns the value of thecompressionRatio
record component.end()
Returns the value of theend
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.id()
Returns the value of theid
record component.Returns the value of thenoSpeechProb
record component.seek()
Returns the value of theseek
record component.start()
Returns the value of thestart
record component.Returns the value of thetemperature
record component.text()
Returns the value of thetext
record component.tokens()
Returns the value of thetokens
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Segment
public Segment(Integer id, Integer seek, Float start, Float end, String text, List<Integer> tokens, Float temperature, Float avgLogprob, Float compressionRatio, Float noSpeechProb) Creates an instance of aSegment
record class.- Parameters:
id
- the value for theid
record componentseek
- the value for theseek
record componentstart
- the value for thestart
record componentend
- the value for theend
record componenttext
- the value for thetext
record componenttokens
- the value for thetokens
record componenttemperature
- the value for thetemperature
record componentavgLogprob
- the value for theavgLogprob
record componentcompressionRatio
- the value for thecompressionRatio
record componentnoSpeechProb
- the value for thenoSpeechProb
record component
-
-
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)
. -
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
seek
Returns the value of theseek
record component.- Returns:
- the value of the
seek
record component
-
start
Returns the value of thestart
record component.- Returns:
- the value of the
start
record component
-
end
Returns the value of theend
record component.- Returns:
- the value of the
end
record component
-
text
Returns the value of thetext
record component.- Returns:
- the value of the
text
record component
-
tokens
Returns the value of thetokens
record component.- Returns:
- the value of the
tokens
record component
-
temperature
Returns the value of thetemperature
record component.- Returns:
- the value of the
temperature
record component
-
avgLogprob
Returns the value of theavgLogprob
record component.- Returns:
- the value of the
avgLogprob
record component
-
compressionRatio
Returns the value of thecompressionRatio
record component.- Returns:
- the value of the
compressionRatio
record component
-
noSpeechProb
Returns the value of thenoSpeechProb
record component.- Returns:
- the value of the
noSpeechProb
record component
-