sendRealtimeInput

suspend fun sendRealtimeInput(audio: Blob? = null, audioStreamEnd: Boolean? = null, video: Blob? = null, text: String? = null, activityStart: ActivityStart? = null, activityEnd: ActivityEnd? = null)

Sends real-time input (audio, video, etc.) to the model.

Exactly one of the parameters should be set.

Parameters

audio

A Blob containing audio data to send.

audioStreamEnd

A boolean flag indicating the end of an audio stream.

video

A Blob containing video data to send.

text

A string containing text to send.

activityStart

An ActivityStart indicator to signify the beginning of an activity.

activityEnd

An ActivityEnd indicator to signify the conclusion of an activity.