Skip to content

Bedrock Runtime  >  Structures  >  AudioBlock

AudioBlock

Structure Class

AudioBlock dataclass

An audio content block that contains audio data in various supported formats.

Attributes

error class-attribute instance-attribute
error: ErrorBlock | None = field(repr=False, default=None)

Error information if the audio block could not be processed or contains invalid data.

format instance-attribute
format: AudioFormat

The format of the audio data, such as MP3, WAV, FLAC, or other supported audio formats.

source class-attribute instance-attribute
source: AudioSource = field(repr=False)

The source of the audio data, which can be provided as raw bytes or an S3 location.