A SwiftUI app demonstrating the xAI Voice API — text-to-speech, streaming TTS, and real-time voice agents on iOS and macOS.
- Open
VoiceTesterApp.xcodeprojin Xcode 16+ - Add your xAI API key in-app or via the
XAI_API_KEYenvironment variable in the Xcode scheme - Run on a simulator or device (iOS 17+ / macOS 14+)