Class TranscriptionTextDoneEvent
-
- All Implemented Interfaces:
public final class TranscriptionTextDoneEventEmitted when the transcription is complete. Contains the complete transcription text. Only emitted when you create a transcription with the
Streamparameter set totrue.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classTranscriptionTextDoneEvent.BuilderA builder for TranscriptionTextDoneEvent.
public final classTranscriptionTextDoneEvent.Logprobpublic final classTranscriptionTextDoneEvent.UsageUsage statistics for models billed by token usage.
-
Method Summary
Modifier and Type Method Description final Stringtext()The text that was transcribed. final JsonValue_type()The type of the event. final Optional<List<TranscriptionTextDoneEvent.Logprob>>logprobs()The log probabilities of the individual tokens in the transcription. final Optional<TranscriptionTextDoneEvent.Usage>usage()Usage statistics for models billed by token usage. final JsonField<String>_text()Returns the raw JSON value of text. final JsonField<List<TranscriptionTextDoneEvent.Logprob>>_logprobs()Returns the raw JSON value of logprobs. final JsonField<TranscriptionTextDoneEvent.Usage>_usage()Returns the raw JSON value of usage. final Map<String, JsonValue>_additionalProperties()final TranscriptionTextDoneEvent.BuildertoBuilder()final TranscriptionTextDoneEventvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static TranscriptionTextDoneEvent.Builderbuilder()Returns a mutable builder for constructing an instance of TranscriptionTextDoneEvent. -
-
Method Detail
-
_type
final JsonValue _type()
The type of the event. Always
transcript.text.done.Expected to always return the following:
JsonValue.from("transcript.text.done")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
logprobs
final Optional<List<TranscriptionTextDoneEvent.Logprob>> logprobs()
The log probabilities of the individual tokens in the transcription. Only included if you create a transcription with the
include[]parameter set tologprobs.
-
usage
final Optional<TranscriptionTextDoneEvent.Usage> usage()
Usage statistics for models billed by token usage.
-
_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<TranscriptionTextDoneEvent.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<TranscriptionTextDoneEvent.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 TranscriptionTextDoneEvent.Builder toBuilder()
-
validate
final TranscriptionTextDoneEvent validate()
-
builder
final static TranscriptionTextDoneEvent.Builder builder()
Returns a mutable builder for constructing an instance of TranscriptionTextDoneEvent.
The following fields are required:
.text()
-
-
-
-