Setting up the PipecatClient
PipecatClient
is the primary component for building the client-side portion of a client-bot interaction. It is designed to work with various transport layers, such as WebRTC, WebSockets, or HTTP, allowing you to pick and choose the communication layer that best suits your application while maintaining a consistent API.
PipecatClient
, you must provide a transport instance to the constructor for your chosen protocol or provider. See Transport for more information. For the purpose of this guide, we’ll demonstrate using the Daily WebRTC transport.Transport
type you will use to connect to your bot service (PipecatClient.connect()
). Transports implement the underlying device management, connectivity, media transmission, and state logic that manage the lifecycle of your session.PipecatClient.transport
property, which provides some additional safeguards.