Skip to content

Bedrock Runtime  >  Unions  >  AudioSource

AudioSource

Union Type

AudioSource module-attribute

The source of audio data, which can be provided either as raw bytes or a reference to an S3 location.

Union Member Types

AudioSourceBytes dataclass

Audio data encoded in base64.

Attributes

value instance-attribute
value: bytes

AudioSourceS3Location dataclass

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.

Attributes

value instance-attribute
value: S3Location

AudioSourceUnknown dataclass

Represents an unknown variant.

If you receive this value, you will need to update your library to receive the parsed value.

This value may not be deliberately sent.

Attributes

tag instance-attribute
tag: str