Class ClientSecretCreateResponse.Session
-
- All Implemented Interfaces:
public final class ClientSecretCreateResponse.Session
The session configuration for either a realtime or transcription session.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
ClientSecretCreateResponse.Session.Visitor
An interface that defines how to map each variant of Session to a value of type T.
-
Method Summary
-
-
Method Detail
-
realtimeSessionCreateResponse
final Optional<RealtimeSessionCreateResponse> realtimeSessionCreateResponse()
A new Realtime session configuration, with an ephemeral key. Default TTL for keys is one minute.
-
realtimeTranscriptionSessionCreateResponse
final Optional<RealtimeTranscriptionSessionCreateResponse> 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.
-
isRealtimeSessionCreateResponse
final Boolean isRealtimeSessionCreateResponse()
-
isRealtimeTranscriptionSessionCreateResponse
final Boolean isRealtimeTranscriptionSessionCreateResponse()
-
asRealtimeSessionCreateResponse
final RealtimeSessionCreateResponse asRealtimeSessionCreateResponse()
A new Realtime session configuration, with an ephemeral key. Default TTL for keys is one minute.
-
asRealtimeTranscriptionSessionCreateResponse
final RealtimeTranscriptionSessionCreateResponse asRealtimeTranscriptionSessionCreateResponse()
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.
-
accept
final <T extends Any> T accept(ClientSecretCreateResponse.Session.Visitor<T> visitor)
-
validate
final ClientSecretCreateResponse.Session validate()
-
ofRealtimeSessionCreateResponse
final static ClientSecretCreateResponse.Session ofRealtimeSessionCreateResponse(RealtimeSessionCreateResponse realtimeSessionCreateResponse)
A new Realtime session configuration, with an ephemeral key. Default TTL for keys is one minute.
-
ofRealtimeTranscriptionSessionCreateResponse
final static ClientSecretCreateResponse.Session ofRealtimeTranscriptionSessionCreateResponse(RealtimeTranscriptionSessionCreateResponse 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.
-
-
-
-