Skip to content

audio_chunk_event

AudioChunkEvent

Bases: BaseChunkEvent

Stores a chunk of audio data.

Attributes:

Name Type Description
data str

Base64 encoded audio data.

Source code in griptape/events/audio_chunk_event.py
@define
class AudioChunkEvent(BaseChunkEvent):
    """Stores a chunk of audio data.

    Attributes:
        data: Base64 encoded audio data.
    """

    data: str = field(kw_only=True, metadata={"serializable": True})

    def __str__(self) -> str:
        return self.data

data = field(kw_only=True, metadata={'serializable': True}) class-attribute instance-attribute

__str__()

Source code in griptape/events/audio_chunk_event.py
def __str__(self) -> str:
    return self.data