17 lines
343 B
Python
17 lines
343 B
Python
from abc import abstractmethod
|
|
|
|
from pipecat.pipeline.frames import Frame
|
|
|
|
|
|
class FrameSerializer:
|
|
def __init__(self):
|
|
pass
|
|
|
|
@abstractmethod
|
|
def serialize(self, frame: Frame) -> bytes:
|
|
raise NotImplementedError
|
|
|
|
@abstractmethod
|
|
def deserialize(self, data: bytes) -> Frame:
|
|
raise NotImplementedError
|