Bidirectional streaming
Send live call audio over WebSocket and receive audio for playback in the same session.
A flexible, bidirectional WebSocket audio interface for FreeSWITCH. Stream live call audio to your application, play audio back into calls, and control playback and interruptions — directly in the FreeSWITCH media path.
mod_audio_stream is used by thousands of companies through its Community Edition, with hundreds of commercial deployments worldwide. Its users include major telecommunications providers, contact center operators and teams building voice applications on FreeSWITCH.
Connect FreeSWITCH audio to your own WebSocket service for voice AI, transcription, speech synthesis, analysis or custom real-time processing. You choose the backend and its protocol.
Native audio capture, transport and playback, with flexible control from FreeSWITCH.
Send live call audio over WebSocket and receive audio for playback in the same session.
Use break to clear pending playback and reset playback offsets for responsive conversations.
Play audio directly into a channel or mix playback into bridged calls so both parties can hear and interact.
PCM16 streaming with PCM, PCMU, PCMA and Opus return-audio options, depending on the edition.
Adapt PCM sample rates and tune audio buffering for different applications and playback requirements.
Forward PCM16 audio to local processes through a named pipe alongside WebSocket-based workflows.
Direct playback sends returned audio into the selected channel. In bridged calls, Mix mode integrates returned audio into the media path, allowing caller and callee to participate in the same AI-assisted conversation.
Interruption support clears queued audio when the application needs to stop speaking, while frame-based playback helps maintain timing.
# Start audio streaming
uuid_audio_stream <uuid> start ws://127.0.0.1:8080 mono 16k
# Manage the live stream
uuid_audio_stream <uuid> pause
uuid_audio_stream <uuid> resume
uuid_audio_stream <uuid> send_text Hello
uuid_audio_stream <uuid> break
uuid_audio_stream <uuid> stop
Manage individual streams using the uuid_audio_stream FreeSWITCH API.
Integrate stream control with your dialplan, ESL application or external call logic.
Continue using native FreeSWITCH features such as uuid_record
for call recording while the module handles audio streaming.
Use the Named Pipe output when a local process needs PCM audio.
The module is a WebSocket client, not a hosted AI service. Your WebSocket server receives audio, applies application logic and can send audio back for playback.
Use the Community Edition or contact us about commercial capabilities and licensing.
Up to 10 concurrent channels. Download packages for supported Linux distributions.
Download Free →Discuss unrestricted concurrency, commercial-only capabilities and source licensing options.
Contact for Licensing →Download the module, connect your WebSocket server and take control of live audio.