SakuraKit is a Swift SDK designed to quickly prototyping speech-to-speech or text-to-speech using different APIs to build low-latency, multimodal experiences with ease.
This SDK is named after the cherry blossoms (Sakura) to enjoy in Shibuya next year. 🌸
To get started with SakuraKit, add it to your Swift project using Swift Package Manager (SPM):
dependencies: [
.package(url: "https://github.com/rryam/SakuraKit", from: "1.0.0")
]
Then, import it into your project:
import SakuraKit
- OpenAI API Key: You will need a valid API key from OpenAI.
Here is a quick example to get you started:
import SakuraKit
// Initialize the SakuraKit client
let sakuraKit = SakuraKit(apiKey: "your_openai_api_key")
// Connect to the Realtime API with a WebSocket
I welcome contributions! Feel free to open issues or submit pull requests to help improve SakuraKit.
SakuraKit is licensed under the MIT License. See LICENSE for more details.