Skip to main content

Overview

Teler supports real-time, bidirectional media streaming over WebSockets.

Media streams can be useful for building virtual agents, live transcription systems, and audio analysis pipelines.

How It Works

1. Call Initiation

  • Incoming - A call is received on your Teler number.
  • Outgoing - You initiate a call using the HTTP API.

2. Call Flow Retrieval

  • Incoming - Call flow is fetched via the Incoming Call URL of your Voice App.
  • Outgoing - Call flow is fetched via the flow_url value provided while initiating the call using the HTTP API.

3. Stream Flow Response

Your application responds with a Stream flow that includes a ws_url.

4. WebSocket Connection

Teler establishes a WebSocket connection with the provided ws_url.

5. Audio Streaming (Teler → Application)

Teler streams Base64-encoded audio chunks to your application over the WebSocket connection.

6. Audio Streaming (Application → Teler)

Your application can optionally send audio chunks back over the same connection, which Teler plays back into the call.

7. Call Termination

Teler closes the WebSocket connection when the call ends.