Skip to main content
The Gemini Live Websocket transport implementation enables real-time audio communication with the Gemini Live service, using a direct websocket 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.

Installation

Add the transport dependency to your app/build.gradle.kts:
Add the microphone permission to AndroidManifest.xml:

Usage

Configuration

GeminiServiceOptions

connect() takes a GeminiServiceOptions:

GeminiServiceOptions.withDefaults

For common cases, GeminiServiceOptions.withDefaults() builds the modelConfig for you (audio output with the given voice):

Audio devices

The transport exposes static constants for audio routing:

Resources

Demo

Simple Chatbot Demo

Source

Client Transports

Pipecat Android Client Reference

Complete API documentation for the Pipecat Android client.