Class TranscriptionSegment
-
- All Implemented Interfaces:
public final class TranscriptionSegment
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
TranscriptionSegment.Builder
A builder for TranscriptionSegment.
-
Method Summary
Modifier and Type Method Description final Long
id()
Unique identifier of the segment. final Float
avgLogprob()
Average logprob of the segment. final Float
compressionRatio()
Compression ratio of the segment. final Float
end()
End time of the segment in seconds. final Float
noSpeechProb()
Probability of no speech in the segment. final Long
seek()
Seek offset of the segment. final Float
start()
Start time of the segment in seconds. final Float
temperature()
Temperature parameter used for generating the segment. final String
text()
Text content of the segment. final List<Long>
tokens()
Array of token IDs for the text content. final JsonField<Long>
_id()
Returns the raw JSON value of id. final JsonField<Float>
_avgLogprob()
Returns the raw JSON value of avgLogprob. final JsonField<Float>
_compressionRatio()
Returns the raw JSON value of compressionRatio. final JsonField<Float>
_end()
Returns the raw JSON value of end. final JsonField<Float>
_noSpeechProb()
Returns the raw JSON value of noSpeechProb. final JsonField<Long>
_seek()
Returns the raw JSON value of seek. final JsonField<Float>
_start()
Returns the raw JSON value of start. final JsonField<Float>
_temperature()
Returns the raw JSON value of temperature. final JsonField<String>
_text()
Returns the raw JSON value of text. final JsonField<List<Long>>
_tokens()
Returns the raw JSON value of tokens. final Map<String, JsonValue>
_additionalProperties()
final TranscriptionSegment.Builder
toBuilder()
final TranscriptionSegment
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static TranscriptionSegment.Builder
builder()
Returns a mutable builder for constructing an instance of TranscriptionSegment. -
-
Method Detail
-
avgLogprob
final Float avgLogprob()
Average logprob of the segment. If the value is lower than -1, consider the logprobs failed.
-
compressionRatio
final Float compressionRatio()
Compression ratio of the segment. If the value is greater than 2.4, consider the compression failed.
-
noSpeechProb
final Float 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.
-
temperature
final Float temperature()
Temperature parameter used for generating the segment.
-
_id
final JsonField<Long> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_avgLogprob
final JsonField<Float> _avgLogprob()
Returns the raw JSON value of avgLogprob.
Unlike avgLogprob, this method doesn't throw if the JSON field has an unexpected type.
-
_compressionRatio
final JsonField<Float> _compressionRatio()
Returns the raw JSON value of compressionRatio.
Unlike compressionRatio, this method doesn't throw if the JSON field has an unexpected type.
-
_end
final JsonField<Float> _end()
Returns the raw JSON value of end.
Unlike end, this method doesn't throw if the JSON field has an unexpected type.
-
_noSpeechProb
final JsonField<Float> _noSpeechProb()
Returns the raw JSON value of noSpeechProb.
Unlike noSpeechProb, this method doesn't throw if the JSON field has an unexpected type.
-
_seek
final JsonField<Long> _seek()
Returns the raw JSON value of seek.
Unlike seek, this method doesn't throw if the JSON field has an unexpected type.
-
_start
final JsonField<Float> _start()
Returns the raw JSON value of start.
Unlike start, this method doesn't throw if the JSON field has an unexpected type.
-
_temperature
final JsonField<Float> _temperature()
Returns the raw JSON value of temperature.
Unlike temperature, this method doesn't throw if the JSON field has an unexpected type.
-
_text
final JsonField<String> _text()
Returns the raw JSON value of text.
Unlike text, this method doesn't throw if the JSON field has an unexpected type.
-
_tokens
final JsonField<List<Long>> _tokens()
Returns the raw JSON value of tokens.
Unlike tokens, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final TranscriptionSegment.Builder toBuilder()
-
validate
final TranscriptionSegment validate()
-
builder
final static TranscriptionSegment.Builder builder()
Returns a mutable builder for constructing an instance of TranscriptionSegment.
The following fields are required:
.id() .avgLogprob() .compressionRatio() .end() .noSpeechProb() .seek() .start() .temperature() .text() .tokens()
-
-
-
-