NATIVE FREESWITCH MODULE mod_realtime_ai

Realtime voice AI.
Native to FreeSWITCH.

Connect live calls to leading speech-to-speech AI providers without building or operating a separate audio bridge. One module handles realtime media, provider sessions and call control.

Free up to 10 channels5 AI providersDebian 12/13 · EL9
FREESWITCH CLI● LIVE SESSION
# Start a realtime AI session on an active call
fs_cli> uuid_realtime_ai <uuid> start sales
+OK Success
# Control the session from your call logic
fs_cli> uuid_realtime_ai <uuid> send_text Hello
fs_cli> uuid_realtime_ai <uuid> break
fs_cli> uuid_realtime_ai <uuid> stop
DIRECT INTEGRATION

Less infrastructure.
More conversation.

Audio capture, provider connectivity and playback run inside the FreeSWITCH media path. Your application keeps control of the call.

01 / TELEPHONYFreeSWITCHLive call & channel audio
→
02 / NATIVE MODULEmod_realtime_aiAudio, profiles & session control
↔
03 / SPEECH AIAI ProviderRealtime speech-to-speech
ENGINEERED FOR LIVE CALLS

Everything in the media path.

Six core capabilities, built for production-oriented FreeSWITCH integrations.

01 / INTEGRATION

Native FreeSWITCH module

Attach to an active channel and control AI sessions through the uuid_realtime_ai API.

02 / PROVIDERS

Five AI providers

OpenAI Realtime, Google Gemini Live, Grok Voice, ElevenLabs Agents and Azure Voice Live.

03 / AUDIO

Full-duplex speech

Stream caller audio and return AI-generated speech in the same live session, with interruption support.

04 / CONVERSION

Automatic resampling

Adapt FreeSWITCH channel audio to each provider's required input and output sample rates.

05 / CONFIGURATION

Reusable AI profiles

Define provider settings in native JSON and select a named profile independently for each call.

06 / LIFECYCLE

Session management

Coordinated connection, playback, transport, cleanup and per-call start/stop operations.

PROVIDER FLEXIBILITY

One FreeSWITCH interface.
Five realtime engines.

Choose the AI provider that fits your application. Provider-specific transport, session events and audio formats are handled by the module, while your call logic uses the same FreeSWITCH API.

Use provider-native JSON for voices, VAD, instructions and supported tool/function declarations. Tools are defined and handled according to each provider's protocol.

Explore provider configuration →
SUPPORTED REALTIME PROVIDERS
OpenAIRealtime API
Google GeminiLive API
xAI GrokVoice
ElevenLabsAgents
Microsoft AzureVoice Live
Provider-specific configuration. Consistent FreeSWITCH-side control.
PROFILE & SESSION CONTROL
<!-- realtime_ai.conf.xml -->
<profile name="sales">
  <param name="provider" value="openai"/>
  <param name="config" value="sales.json"/>
</profile>

# FreeSWITCH CLI
uuid_realtime_ai <uuid> start sales
uuid_realtime_ai <uuid> update {json}
uuid_realtime_ai <uuid> break
DEVELOPER CONTROL

Configure once.
Select per call.

Keep AI provider configuration separate from dialplan and application logic. Named profiles let you use different models and behaviors for sales, support or other workflows.

start · stop · pause · resumebreak · update · send_textOptional PCM audio pipe output
Start your first AI call →
FLEXIBLE LICENSING

Build free. Scale when ready.

Start with Community Edition, request a 30-day evaluation or deploy commercially without the CE channel cap.

COMMUNITY EDITION

€0 / free

Up to 10 concurrent channels. All five supported AI providers.

Download Free →
30-DAY EVALUATION

Unlimited / trial

Evaluate under realistic load with a time-limited license issued on request.

Request Trial →
READY TO BUILD?

Bring realtime AI into your FreeSWITCH calls.

Get the package, configure a profile and start your first session.