Class AudioContent
java.lang.Object
com.google.genai.gaos.models.interactions.AudioContent
- All Implemented Interfaces:
Content
AudioContent
An audio content block.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAudioContent(Integer channels, String data, AudioContentMimeType mimeType, Integer sampleRate, String uri) -
Method Summary
Modifier and TypeMethodDescriptionstatic AudioContent.Builderbuilder()channels()The number of audio channels.data()The audio content.booleaninthashCode()mimeType()The mime type of the audio.The sample rate of the audio.toString()type()uri()The URI of the audio.withChannels(Integer channels) The number of audio channels.The audio content.withMimeType(AudioContentMimeType mimeType) The mime type of the audio.withSampleRate(Integer sampleRate) The sample rate of the audio.The URI of the audio.
-
Constructor Details
-
AudioContent
public AudioContent(@Nullable Integer channels, @Nullable String data, @Nullable AudioContentMimeType mimeType, @Nullable Integer sampleRate, @Nullable String uri) -
AudioContent
public AudioContent()
-
-
Method Details
-
channels
The number of audio channels. -
data
The audio content. -
mimeType
The mime type of the audio. -
sampleRate
The sample rate of the audio. -
type
-
uri
The URI of the audio. -
builder
-
withChannels
The number of audio channels. -
withData
The audio content. -
withMimeType
The mime type of the audio. -
withSampleRate
The sample rate of the audio. -
withUri
The URI of the audio. -
equals
-
hashCode
public int hashCode() -
toString
-