Class TranscriptionSegment.Builder
-
- All Implemented Interfaces:
public final class TranscriptionSegment.Builder
A builder for TranscriptionSegment.
-
-
Method Summary
-
-
Method Detail
-
id
final TranscriptionSegment.Builder id(Long id)
Unique identifier of the segment.
-
id
final TranscriptionSegment.Builder id(JsonField<Long> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
avgLogprob
final TranscriptionSegment.Builder avgLogprob(Float avgLogprob)
Average logprob of the segment. If the value is lower than -1, consider the logprobs failed.
-
avgLogprob
final TranscriptionSegment.Builder avgLogprob(JsonField<Float> avgLogprob)
Sets Builder.avgLogprob to an arbitrary JSON value.
You should usually call Builder.avgLogprob with a well-typed Float value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
compressionRatio
final TranscriptionSegment.Builder compressionRatio(Float compressionRatio)
Compression ratio of the segment. If the value is greater than 2.4, consider the compression failed.
-
compressionRatio
final TranscriptionSegment.Builder compressionRatio(JsonField<Float> compressionRatio)
Sets Builder.compressionRatio to an arbitrary JSON value.
You should usually call Builder.compressionRatio with a well-typed Float value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
end
final TranscriptionSegment.Builder end(Float end)
End time of the segment in seconds.
-
end
final TranscriptionSegment.Builder end(JsonField<Float> end)
Sets Builder.end to an arbitrary JSON value.
You should usually call Builder.end with a well-typed Float value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
noSpeechProb
final TranscriptionSegment.Builder noSpeechProb(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.
-
noSpeechProb
final TranscriptionSegment.Builder noSpeechProb(JsonField<Float> noSpeechProb)
Sets Builder.noSpeechProb to an arbitrary JSON value.
You should usually call Builder.noSpeechProb with a well-typed Float value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
seek
final TranscriptionSegment.Builder seek(Long seek)
Seek offset of the segment.
-
seek
final TranscriptionSegment.Builder seek(JsonField<Long> seek)
Sets Builder.seek to an arbitrary JSON value.
You should usually call Builder.seek with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
start
final TranscriptionSegment.Builder start(Float start)
Start time of the segment in seconds.
-
start
final TranscriptionSegment.Builder start(JsonField<Float> start)
Sets Builder.start to an arbitrary JSON value.
You should usually call Builder.start with a well-typed Float value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
temperature
final TranscriptionSegment.Builder temperature(Float temperature)
Temperature parameter used for generating the segment.
-
temperature
final TranscriptionSegment.Builder temperature(JsonField<Float> temperature)
Sets Builder.temperature to an arbitrary JSON value.
You should usually call Builder.temperature with a well-typed Float value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
text
final TranscriptionSegment.Builder text(String text)
Text content of the segment.
-
text
final TranscriptionSegment.Builder text(JsonField<String> text)
Sets Builder.text to an arbitrary JSON value.
You should usually call Builder.text with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
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)
Sets Builder.tokens to an arbitrary JSON value.
You should usually call Builder.tokens with a well-typed
List<Long>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addToken
final TranscriptionSegment.Builder addToken(Long token)
-
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()
Returns an immutable instance of TranscriptionSegment.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .avgLogprob() .compressionRatio() .end() .noSpeechProb() .seek() .start() .temperature() .text() .tokens()
-
-
-
-