A lightweight Swift client for Gemini Live API.
Add the following dependency to your Package.swift:
.package(url: "https://github.com/renshi-a/Loquax", from: "0.1.1")Or add the package via Xcode: File > Add Packages... and enter the repository URL: https://github.com/renshi-a/Loquax
Add Privacy - Microphone Usage Description to your project's info.plist.
Loquax features a minimal and intuitive interface.
let loquax = Loquax(model: .gemini25flashNativeAudioPreview122025)Connect within your view’s lifecycle:
.task {
try loquax.connect(apiKey: "YOUR API KEY")
}
Begin the live session:
try await self.loquax.startLiveChat()
This library is released under the MIT license. See LICENSE for details.