LiveSession
Represents a live WebSocket session capable of streaming content to and from the server.
Represents a live WebSocket session capable of streaming content to and from the server.
A Live API session of the platform SDK. The messages of the server are buffered from the moment the session opens until they are received. resumeSession opens a new session of the platform SDK and closes the current one, as the Android SDK does.
The platforms other than Android have no audio conversation of the SDK's own (the Android SDK records and plays the audio itself): startAudioConversation does nothing there, so stream audio with sendAudioRealtime and play the audio parts the server sends.
Functions
Indicates whether an audio conversation is being used for this session object.
Indicates whether an audio conversation is being used for this session object.
Indicates whether an audio conversation is being used for this session object.
Receives responses from the model for both streaming and standard requests.
Receives responses from the model for both streaming and standard requests.
Receives responses from the model for both streaming and standard requests.
Resumes an existing live session with the server.
Resumes an existing live session with the server.
Resumes an existing live session with the server.
Streams client data to the model.
Streams text data to the model.
Streams client data to the model.
Streams text data to the model.
Sends an audio input stream to the model, using the realtime API.
Sends an audio input stream to the model, using the realtime API.
Sends an audio input stream to the model, using the realtime API.
Sends function calling responses to the model.
Sends function calling responses to the model.
Sends function calling responses to the model.
Manually marks the start of user activity, using the realtime API.
Manually marks the start of user activity, using the realtime API.
Manually marks the start of user activity, using the realtime API.
Manually marks the end of user activity, using the realtime API.
Manually marks the end of user activity, using the realtime API.
Manually marks the end of user activity, using the realtime API.
Sends a text input stream to the model, using the realtime API.
Sends a text input stream to the model, using the realtime API.
Sends a text input stream to the model, using the realtime API.
Sends a video frame to the model, using the realtime API.
Sends a video frame to the model, using the realtime API.
Sends a video frame to the model, using the realtime API.
Starts an audio conversation with the model, which can only be stopped using stopAudioConversation or close.
Starts an audio conversation with the model, which can only be stopped using stopAudioConversation or close.
Starts an audio conversation with the model, which can only be stopped using stopAudioConversation or close.
Stops the audio conversation with the model.
Stops the audio conversation with the model.
Stops receiving, as on Android (where it also stops the audio conversation, which does not exist here).
Stops receiving from the model.
Stops receiving from the model.
Stops receiving from the model.