Skip to main content

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.
Transports of this type are designed primarily for development and testing purposes. For production applications, you will need to build a server component with a server-friendly transport, like the DailyTransport, to securely handle API keys.

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