Installation
Add the transport dependency to yourbuild.gradle:
Usage
Create a client:Resources
Demo
Simple Chatbot Demo
Source
Client Transports
Pipecat Android Client Reference
Complete API documentation for the Pipecat Android client.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
WebRTC implementation for Android using OpenAI
build.gradle:
implementation "ai.pipecat:openai-realtime-webrtc-transport:0.3.7"
val transport = OpenAIRealtimeWebRTCTransport.Factory(context)
val options = RTVIClientOptions(
params = RTVIClientParams(
baseUrl = null,
config = OpenAIRealtimeWebRTCTransport.buildConfig(
apiKey = apiKey,
initialMessages = listOf(
LLMContextMessage(role = "user", content = "How tall is the Eiffel Tower?")
),
initialConfig = OpenAIRealtimeSessionConfig(
voice = "ballad",
turnDetection = Value.Object("type" to Value.Str("semantic_vad")),
inputAudioNoiseReduction = Value.Object("type" to Value.Str("near_field")),
inputAudioTranscription = Value.Object("model" to Value.Str("gpt-4o-transcribe"))
)
)
)
)
val client = RTVIClient(transport, callbacks, options)
client.start().withCallback {
// ...
}