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 Double
avgLogprob()
Average logprob of the segment. final Double
compressionRatio()
Compression ratio of the segment. final Double
end()
End time of the segment in seconds. final Double
noSpeechProb()
Probability of no speech in the segment. final Long
seek()
Seek offset of the segment. final Double
start()
Start time of the segment in seconds. final Double
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()
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 TranscriptionSegment
validate()
final TranscriptionSegment.Builder
toBuilder()
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 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_logprob
is 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_logprob
is 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()
-
-
-
-