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 yourapp/build.gradle.kts:
AndroidManifest.xml:
Usage
Configuration
buildConfig
GeminiLiveWebsocketTransport.buildConfig() accepts the following parameters:
| Parameter | Type | Description |
|---|---|---|
apiKey | String | Your Gemini API key |
model | String | Model name (default: "models/gemini-2.0-flash-exp") |
initialUserMessage | String? | Optional message to send at session start |
generationConfig | Value.Object | Generation config (voice, language, etc.) |
systemInstruction | Value? | Optional system instruction |
tools | Value.Array | Optional tools/function definitions |
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.