Class LiveSendRealtimeInputParameters

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.LiveSendRealtimeInputParameters

public abstract class LiveSendRealtimeInputParameters extends JsonSerializable
Parameters for sending realtime input to the live API.
  • Constructor Details

    • LiveSendRealtimeInputParameters

      public LiveSendRealtimeInputParameters()
  • Method Details

    • media

      public abstract Optional<Blob> media()
      Realtime input to send to the session.
    • audio

      public abstract Optional<Blob> audio()
      The realtime audio input stream.
    • audioStreamEnd

      public abstract Optional<Boolean> 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

      public abstract Optional<Blob> video()
      The realtime video input stream.
    • text

      public abstract Optional<String> text()
      The realtime text input stream.
    • activityStart

      public abstract Optional<ActivityStart> activityStart()
      Marks the start of user activity.
    • activityEnd

      public abstract Optional<ActivityEnd> activityEnd()
      Marks the end of user activity.
    • builder

      public static LiveSendRealtimeInputParameters.Builder builder()
      Instantiates a builder for LiveSendRealtimeInputParameters.
    • toBuilder

      public abstract LiveSendRealtimeInputParameters.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static LiveSendRealtimeInputParameters fromJson(String jsonString)
      Deserializes a JSON string to a LiveSendRealtimeInputParameters object.