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()Unique identifier of the segment. final JsonField<Double>_avgLogprob()Average logprob of the segment. final JsonField<Double>_compressionRatio()Compression ratio of the segment. final JsonField<Double>_end()End time of the segment in seconds. final JsonField<Double>_noSpeechProb()Probability of no speech in the segment. final JsonField<Long>_seek()Seek offset of the segment. final JsonField<Double>_start()Start time of the segment in seconds. final JsonField<Double>_temperature()Temperature parameter used for generating the segment. final JsonField<String>_text()Text content of the segment. final JsonField<List<Long>>_tokens()Array of token IDs for the text content. final Map<String, JsonValue>_additionalProperties()final TranscriptionSegmentvalidate()final TranscriptionSegment.BuildertoBuilder()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.
-
_avgLogprob
final JsonField<Double> _avgLogprob()
Average logprob of the segment. If the value is lower than -1, consider the logprobs failed.
-
_compressionRatio
final JsonField<Double> _compressionRatio()
Compression ratio of the segment. If the value is greater than 2.4, consider the compression failed.
-
_noSpeechProb
final JsonField<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 JsonField<Double> _temperature()
Temperature parameter used for generating the segment.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
validate
final TranscriptionSegment validate()
-
toBuilder
final TranscriptionSegment.Builder toBuilder()
-
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()
-
-
-
-