Vocobase Voice SDK
Build voice-enabled AI applications in minutes, not months.
What is Vocobase?
Vocobase is a platform for creating and deploying conversational voice AI agents. With our dashboard, you can create custom agents with unique personalities, voices, and behaviors β then integrate them into your applications using our React SDK.
Key Features
- No-code agent creation β Configure your AI agentβs personality, voice, and behavior through our intuitive dashboard
- React SDK β Drop-in components and hooks for seamless integration
- Real-time transcripts β Access conversation history with timestamps and latency metrics
- Multiple languages β Support for English, Spanish, French, Hindi, and more
- Usage analytics β Track sessions, duration, and costs in real-time
Two Ways to Integrate
1. Drop-in Component
Get started in seconds with our pre-styled <VoiceAgent /> component:
import { VoiceAgent } from '@vocobase/voice-client-sdk'
import '@vocobase/voice-client-sdk/styles.css'
function App() {
return (
<VoiceAgent
apiKey="your_api_key"
agentName="my-agent"
/>
)
}2. Headless Hooks
Build custom interfaces with full control:
import { VoiceSessionProvider, useVoiceSession, useConnectionState } from '@vocobase/voice-client-sdk'
function App() {
return (
<VoiceSessionProvider apiKey="your_api_key" agentName="my-agent">
<CustomVoiceUI />
</VoiceSessionProvider>
)
}
function CustomVoiceUI() {
const { connect, disconnect } = useVoiceSession()
const { isConnected } = useConnectionState()
return (
<button onClick={isConnected ? disconnect : connect}>
{isConnected ? 'End Call' : 'Start Call'}
</button>
)
}Quick Links
- Getting Started β Install the SDK and set up your first agent
- Quick Start β Build a working voice interface in 5 minutes
- Components β Full component API reference
- Hooks β Headless hooks for custom UIs
- Examples β Real-world integration examples
How It Works
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β Your App ββββββΆβ Vocobase SDK ββββββΆβ Vocobase API β
β (React) βββββββ (WebRTC) βββββββ (Voice AI) β
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β β β
β β β
User speaks Audio streamed AI processes
into mic in real-time and responds- User speaks β The SDK captures audio from the userβs microphone
- Real-time streaming β Audio is streamed to our servers via WebRTC
- AI processing β Your configured agent processes the speech and generates a response
- Response playback β The AIβs response is synthesized and played back to the user
- Transcript updates β Both sides of the conversation are available in real-time
Requirements
- React 18 or later
- A Vocobase account with API credentials
- Modern browser with WebRTC support (Chrome, Firefox, Safari, Edge)
Last updated on