WebRTC SDKs
Vocobase provides SDKs for multiple platforms, enabling you to build voice AI experiences across web, mobile, and embedded systems.
Available SDKs
Web SDKs
JavaScript
Build voice agents for web apps with our lightweight JS SDK.
| Feature | Description |
|---|---|
| Package | @vocobase/voice-client-sdk-js |
| Size | ~15KB gzipped |
| Browser Support | Chrome, Firefox, Safari, Edge |
| Requirements | ES2020+, WebRTC support |
npm install @vocobase/voice-client-sdk-jsBest for:
- Vanilla JavaScript projects
- Framework-agnostic applications
- Lightweight integrations
React
React SDK with hooks and components for voice agent apps.
| Feature | Description |
|---|---|
| Package | @vocobase/voice-client-sdk |
| React Version | 18.0.0+ |
| TypeScript | Full support included |
| SSR | Compatible with Next.js |
npm install @vocobase/voice-client-sdkBest for:
- React applications
- Next.js projects
- Custom voice UIs with hooks
Native SDKs
Swift
Add voice AI agents in native iOS apps using our Swift SDK.
| Feature | Description |
|---|---|
| Platform | iOS 15.0+, macOS 12.0+ |
| Swift Version | 5.7+ |
| Package Manager | Swift Package Manager |
| Status | Coming Soon |
Best for:
- Native iOS applications
- macOS apps
- watchOS extensions
Kotlin
Develop Android apps with voice agents using Kotlin SDK.
| Feature | Description |
|---|---|
| Platform | Android SDK 24+ |
| Kotlin Version | 1.8+ |
| Package Manager | Gradle |
| Status | Coming Soon |
Best for:
- Native Android applications
- Android TV apps
- Wear OS apps
Embedded SDKs
C++
C++ SDK to enable voice agents on IoT hardware and systems.
| Feature | Description |
|---|---|
| Platforms | Linux, Windows, macOS, Embedded |
| Standard | C++17 |
| Dependencies | WebRTC, OpenSSL |
| Status | Coming Soon |
Best for:
- IoT devices
- Embedded systems
- Desktop applications
- Custom hardware integrations
SDK Comparison
| SDK | Platform | Status | Documentation |
|---|---|---|---|
| JavaScript | Web | Available | Docs |
| React | Web | Available | Docs |
| Swift | iOS, macOS | Coming Soon | β |
| Kotlin | Android | Coming Soon | β |
| C++ | Embedded/IoT | Coming Soon | β |
Common Features
All Vocobase SDKs share these core capabilities:
- Real-time WebRTC β Low-latency audio streaming
- Automatic reconnection β Handles network interruptions
- Transcript access β Full conversation history
- Error handling β Comprehensive error codes
- TypeScript/Type definitions β Full type support where applicable
Getting Started
- Choose your SDK based on your platform
- Install the package using your package manager
- Configure permissions for microphone (and camera for mobile)
- Initialize with your API key and agent name
- Build your UI using our hooks or components
Need Help?
- Documentation β Platform-specific guides in the sidebar
- Examples β Code examples for common use cases
- Support β Contact support@vocobase.com
Last updated on