AudioSource
The source of audio data, which can be provided either as raw bytes or a reference to an S3 location.
Inheritors
Types
Audio data encoded in base64.
A reference to audio data stored in an Amazon S3 bucket. To see which models support S3 uploads, see Supported models and features for Converse.
Functions
Casts this AudioSource as a Bytes and retrieves its kotlin.ByteArray value. Throws an exception if the AudioSource is not a Bytes.
Casts this AudioSource as a Bytes and retrieves its kotlin.ByteArray value. Returns null if the AudioSource is not a Bytes.
Casts this AudioSource as a S3Location and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.S3Location value. Throws an exception if the AudioSource is not a S3Location.
Casts this AudioSource as a S3Location and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.S3Location value. Returns null if the AudioSource is not a S3Location.