Class TranscriptionSegment.Builder
-
- All Implemented Interfaces:
public final class TranscriptionSegment.Builder
A builder for TranscriptionSegment.
-
-
Method Summary
Modifier and Type Method Description final TranscriptionSegment.Builder
id(Long id)
Unique identifier of the segment. final TranscriptionSegment.Builder
id(JsonField<Long> id)
Unique identifier of the segment. final TranscriptionSegment.Builder
avgLogprob(Double avgLogprob)
Average logprob of the segment. final TranscriptionSegment.Builder
avgLogprob(JsonField<Double> avgLogprob)
Average logprob of the segment. final TranscriptionSegment.Builder
compressionRatio(Double compressionRatio)
Compression ratio of the segment. final TranscriptionSegment.Builder
compressionRatio(JsonField<Double> compressionRatio)
Compression ratio of the segment. final TranscriptionSegment.Builder
end(Double end)
End time of the segment in seconds. final TranscriptionSegment.Builder
end(JsonField<Double> end)
End time of the segment in seconds. final TranscriptionSegment.Builder
noSpeechProb(Double noSpeechProb)
Probability of no speech in the segment. final TranscriptionSegment.Builder
noSpeechProb(JsonField<Double> noSpeechProb)
Probability of no speech in the segment. final TranscriptionSegment.Builder
seek(Long seek)
Seek offset of the segment. final TranscriptionSegment.Builder
seek(JsonField<Long> seek)
Seek offset of the segment. final TranscriptionSegment.Builder
start(Double start)
Start time of the segment in seconds. final TranscriptionSegment.Builder
start(JsonField<Double> start)
Start time of the segment in seconds. final TranscriptionSegment.Builder
temperature(Double temperature)
Temperature parameter used for generating the segment. final TranscriptionSegment.Builder
temperature(JsonField<Double> temperature)
Temperature parameter used for generating the segment. final TranscriptionSegment.Builder
text(String text)
Text content of the segment. final TranscriptionSegment.Builder
text(JsonField<String> text)
Text content of the segment. final TranscriptionSegment.Builder
tokens(List<Long> tokens)
Array of token IDs for the text content. final TranscriptionSegment.Builder
tokens(JsonField<List<Long>> tokens)
Array of token IDs for the text content. final TranscriptionSegment.Builder
addToken(Long token)
Array of token IDs for the text content. final TranscriptionSegment.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final TranscriptionSegment.Builder
putAdditionalProperty(String key, JsonValue value)
final TranscriptionSegment.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final TranscriptionSegment.Builder
removeAdditionalProperty(String key)
final TranscriptionSegment.Builder
removeAllAdditionalProperties(Set<String> keys)
final TranscriptionSegment
build()
-
-
Method Detail
-
id
final TranscriptionSegment.Builder id(Long id)
Unique identifier of the segment.
-
id
final TranscriptionSegment.Builder id(JsonField<Long> id)
Unique identifier of the segment.
-
avgLogprob
final TranscriptionSegment.Builder avgLogprob(Double avgLogprob)
Average logprob of the segment. If the value is lower than -1, consider the logprobs failed.
-
avgLogprob
final TranscriptionSegment.Builder avgLogprob(JsonField<Double> avgLogprob)
Average logprob of the segment. If the value is lower than -1, consider the logprobs failed.
-
compressionRatio
final TranscriptionSegment.Builder compressionRatio(Double compressionRatio)
Compression ratio of the segment. If the value is greater than 2.4, consider the compression failed.
-
compressionRatio
final TranscriptionSegment.Builder compressionRatio(JsonField<Double> compressionRatio)
Compression ratio of the segment. If the value is greater than 2.4, consider the compression failed.
-
end
final TranscriptionSegment.Builder end(Double end)
End time of the segment in seconds.
-
end
final TranscriptionSegment.Builder end(JsonField<Double> end)
End time of the segment in seconds.
-
noSpeechProb
final TranscriptionSegment.Builder noSpeechProb(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.
-
noSpeechProb
final TranscriptionSegment.Builder noSpeechProb(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.
-
seek
final TranscriptionSegment.Builder seek(Long seek)
Seek offset of the segment.
-
seek
final TranscriptionSegment.Builder seek(JsonField<Long> seek)
Seek offset of the segment.
-
start
final TranscriptionSegment.Builder start(Double start)
Start time of the segment in seconds.
-
start
final TranscriptionSegment.Builder start(JsonField<Double> start)
Start time of the segment in seconds.
-
temperature
final TranscriptionSegment.Builder temperature(Double temperature)
Temperature parameter used for generating the segment.
-
temperature
final TranscriptionSegment.Builder temperature(JsonField<Double> temperature)
Temperature parameter used for generating the segment.
-
text
final TranscriptionSegment.Builder text(String text)
Text content of the segment.
-
text
final TranscriptionSegment.Builder text(JsonField<String> text)
Text content of the segment.
-
tokens
final TranscriptionSegment.Builder tokens(List<Long> tokens)
Array of token IDs for the text content.
-
tokens
final TranscriptionSegment.Builder tokens(JsonField<List<Long>> tokens)
Array of token IDs for the text content.
-
addToken
final TranscriptionSegment.Builder addToken(Long token)
Array of token IDs for the text content.
-
additionalProperties
final TranscriptionSegment.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final TranscriptionSegment.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final TranscriptionSegment.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final TranscriptionSegment.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final TranscriptionSegment.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final TranscriptionSegment build()
-
-
-
-