Skip to content

pipecat-ai/pipecat-client-android-transports

This branch is 1 commit ahead of, 21 commits behind main.

Folders and files

NameName
Last commit message
Last commit date
Aug 19, 2024
Aug 21, 2024
Aug 21, 2024
Aug 19, 2024
Aug 19, 2024
Aug 21, 2024
Aug 19, 2024
Aug 19, 2024
Aug 19, 2024
Aug 19, 2024
Aug 19, 2024

Repository files navigation

Real-Time Voice Inference Android Client SDK: Daily Transport

RTVI is an open standard for Real-Time Voice (and Video) Inference.

This Android library exposes the DailyVoiceClient class, to connect to a Daily Bots backend.

Usage

Add the following dependency to your build.gradle file:

implementation "ai.rtvi:rtvi-client-android-daily:0.1.3"

Instantiate from your code:

val callbacks = object : VoiceEventCallbacks() {

    override fun onBackendError(message: String) {
        Log.e(TAG, "Error from backend: $message")
    }

    // ...
}

val client = DailyVoiceClient(context, baseUrl, callbacks)

client.start().withCallback {
    // ...
}

client.start() (and other APIs) return a Future, which can give callbacks, or be awaited using Kotlin Coroutines (client.start().await()).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages