Streaming as a Service

Streaming API

How streaming works

What runs today behind the stream catalog, how the multi-language audio is made, and the proposed operator control plane.

This page explains what sits behind the stream catalog today and what is still being built. Only the catalog read API is live.

What is live and what is not

PieceStatus
GET /v1/streams and GET /v1/streams/{stream_id}Live. Free, 30 second cache, server-side calls only.
Stream catalog contentsLive but empty. Streams are added by ALT Sports Data.
Registering or listing your own streamNot available. There is no registration API yet.
Production ingest and video deliveryNot running yet.
Ingest pipelineRuns today as a demonstration.
Webhooks or push notificationsNot available. Poll GET /v1/streams/{stream_id} for status changes.
Operator control planeProposed. See below.

The ingest pipeline

The ingest pipeline takes one SRT feed from the venue or provider and turns it into a single HLS master playlist:

  • One video lane, passed through without re-encoding.
  • One AAC audio lane per language.

Each stream item in the catalog gives you master_hls_url and the hls_url of each rendition. The playlist host will be given in each stream item; do not hard-code one.

Today each stream has one video rendition. Check renditions[] rather than assuming one.

How the multi-language audio works

The original commentary keeps its own language and is only re-encoded to AAC. Every other language is generated by machine in three steps:

  1. Speech recognition turns the commentary into text.
  2. The text is translated.
  3. A synthetic voice reads the translation.

These steps add roughly 0.7 to 1.4 seconds. In production the video is designed to be held back by the same amount, so every language stays in sync and the stream runs slightly behind live. The demonstration does not apply this delay yet.

Demonstration only

In the current demonstration the translated audio is simulated. Treat the latency figures as a design target until production ingest is running.

Proposed operator control plane

Proposed, not built

Nothing in this section exists yet. The host is undecided, and names and shapes may change.

The proposal gives operators a way to receive streams, not only discover them:

StepWhat it would do
TokenGet a credential for the control plane.
ListSee the streams you can book.
BookReserve a stream at a tier. Booking would be idempotent on stream and tier, so repeating a request does not create a second booking.
DeliveriesRead where and how a booked stream is delivered to you.
SessionsTrack active playback sessions.

Booking events and leagues (as opposed to streams) is arranged with your ALT Sports Data account team today.

On this page