Skip to content

AudioBlock

Source code in docs_src/capo_bedrock_runtime/types/audio_block.py
class AudioBlock(TypedDict, closed=True):
    format: "capo_bedrock_runtime.types.audio_format.AudioFormat"
    """<p>The format of the audio data, such as MP3, WAV, FLAC, or other supported audio formats.</p>"""
    source: "capo_bedrock_runtime.types.audio_source.AudioSource"
    """<p>The source of the audio data, which can be provided as raw bytes or an S3 location.</p>"""
    error: NotRequired["capo_bedrock_runtime.types.error_block.ErrorBlock"]
    """<p>Error information if the audio block could not be processed or contains invalid data.</p>"""

error instance-attribute

error: NotRequired[ErrorBlock]

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 instance-attribute

source: AudioSource

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