Class RealtimeTranscriptionSessionCreateResponse
-
- All Implemented Interfaces:
public final class RealtimeTranscriptionSessionCreateResponse
A new Realtime transcription session configuration.
When a session is created on the server via REST API, the session object also contains an ephemeral key. Default TTL for keys is 10 minutes. This property is not present when a session is updated via the WebSocket API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
RealtimeTranscriptionSessionCreateResponse.Builder
A builder for RealtimeTranscriptionSessionCreateResponse.
public final class
RealtimeTranscriptionSessionCreateResponse.Modality
-
Method Summary
-
-
Method Detail
-
clientSecret
final RealtimeTranscriptionSessionClientSecret clientSecret()
Ephemeral key returned by the API. Only present when the session is created on the server via REST API.
-
inputAudioFormat
final Optional<String> inputAudioFormat()
The format of input audio. Options are
pcm16
,g711_ulaw
, org711_alaw
.
-
inputAudioTranscription
final Optional<RealtimeTranscriptionSessionInputAudioTranscription> inputAudioTranscription()
Configuration of the transcription model.
-
modalities
final Optional<List<RealtimeTranscriptionSessionCreateResponse.Modality>> modalities()
The set of modalities the model can respond with. To disable audio, set this to "text".
-
turnDetection
final Optional<RealtimeTranscriptionSessionTurnDetection> turnDetection()
Configuration for turn detection. Can be set to
null
to turn off. Server VAD means that the model will detect the start and end of speech based on audio volume and respond at the end of user speech.
-
_clientSecret
final JsonField<RealtimeTranscriptionSessionClientSecret> _clientSecret()
Returns the raw JSON value of clientSecret.
Unlike clientSecret, this method doesn't throw if the JSON field has an unexpected type.
-
_inputAudioFormat
final JsonField<String> _inputAudioFormat()
Returns the raw JSON value of inputAudioFormat.
Unlike inputAudioFormat, this method doesn't throw if the JSON field has an unexpected type.
-
_inputAudioTranscription
final JsonField<RealtimeTranscriptionSessionInputAudioTranscription> _inputAudioTranscription()
Returns the raw JSON value of inputAudioTranscription.
Unlike inputAudioTranscription, this method doesn't throw if the JSON field has an unexpected type.
-
_modalities
final JsonField<List<RealtimeTranscriptionSessionCreateResponse.Modality>> _modalities()
Returns the raw JSON value of modalities.
Unlike modalities, this method doesn't throw if the JSON field has an unexpected type.
-
_turnDetection
final JsonField<RealtimeTranscriptionSessionTurnDetection> _turnDetection()
Returns the raw JSON value of turnDetection.
Unlike turnDetection, 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:
.clientSecret()
-
-
-
-