Class TranscriptionTextDeltaEvent
-
- All Implemented Interfaces:
public final class TranscriptionTextDeltaEvent
Emitted when there is an additional text delta. This is also the first event emitted when the transcription starts. 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
TranscriptionTextDeltaEvent.Builder
A builder for TranscriptionTextDeltaEvent.
public final class
TranscriptionTextDeltaEvent.Logprob
-
Method Summary
Modifier and Type Method Description final String
delta()
The text delta that was additionally transcribed. final JsonValue
_type()
The type of the event. final Optional<List<TranscriptionTextDeltaEvent.Logprob>>
logprobs()
The log probabilities of the delta. final JsonField<String>
_delta()
Returns the raw JSON value of delta. final JsonField<List<TranscriptionTextDeltaEvent.Logprob>>
_logprobs()
Returns the raw JSON value of logprobs. final Map<String, JsonValue>
_additionalProperties()
final TranscriptionTextDeltaEvent.Builder
toBuilder()
final TranscriptionTextDeltaEvent
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static TranscriptionTextDeltaEvent.Builder
builder()
Returns a mutable builder for constructing an instance of TranscriptionTextDeltaEvent. -
-
Method Detail
-
_type
final JsonValue _type()
The type of the event. Always
transcript.text.delta
.Expected to always return the following:
JsonValue.from("transcript.text.delta")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
logprobs
final Optional<List<TranscriptionTextDeltaEvent.Logprob>> logprobs()
The log probabilities of the delta. Only included if you create a transcription with the
include[]
parameter set tologprobs
.
-
_delta
final JsonField<String> _delta()
Returns the raw JSON value of delta.
Unlike delta, this method doesn't throw if the JSON field has an unexpected type.
-
_logprobs
final JsonField<List<TranscriptionTextDeltaEvent.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 TranscriptionTextDeltaEvent.Builder toBuilder()
-
validate
final TranscriptionTextDeltaEvent validate()
-
builder
final static TranscriptionTextDeltaEvent.Builder builder()
Returns a mutable builder for constructing an instance of TranscriptionTextDeltaEvent.
The following fields are required:
.delta()
-
-
-
-