Class Transcription
-
- All Implemented Interfaces:
public final class TranscriptionRepresents a transcription response returned by model, based on the provided input.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classTranscription.BuilderA builder for Transcription.
public final classTranscription.Logprobpublic final classTranscription.UsageToken usage statistics for the request.
-
Method Summary
Modifier and Type Method Description final Stringtext()The transcribed text. final Optional<List<Transcription.Logprob>>logprobs()The log probabilities of the tokens in the transcription. final Optional<Transcription.Usage>usage()Token usage statistics for the request. final JsonField<String>_text()Returns the raw JSON value of text. final JsonField<List<Transcription.Logprob>>_logprobs()Returns the raw JSON value of logprobs. final JsonField<Transcription.Usage>_usage()Returns the raw JSON value of usage. final Map<String, JsonValue>_additionalProperties()final Transcription.BuildertoBuilder()final Transcriptionvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static Transcription.Builderbuilder()Returns a mutable builder for constructing an instance of Transcription. -
-
Method Detail
-
logprobs
final Optional<List<Transcription.Logprob>> logprobs()
The log probabilities of the tokens in the transcription. Only returned with the models
gpt-4o-transcribeandgpt-4o-mini-transcribeiflogprobsis added to theincludearray.
-
usage
final Optional<Transcription.Usage> usage()
Token usage statistics for the request.
-
_text
final JsonField<String> _text()
Returns the raw JSON value of text.
Unlike text, this method doesn't throw if the JSON field has an unexpected type.
-
_logprobs
final JsonField<List<Transcription.Logprob>> _logprobs()
Returns the raw JSON value of logprobs.
Unlike logprobs, this method doesn't throw if the JSON field has an unexpected type.
-
_usage
final JsonField<Transcription.Usage> _usage()
Returns the raw JSON value of usage.
Unlike usage, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final Transcription.Builder toBuilder()
-
validate
final Transcription validate()
-
builder
final static Transcription.Builder builder()
Returns a mutable builder for constructing an instance of Transcription.
The following fields are required:
.text()
-
-
-
-