Flutter Voicebot UI Kit — Release Notes
Version history for enx_voice_bot, the official voice bot calling client for
Flutter. Releases are shown in reverse chronological order — latest first.
v1.0.6+7 changes the connection API. connect(token, options) is replaced by connect({callApiBaseUrl}), and the app no longer fetches a token. If you are on v1.0.6+6 or earlier, read Migrating from v1.0.6+6 or earlier before upgrading.
The SIP WebView layer is replaced by REST call control and a direct Pipecat WebSocket, the
same model as the React Native Voicebot UI Kit. This is the
version the Developer Guide documents.
Package: enx_voice_bot
Highlights
- Calls are started with a single REST request (
POST {callApiBaseUrl}/v2token) that returns a voice session ID and the media WebSocket URL; the app no longer fetches or passes a token. - Calls are ended with
DELETE /v2token/{voiceId}, so the server-side session is closed whendisconnect()runs. - New: selectable environments.
EnxSdkConfig(qa,production,fromEnvironment()) andEnxVoiceEnvironmentare now public, set withsetSdkConfig();connect(callApiBaseUrl: ...)overrides the base URL for one call. - New: DTMF.
sendDtmf(digits)sends 0–9,*and#;setOnDtmfKeypadChanged()/onDtmfKeypadChangedtell the app whether the bot session accepts keypad input. - New read-only properties:
activeVoiceIdandhasCallApiBaseUrl. - Microphone upload pauses while the bot speaks and resumes shortly after it stops, including when the server sends bot audio without explicit speaking events.
- iOS plugin can be consumed through Swift Package Manager as well as CocoaPods.
Breaking Changes
connect(String token, [Map<String, String> options])is replaced byconnect({String? callApiBaseUrl}). The token argument and the options map (includinglanguage) are removed.- The default environment is now QA (it was Production in v1.0.6 to v1.0.6+6). Call
setSdkConfig(EnxSdkConfig.production)for production builds.
Migrating from v1.0.6+6 or earlier
- Remove the code that fetched a token for
connect(). - Set the environment once when you create the client:
_client = EnxVoiceClient() .init(virtualNumber) .setEnxVoiceListener(this) .setSdkConfig(EnxSdkConfig.production); - Replace
connect(token, {...})with:await _client.connect(); - Move any options you passed (for example
language) into the voice bot's configuration in the EnableX Dialogs console — the SDK no longer sends them. - Do a full rebuild (not a hot restart); the native plugin code changed.
Dependency Changes
- Added:
http(REST call control). - Removed:
webview_flutter,webview_flutter_android,webview_flutter_wkwebview.
Documentation and package-metadata updates; the SDK code is unchanged from v1.0.6.
- README rewritten and reformatted, with a sample screenshot (v1.0.6+1 to v1.0.6+3).
- Package description updated (v1.0.6+4 to v1.0.6+6).
- Minimum Flutter version raised from 1.17.0 to 3.16.0 (v1.0.6+1).
- Fix: the client connects to the Production environment again. v1.0.4 and v1.0.5 had switched the built-in default to QA.
- Options map on connect.
connect(String token, [Map<String, String> options])replaces thelanguageparameter added in v1.0.1. Each entry is passed to the voice bot session askey=value, so the app can sendlanguageand other bot-defined values. The SDK addsclient_type(ANDROIDorIOS) automatically.await _voiceClient.connect(token, { 'language': 'en-IN', }); - The built-in environment changed from Production to QA (reverted in v1.0.6).
- v1.0.5 updates only the README and example app.
Packaging and example-app updates to improve the pub.dev package score; no API or behavior changes.
- Language selection.
connect()accepts an optional namedlanguageparameter (for example'en-IN'), passed to the voice bot session on Android and iOS.await _voiceClient.connect(token, language: 'en-IN');
First stable release of the Flutter SDK for real-time Gen-AI voice bots, powered by EnableX
Dialogs, using SIP call setup and a Pipecat WebSocket media stream.
Package: enx_voice_bot
Highlights
- Outbound App-to-Voice Bot calling to a virtual number. The call is set up over SIP through an internal WebView managed by the SDK, which then hands the audio to a Pipecat WebSocket.
- Real-time, full-duplex audio streaming over WebSocket using Pipecat protobuf frames (16 kHz mono microphone upload, bot audio playback).
- Real-time microphone capture and speaker playback on Android and iOS from a single Dart API.
- Automatic microphone permission request/verification before a call starts.
- Call session lifecycle with call-state callbacks (
connecting,connected,disconnected,failed). - Mute / unmute microphone during an active call.
- Speaking-state callbacks so the host app can show “user speaking” / “bot speaking” indicators.
API at a Glance
final client = EnxVoiceClient()
.init(virtualNumber)
.setEnxVoiceListener(listener);
await client.connect(token); // token fetched by the app for the virtual number
await client.muteAudio(true);
await client.disconnect();
EnxVoiceListener and EnxVoiceState are the same as in later versions.
Known Issues and Limitations
- Outbound calls only — the SDK initiates calls to a virtual number; there is no inbound call handling.
- One active call per
EnxVoiceClientinstance; create a new instance (or fully disconnect) before starting another call. - Physical device required — simulators and emulators do not provide microphone access.
- The environment is fixed to Production; it cannot be changed from the app.
- No DTMF support.
Compatibility
| Requirement | Supported version |
|---|---|
| Dart SDK | 3.9.2 or later |
| Android | API level 24 (Android 7.0) or later |
| iOS deployment target | 12.0 or later |
| Test device | Physical Android or iOS device (microphone access) |
Required Permissions
The SDK requests the microphone permission at runtime and requires the following platform declarations in the host application. They are unchanged in later versions; see the Developer Guide for the exact manifest and Info.plist entries.
| Platform | Permission | Reason |
|---|---|---|
| Android | android.permission.RECORD_AUDIO | Capture microphone audio to send to the voice bot. |
| Android | android.permission.MODIFY_AUDIO_SETTINGS | Route call audio to the speaker / communication device. |
| Android | android.permission.INTERNET | Connectivity to the EnableX voice service. |
| iOS | NSMicrophoneUsageDescription | Required Info.plist usage-description string shown when requesting microphone access. |
Support
For integration support or to report an issue, contact your EnableX account representative or visit the EnableX developer portal.