Package com.google.genai.types
Class AudioMetadata
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.AudioMetadata
Metadata describes the input audio content.
Set this in `Part.audio_metadata` or `FunctionResponsePart.audio_metadata` when `inline_data` or `file_data` contains audio to configure static audio preprocessing.
-
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 AudioMetadata.Builderbuilder()Instantiates a builder for AudioMetadata.Optional.static AudioMetadataDeserializes a JSON string to a AudioMetadata object.Optional.abstract AudioMetadata.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
AudioMetadata
public AudioMetadata()
-
-
Method Details
-
startOffset
Optional. The start offset of the audio, relative to the start of the audio stream. -
endOffset
Optional. The end offset of the audio, relative to the start of the audio stream. -
builder
Instantiates a builder for AudioMetadata. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a AudioMetadata object.
-