Class TranscriptionTextDoneEvent
-
- All Implemented Interfaces:
public final class TranscriptionTextDoneEvent
Emitted when the transcription is complete. Contains the complete transcription text. Only emitted when you create a transcription with the
Stream
parameter set totrue
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
TranscriptionTextDoneEvent.Builder
A builder for TranscriptionTextDoneEvent.
public final class
TranscriptionTextDoneEvent.Logprob
-
Method Summary
Modifier and Type Method Description final String
text()
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 JsonField<String>
_text()
Returns the raw JSON value of text. final JsonField<List<TranscriptionTextDoneEvent.Logprob>>
_logprobs()
Returns the raw JSON value of logprobs. final Map<String, JsonValue>
_additionalProperties()
final TranscriptionTextDoneEvent.Builder
toBuilder()
final TranscriptionTextDoneEvent
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static TranscriptionTextDoneEvent.Builder
builder()
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
.
-
_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.
-
_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()
-
-
-
-