Class AudioResponseFormat
java.lang.Object
com.google.genai.gaos.models.interactions.AudioResponseFormat
AudioResponseFormat
Configuration for audio output format.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAudioResponseFormat(Integer bitRate, AudioResponseFormatDelivery delivery, AudioResponseFormatMimeType mimeType, Integer sampleRate) -
Method Summary
Modifier and TypeMethodDescriptionbitRate()Bit rate in bits per second (bps).static AudioResponseFormat.Builderbuilder()delivery()The delivery mode for the audio output.booleaninthashCode()mimeType()The MIME type of the audio output.Sample rate in Hz.toString()type()withBitRate(Integer bitRate) Bit rate in bits per second (bps).withDelivery(AudioResponseFormatDelivery delivery) The delivery mode for the audio output.withMimeType(AudioResponseFormatMimeType mimeType) The MIME type of the audio output.withSampleRate(Integer sampleRate) Sample rate in Hz.
-
Constructor Details
-
AudioResponseFormat
public AudioResponseFormat(@Nullable Integer bitRate, @Nullable AudioResponseFormatDelivery delivery, @Nullable AudioResponseFormatMimeType mimeType, @Nullable Integer sampleRate) -
AudioResponseFormat
public AudioResponseFormat()
-
-
Method Details
-
bitRate
Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus). -
delivery
The delivery mode for the audio output. -
mimeType
The MIME type of the audio output. -
sampleRate
Sample rate in Hz. -
type
-
builder
-
withBitRate
Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus). -
withDelivery
The delivery mode for the audio output. -
withMimeType
The MIME type of the audio output. -
withSampleRate
Sample rate in Hz. -
equals
-
hashCode
public int hashCode() -
toString
-