AsyncSequence
patterns. It is the only server-side SDK that includes WebRTC voice — all the audio session
management is handled inside the SDK without external dependencies.
For a complete integration walkthrough — including Xcode setup, SwiftUI examples, microphone
permission handling, and AVAudioSession configuration — see the
iOS guide.
Install
In Xcode: File → Add Package Dependencies and enter:Package.swift:
Quick example
KioskClient options
Your device credential token,
hk_live_… (production) or hk_test_… (sandbox). Issue
credentials from the Humain admin panel under Kiosk → Credentials → Issue new credential.
There is no separate client mode or URL for sandbox — it’s determined entirely by which
credential you pass. See Sandbox mode.Request timeout in seconds. Applied to the session open call and each
sendMessage() call.Number of automatic retries on provider errors (
503). Uses exponential back-off starting
at 1 second.Error types
503 — LLM temporarily unavailable. retryable: true means safe to retry with back-off.