Class Transcription.Builder
-
- All Implemented Interfaces:
public final class Transcription.Builder
A builder for Transcription.
-
-
Method Summary
-
-
Method Detail
-
text
final Transcription.Builder text(String text)
The transcribed text.
-
text
final Transcription.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.
-
logprobs
final Transcription.Builder logprobs(List<Transcription.Logprob> logprobs)
The log probabilities of the tokens in the transcription. Only returned with the models
gpt-4o-transcribe
andgpt-4o-mini-transcribe
iflogprobs
is added to theinclude
array.
-
logprobs
final Transcription.Builder logprobs(JsonField<List<Transcription.Logprob>> logprobs)
Sets Builder.logprobs to an arbitrary JSON value.
You should usually call Builder.logprobs with a well-typed
List<Logprob>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addLogprob
final Transcription.Builder addLogprob(Transcription.Logprob logprob)
-
additionalProperties
final Transcription.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final Transcription.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final Transcription.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final Transcription.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final Transcription.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final Transcription build()
Returns an immutable instance of Transcription.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.text()
-
-
-
-