M2A Captioning API (local)

Download OpenAPI specification:

The M2A Captioning API exposes Captioners.

A Captioner is the M2A representation of an event's whole captioning configuration: which source audio to transcribe, into which languages, and with which provider dictionary and termbases. Each entry in tracks is one provider project: it transcribes one audio track in its own language, and every entry in its caption-languages is delivered as a subtitle track - the source language where that transcription is wanted, and every other entry as a translation of it.

The specification is provider agnostic. The caption provider backing a Captioner is named by provider-type, which discriminates attributes, and the kind of source is carried in source-type. A second provider or a second kind of source is a new value of the relevant discriminator; no existing field is removed and no existing field changes type.

Captioners are created, started, stopped and deleted through the internal API, so this specification exposes GET on them.

Not yet implemented: the preview-stream-endpoint relationship. Until it is, a response leaves it out.

Health

Health check endpoints.

Get Health Status

Returns the health status of the API.

Authorizations:
public

Responses

Response samples

Content type
application/json
{
  • "status": "string",
  • "api-version": "string",
  • "build-version": "string"
}

Captioners

Query Captioners to monitor state and retrieve the subtitle renditions the provider is publishing.

Each track reports the audio it is transcribing, the languages it is translating into, the packagings its captions are produced in, and the provider's own identifier for the project backing it. URLs in the payload are provisioning and diagnostic information rather than playback addresses - viewers fetch captions from M2A's own domain.

Get a Captioner

Returns a single Captioner, including the lifecycle state of the resource and of each track, the rendition each track resolved to, and the subtitle renditions the provider is publishing.

A deleted Captioner is returned in the DELETED state until its expiry passes, and is 404 after that.

Authorizations:
http_security_schema
path Parameters
captioner_id
required
string <uuid>

The unique ID of the Captioner.

query Parameters
owner
required
string <uuid>

The target account the Captioner belongs to.

header Parameters
accept
string
Value: "application/vnd.api+json"

Content type (expressed as MIME types) the client is able to understand.

Content-Type
string
Value: "application/vnd.api+json"

The original media type of the resource.

Responses

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}