Package com.google.genai.types
Class LiveSendRealtimeInputParameters
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.LiveSendRealtimeInputParameters
Parameters for sending realtime input to the live API.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for LiveSendRealtimeInputParameters. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Optional<ActivityEnd>
Marks the end of user activity.abstract Optional<ActivityStart>
Marks the start of user activity.audio()
The realtime audio input stream.Indicates that the audio stream has ended, e.g.builder()
Instantiates a builder for LiveSendRealtimeInputParameters.Deserializes a JSON string to a LiveSendRealtimeInputParameters object.media()
Realtime input to send to the session.text()
The realtime text input stream.Creates a builder with the same values as this instance.video()
The realtime video input stream.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
LiveSendRealtimeInputParameters
public LiveSendRealtimeInputParameters()
-
-
Method Details
-
media
Realtime input to send to the session. -
audio
The realtime audio input stream. -
audioStreamEnd
Indicates that the audio stream has ended, e.g. because the microphone was turned off.This should only be sent when automatic activity detection is enabled (which is the default).
The client can reopen the stream by sending an audio message.
-
video
The realtime video input stream. -
text
The realtime text input stream. -
activityStart
Marks the start of user activity. -
activityEnd
Marks the end of user activity. -
builder
Instantiates a builder for LiveSendRealtimeInputParameters. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a LiveSendRealtimeInputParameters object.
-