Package com.google.genai.types
Class VoiceActivity
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.VoiceActivity
Voice activity signal.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VoiceActivity.Builderbuilder()Instantiates a builder for VoiceActivity.static VoiceActivityDeserializes a JSON string to a VoiceActivity object.abstract VoiceActivity.BuilderCreates a builder with the same values as this instance.abstract Optional<VoiceActivityType>The type of the voice activity signal.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
VoiceActivity
public VoiceActivity()
-
-
Method Details
-
voiceActivityType
The type of the voice activity signal. -
builder
Instantiates a builder for VoiceActivity. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a VoiceActivity object.
-