Class Transcription
-
- All Implemented Interfaces:
public final class Transcription
Represents a transcription response returned by model, based on the provided input.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
Transcription.Builder
A builder for Transcription.
public final class
Transcription.Logprob
-
Method Summary
Modifier and Type Method Description final String
text()
The transcribed text. final Optional<List<Transcription.Logprob>>
logprobs()
The log probabilities of the tokens in the transcription. 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 Map<String, JsonValue>
_additionalProperties()
final Transcription.Builder
toBuilder()
final Transcription
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static Transcription.Builder
builder()
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-transcribe
andgpt-4o-mini-transcribe
iflogprobs
is added to theinclude
array.
-
_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.
-
_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()
-
-
-
-