Flutter Voicebot SDK
The Flutter Voicebot SDK is the enx_voice_bot package. It lets a Flutter 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.
Flutter 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 Flutter Voicebot UI Kit page.
Open the Flutter Voicebot guide →v1.0.6+7 changed connect() and moved call setup to REST call control. If you are upgrading from v1.0.6+6 or earlier, see the migration steps. Package: enx_voice_bot on pub.dev.
Quick Start
The minimum to place a call. Each step links to the detailed section of the guide.
1. Add the package
flutter pub add enx_voice_bot
2. Declare the microphone permission
Add INTERNET, RECORD_AUDIO, and MODIFY_AUDIO_SETTINGS to AndroidManifest.xml, and NSMicrophoneUsageDescription to Info.plist. Test on a physical device. See Required Permissions.
3. Create the client and connect
Your call screen implements EnxVoiceListener (see the usage example), then:
import 'package:enx_voice_bot/enx_voice.dart';
final client = EnxVoiceClient()
.init('911100123457') // virtual number to dial
.setEnxVoiceListener(this)
.setSdkConfig(EnxSdkConfig.production);
await client.connect();
// ...
await client.disconnect();
In the Guide
| Topic | Section |
|---|---|
| Supported Flutter, Dart, Android, and iOS versions | Requirements |
| QA vs Production, logging, per-call base URL | 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 |