React Native Voicebot SDK
The React Native Voicebot SDK is the enx-voice-bot-react-native package. It lets a
React Native app place an outbound call to an EnableX Dialogs voice bot and hold a live,
two-way voice conversation with it on Android and iOS. The package is headless: it handles the
call session, the real-time audio stream, microphone capture, and speaker playback, and reports
call, mute, and speaking state through a listener, so you build the call screen yourself.
React Native has a single voice bot package, so the SDK and the Voicebot UI Kit are the same thing. The full developer guide — setup, permissions, configuration, API reference, REST endpoints, usage example, and troubleshooting — lives on the React Native Voicebot UI Kit page.
Open the React Native Voicebot guide →First release of the React Native SDK. Package: enx-voice-bot-react-native on npm.
Quick Start
The minimum to place a call. Each step links to the detailed section of the guide.
1. Add the package
npm install enx-voice-bot-react-native
On iOS, also run:
cd ios && pod install
See Installation.
2. Declare the microphone permission
Add INTERNET, RECORD_AUDIO, and MODIFY_AUDIO_SETTINGS to AndroidManifest.xml, and NSMicrophoneUsageDescription to Info.plist. See Required Permissions.
3. Create the client and connect
Implement EnxVoiceListener (see the usage example), then:
import { EnxVoiceClient, EnxSdkConfig } from 'enx-voice-bot-react-native';
const client = new EnxVoiceClient()
.init('911100123457') // virtual number to dial
.setEnxVoiceListener(new MyVoiceListener())
.setSdkConfig(EnxSdkConfig.production);
await client.connect();
// ...
await client.disconnect();
In the Guide
| Topic | Section |
|---|---|
| Supported React, React Native, iOS, and Node.js versions | Requirements |
| QA vs Production, logging, custom environments | Configuration |
EnxVoiceClient methods and properties | EnxVoiceClient |
| Call, mute, error, and speaking-state callbacks | EnxVoiceListener |
/v2token endpoints and the media WebSocket | REST API Reference |
| Mute, DTMF, and speaking indicators | Usage Example |
| Calls that fail to connect or have no audio | Developer Troubleshooting |