class

OpenAI::RealtimeCallCreateRequest

Inherits JSON::Serializable < Reference < Object

Parameters required to initiate a realtime call and receive the SDP answer needed to complete a WebRTC peer connection. Provide an SDP offer generated by your client and optionally configure the session that will answer the call.

Constructors

new(sdp : String = "", session : RealtimeCallCreateRequestSession | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

sdp

WebRTC Session Description Protocol (SDP) offer generated by the caller.

Source
sdp=(sdp : String)

WebRTC Session Description Protocol (SDP) offer generated by the caller.

Source
session

Optional session configuration to apply before the realtime session is created. Use the same parameters you would send in a create client secret request.

Source
session=(session : RealtimeCallCreateRequestSession | Nil)

Optional session configuration to apply before the realtime session is created. Use the same parameters you would send in a create client secret request.

Source