Spaces:
Running
Running
# | |
# Copyright (c) 2024, Daily | |
# | |
# SPDX-License-Identifier: BSD 2-Clause License | |
# | |
from abc import ABC, abstractmethod | |
from pipecat.frames.frames import Frame | |
class FrameSerializer(ABC): | |
def serialize(self, frame: Frame) -> str | bytes | None: | |
pass | |
def deserialize(self, data: str | bytes) -> Frame | None: | |
pass | |