Transport packages
OpenAIRealTimeWebRTCTransport
Overview
The OpenAIRealTimeWebRTCTransport
is a fully functional RTVI Transport
. It provides a framework for implementing real-time communication directly with the OpenAI Realtime API using WebRTC voice-to-voice service. It handles media device management, audio/video streams, and state management for the connection.
Usage
Basic Setup
Configuration Options
Below is the transport’s type definition for the OpenAI Session configuration. See the OpenAI Realtime API documentation for more details on each of the options and their defaults.
Sending Messages
Handling Events
The transport implements the various RTVI event handlers. Check out the docs or samples for more info.
Updating Session Configuration
Currently, invalid session configurations will result in the OpenAI connection being failed.
More Information
Package
@pipecat-ai/openai-realtime-webrtc-transport