Class TranscriptionTextDeltaEvent
-
- All Implemented Interfaces:
public final class TranscriptionTextDeltaEventEmitted 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
Streamparameter set totrue.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classTranscriptionTextDeltaEvent.BuilderA builder for TranscriptionTextDeltaEvent.
public final classTranscriptionTextDeltaEvent.Logprob
-
Method Summary
Modifier and Type Method Description final Stringdelta()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 Optional<String>segmentId()Identifier of the diarized segment that this delta belongs to. 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 JsonField<String>_segmentId()Returns the raw JSON value of segmentId. final Map<String, JsonValue>_additionalProperties()final TranscriptionTextDeltaEvent.BuildertoBuilder()final TranscriptionTextDeltaEventvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static TranscriptionTextDeltaEvent.Builderbuilder()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.
-
segmentId
final Optional<String> segmentId()
Identifier of the diarized segment that this delta belongs to. Only present when using
gpt-4o-transcribe-diarize.
-
_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.
-
_segmentId
final JsonField<String> _segmentId()
Returns the raw JSON value of segmentId.
Unlike segmentId, 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()
-
-
-
-