Skip to main content
Deprecated: This transport connects directly from the browser to a third-party LLM API rather than through a Pipecat server, so it can’t use most Pipecat server-side features and drifts out of sync with that API over time. It is no longer supported and will not receive further updates. Published npm versions will remain installable, but since this transport depends directly on a third-party API that changes over time, it may stop working correctly as that API evolves.For production applications, use a server-friendly transport like the DailyTransport with a Pipecat server component to securely handle API keys and access the full Pipecat feature set.

Overview

The GeminiLiveWebsocketTransport class implements a fully functional Pipecat Transport, providing a framework for implementing real-time communication directly with the Gemini Live service. Like all transports, it handles media device management, audio/video streams, and state management for the connection.

Usage

Basic Setup

API Reference

Constructor Options

GeminiLLMServiceOptions

TransportConnectionParams

connect() optionally takes a partial GeminiLLMServiceOptions, which is merged over the configuration given to the constructor — useful for supplying the API key or overriding generation_config per session. Omit it and the transport connects with the constructor’s configuration as-is.

Events

The GeminiLiveWebSocketTransport implements the various PipecatClient event handlers. Check out the docs or samples for more info.

More Information

Demo

Gemini Live Basic Demo

Source

GeminiLiveWebsocketTransport

Package

@pipecat-ai/gemini-live-websocket-transport