Skip to content

Media Streaming

Media streaming is how Teler hands you raw call audio in real time. When your Call Flow returns a stream action, Teler opens a WebSocket to your ws_url and streams base64-encoded PCM audio in both directions for the duration of the call.

  • AI voice agents: pipe caller audio to STT/LLM/TTS, send the response back.
  • Live transcription: consume audio one-way and feed your transcription pipeline.
  • Real-time analysis: fraud detection, sentiment scoring, compliance monitoring.
StepWhat happens
1A call starts (inbound to your Teler number, or outbound via the API).
2Teler POSTs your flow URL asking what to do.
3You return a stream flow with a ws_url.
4Teler opens a WebSocket to your ws_url.
5Audio flows: Teler → your bridge (caller’s voice) and your bridge → Teler (audio to play to the caller).
6The call ends. Teler closes the WebSocket.
PropertyValue
Encodingaudio/l16 (linear 16-bit PCM)
Channelsmono (1)
Sample rateThe Stream flow’s sample_rate accepts "8k" or "16k" (default "8k"), but the start message currently always advertises 8000
Transportbase64 strings inside JSON messages