OpenAIRealtimeWebRTCClient
(Experimental) Client for OpenAI Realtime API.
Parameters:
Static Methods
get_factory
Parameters:
Returns:
Instance Attributes
logger
Get the logger for the OpenAI Realtime API.
Instance Methods
connect
In the case of WebRTC, we pass connection information over the websocket, so that javascript on the other end of websocket open actual connection to OpenAI
read_events
send_audio
in case of WebRTC, audio is already sent by js client, so we just queue it in order to be logged.
Parameters:
send_function_result
Parameters:
send_text
Parameters:
session_init_data
session_update
In the case of WebRTC we can not send it directly, but we can send it to the javascript over the websocket, and rely on it to send session update to OpenAI Parameters:
truncate_audio
Parameters: