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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theavgLogprobrecord component.Returns the value of thecompressionRatiorecord component.end()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of thenoSpeechProbrecord component.seek()Returns the value of theseekrecord component.start()Returns the value of thestartrecord component.Returns the value of thetemperaturerecord component.text()Returns the value of thetextrecord component.tokens()Returns the value of thetokensrecord component.final StringtoString()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 aSegmentrecord class.- Parameters:
id- the value for theidrecord componentseek- the value for theseekrecord componentstart- the value for thestartrecord componentend- the value for theendrecord componenttext- the value for thetextrecord componenttokens- the value for thetokensrecord componenttemperature- the value for thetemperaturerecord componentavgLogprob- the value for theavgLogprobrecord componentcompressionRatio- the value for thecompressionRatiorecord componentnoSpeechProb- the value for thenoSpeechProbrecord 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 theidrecord component.- Returns:
- the value of the
idrecord component
-
seek
Returns the value of theseekrecord component.- Returns:
- the value of the
seekrecord component
-
start
Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-
end
Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
tokens
Returns the value of thetokensrecord component.- Returns:
- the value of the
tokensrecord component
-
temperature
Returns the value of thetemperaturerecord component.- Returns:
- the value of the
temperaturerecord component
-
avgLogprob
Returns the value of theavgLogprobrecord component.- Returns:
- the value of the
avgLogprobrecord component
-
compressionRatio
Returns the value of thecompressionRatiorecord component.- Returns:
- the value of the
compressionRatiorecord component
-
noSpeechProb
Returns the value of thenoSpeechProbrecord component.- Returns:
- the value of the
noSpeechProbrecord component
-