Skip to main content
The OpenAI Realtime WebRTC transport implementation enables real-time audio communication with the OpenAI Realtime service, using a direct WebRTC connection.
Transports of this type connect directly to OpenAI’s API from the client, which exposes your API key. This is designed primarily for development and testing. For production applications, proxy through a server component to keep credentials secure.

Installation

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

Usage

Configuration

OpenAIServiceOptions

OpenAIRealtimeSessionConfig

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.