Serializers
Frame Serializers
Overview of frame serializers for converting between Pipecat frames and external protocols
Overview
Frame serializers are components that convert between Pipecat’s internal frame format and external protocols or formats. They’re essential when integrating with third-party services or APIs that have their own message formats.
Core Responsibilities
Serializers handle:
- Serialization: Converting Pipecat frames to external formats or protocols
- Deserialization: Converting external messages to Pipecat frames
- Protocol-specific behaviors: Managing unique aspects of each integration
Available Serializers
Pipecat includes serializers for popular voice and communications platforms:
Twilio Serializer
For integrating with Twilio Media Streams WebSocket protocol
Telnyx Serializer
For integrating with Telnyx WebSocket media streaming
Custom Serializers
You can create custom serializers by implementing the FrameSerializer
base class: