Package com.google.genai.types
Class AudioResponseFormat
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.AudioResponseFormat
Configuration for audio-specific output formatting.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for AudioResponseFormat. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbitRate()Optional.static AudioResponseFormat.Builderbuilder()Instantiates a builder for AudioResponseFormat.delivery()Optional.static AudioResponseFormatDeserializes a JSON string to a AudioResponseFormat object.mimeType()Optional.Optional.abstract AudioResponseFormat.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
-
AudioResponseFormat
public AudioResponseFormat()
-
-
Method Details
-
bitRate
Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus). -
delivery
Optional. Delivery mode for the generated content. -
mimeType
Optional. The MIME type of the audio output. -
sampleRate
Optional. Sample rate for the generated audio in Hertz. -
builder
Instantiates a builder for AudioResponseFormat. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a AudioResponseFormat object.
-