Class RealtimeTranscriptionSessionCreateResponse
-
- All Implemented Interfaces:
public final class RealtimeTranscriptionSessionCreateResponseA Realtime transcription session configuration object.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRealtimeTranscriptionSessionCreateResponse.BuilderA builder for RealtimeTranscriptionSessionCreateResponse.
public final classRealtimeTranscriptionSessionCreateResponse.AudioConfiguration for input audio for the session.
public final classRealtimeTranscriptionSessionCreateResponse.Include
-
Method Summary
Modifier and Type Method Description final Stringid()Unique identifier for the session that looks like sess_1234567890abcdef.final Stringobject_()The object type. final JsonValue_type()The type of session. final Optional<RealtimeTranscriptionSessionCreateResponse.Audio>audio()Configuration for input audio for the session. final Optional<Long>expiresAt()Expiration timestamp for the session, in seconds since epoch. final Optional<List<RealtimeTranscriptionSessionCreateResponse.Include>>include()Additional fields to include in server outputs. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<String>_object_()Returns the raw JSON value of object_. final JsonField<RealtimeTranscriptionSessionCreateResponse.Audio>_audio()Returns the raw JSON value of audio. final JsonField<Long>_expiresAt()Returns the raw JSON value of expiresAt. final JsonField<List<RealtimeTranscriptionSessionCreateResponse.Include>>_include()Returns the raw JSON value of include. final Map<String, JsonValue>_additionalProperties()final RealtimeTranscriptionSessionCreateResponse.BuildertoBuilder()final RealtimeTranscriptionSessionCreateResponsevalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static RealtimeTranscriptionSessionCreateResponse.Builderbuilder()Returns a mutable builder for constructing an instance of RealtimeTranscriptionSessionCreateResponse. -
-
Method Detail
-
_type
final JsonValue _type()
The type of session. Always
transcriptionfor transcription sessions.Expected to always return the following:
JsonValue.from("transcription")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
audio
final Optional<RealtimeTranscriptionSessionCreateResponse.Audio> audio()
Configuration for input audio for the session.
-
expiresAt
final Optional<Long> expiresAt()
Expiration timestamp for the session, in seconds since epoch.
-
include
final Optional<List<RealtimeTranscriptionSessionCreateResponse.Include>> include()
Additional fields to include in server outputs.
item.input_audio_transcription.logprobs: Include logprobs for input audio transcription.
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_object_
final JsonField<String> _object_()
Returns the raw JSON value of object_.
Unlike object_, this method doesn't throw if the JSON field has an unexpected type.
-
_audio
final JsonField<RealtimeTranscriptionSessionCreateResponse.Audio> _audio()
Returns the raw JSON value of audio.
Unlike audio, this method doesn't throw if the JSON field has an unexpected type.
-
_expiresAt
final JsonField<Long> _expiresAt()
Returns the raw JSON value of expiresAt.
Unlike expiresAt, this method doesn't throw if the JSON field has an unexpected type.
-
_include
final JsonField<List<RealtimeTranscriptionSessionCreateResponse.Include>> _include()
Returns the raw JSON value of include.
Unlike include, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final RealtimeTranscriptionSessionCreateResponse.Builder toBuilder()
-
validate
final RealtimeTranscriptionSessionCreateResponse validate()
-
builder
final static RealtimeTranscriptionSessionCreateResponse.Builder builder()
Returns a mutable builder for constructing an instance of RealtimeTranscriptionSessionCreateResponse.
The following fields are required:
.id() .object_()
-
-
-
-