Class TranscriptionSegment
-
- All Implemented Interfaces:
public final class TranscriptionSegment
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classTranscriptionSegment.BuilderA builder for TranscriptionSegment.
-
Method Summary
Modifier and Type Method Description final Longid()Unique identifier of the segment. final DoubleavgLogprob()Average logprob of the segment. final DoublecompressionRatio()Compression ratio of the segment. final Doubleend()End time of the segment in seconds. final DoublenoSpeechProb()Probability of no speech in the segment. final Longseek()Seek offset of the segment. final Doublestart()Start time of the segment in seconds. final Doubletemperature()Temperature parameter used for generating the segment. final Stringtext()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<Double>_avgLogprob()Returns the raw JSON value of avgLogprob. final JsonField<Double>_compressionRatio()Returns the raw JSON value of compressionRatio. final JsonField<Double>_end()Returns the raw JSON value of end. final JsonField<Double>_noSpeechProb()Returns the raw JSON value of noSpeechProb. final JsonField<Long>_seek()Returns the raw JSON value of seek. final JsonField<Double>_start()Returns the raw JSON value of start. final JsonField<Double>_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.BuildertoBuilder()final TranscriptionSegmentvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static TranscriptionSegment.Builderbuilder()Returns a mutable builder for constructing an instance of TranscriptionSegment. -
-
Method Detail
-
avgLogprob
final Double avgLogprob()
Average logprob of the segment. If the value is lower than -1, consider the logprobs failed.
-
compressionRatio
final Double compressionRatio()
Compression ratio of the segment. If the value is greater than 2.4, consider the compression failed.
-
noSpeechProb
final Double noSpeechProb()
Probability of no speech in the segment. If the value is higher than 1.0 and the
avg_logprobis below -1, consider this segment silent.
-
temperature
final Double 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<Double> _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<Double> _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<Double> _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<Double> _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<Double> _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<Double> _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()
-
-
-
-