Skip to content

Repository files navigation

Pipecat iOS SDK with Daily Transport

The Pipecat project uses RTVI-AI, an open standard for Real-Time Voice [and Video] Inference.

This library exports a VoiceClient that has the Daily transport associated.

Install

To depend on the client package, you can add this package via Xcode's package manager using the URL of this git repository directly, or you can declare your dependency in your Package.swift:

.package(url: "https://github.com/pipecat-ai/pipecat-client-ios-daily.git", from: "1.3.0"),

and add "PipecatClientIOSDaily" to your application/library target, dependencies, e.g. like this:

.target(name: "YourApp", dependencies: [
    .product(name: "PipecatClientIOSDaily", package: "pipecat-client-ios-daily")
],

Quick Start

Instantiate a VoiceClient instance, wire up the bot's audio, and start the conversation:

let pipecatClientOptions = PipecatClientOptions.init(
    transport: DailyTransport.init(),
    enableMic: true,
    enableCam: false,
)
let pipecatClientIOS = PipecatClient.init(
    options: pipecatClientOptions
)
let startBotParams = APIRequest.init(endpoint: URL(string: baseUrl + "/connect")!)
pipecatClientIOS?.startBotAndConnect(startBotParams: startBotParams) { (result: Result<DailyTransportConnectionParams, AsyncExecutionError>) in
    switch result {
    case .failure(let error):
        // Handle error
    case .success(_):
        // handle success
    }
}

References

Contributing

We are welcoming contributions to this project in form of issues and pull request. For questions about Pipecat Client head over to the Pipecat discord server.

About

No description, website, or topics provided.

Resources

Stars

7 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages