AudioBlock¶
Structure Class¶
AudioBlock
dataclass
¶
Bases: _SerdeShape
An audio content block that contains audio data in various supported formats.
Attributes¶
error
class-attribute
instance-attribute
¶
error: ErrorBlock | None = ...
Error information if the audio block could not be processed or contains invalid data.
format
instance-attribute
¶
format: str
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.