# Transcription Vocabularies

> Video API reference, generated from the OpenAPI spec.

Transcription Vocabularies allows you to provide collections of phrases like proper nouns, technical jargon, and uncommon words as part of captioning workflows. When using Auto-Generated Captions, Transcription Vocabularies increase the likelihood of correct speech recognition for these words and phrases.

HTML version: https://www.mux.com/docs/api-reference/video/transcription-vocabularies. Full OpenAPI spec: https://www.mux.com/api-spec.json

Operations on this page:

- Create a Transcription Vocabulary: `POST /video/v1/transcription-vocabularies`
- List Transcription Vocabularies: `GET /video/v1/transcription-vocabularies`
- Retrieve a Transcription Vocabulary: `GET /video/v1/transcription-vocabularies/{TRANSCRIPTION_VOCABULARY_ID}`
- Delete a Transcription Vocabulary: `DELETE /video/v1/transcription-vocabularies/{TRANSCRIPTION_VOCABULARY_ID}`
- Update a Transcription Vocabulary: `PUT /video/v1/transcription-vocabularies/{TRANSCRIPTION_VOCABULARY_ID}`

## Create a Transcription Vocabulary

`POST https://api.mux.com/video/v1/transcription-vocabularies`

Create a new Transcription Vocabulary.

Operation ID: `create-transcription-vocabulary`. HTML version: https://www.mux.com/docs/api-reference/video/transcription-vocabularies/create-transcription-vocabulary

### Request body

- `name` (string): The user-supplied name of the Transcription Vocabulary.
- `phrases` (array of string, required, maxItems: 1000): Phrases, individual words, or proper names to include in the Transcription Vocabulary. When the Transcription Vocabulary is attached to a live stream's `generated_subtitles`, the probability of successful speech recognition for these words or phrases is boosted. Each item: minLength: 1, maxLength: 32.
- `passthrough` (string): Arbitrary user-supplied metadata set for the Transcription Vocabulary. Max 255 characters.

Example request body:

```json
{
  "name": "Mux API Vocabulary",
  "phrases": [
    "Mux",
    "Live Stream",
    "Playback ID",
    "video encoding"
  ]
}
```

### Response `201`

Transcription Vocabulary Created

- `data` (object, required)
  - `id` (string, required): Unique identifier for the Transcription Vocabulary
  - `name` (string): The user-supplied name of the Transcription Vocabulary.
  - `phrases` (array of string, maxItems: 1000): Phrases, individual words, or proper names to include in the Transcription Vocabulary. When the Transcription Vocabulary is attached to a live stream's `generated_subtitles` configuration, the probability of successful speech recognition for these words or phrases is boosted. Each item: minLength: 1, maxLength: 32.
  - `passthrough` (string): Arbitrary user-supplied metadata set for the Transcription Vocabulary. Max 255 characters.
  - `created_at` (string, required, format: int64): Time the Transcription Vocabulary was created, defined as a Unix timestamp (seconds since epoch).
  - `updated_at` (string, required, format: int64): Time the Transcription Vocabulary was updated, defined as a Unix timestamp (seconds since epoch).

## List Transcription Vocabularies

`GET https://api.mux.com/video/v1/transcription-vocabularies`

List all Transcription Vocabularies.

Operation ID: `list-transcription-vocabularies`. HTML version: https://www.mux.com/docs/api-reference/video/transcription-vocabularies/list-transcription-vocabularies

### Query parameters

- `limit` (integer, format: int32, default: 10, maximum: 10): Number of items to include in the response
- `page` (integer, format: int32, default: 1): Offset by this many pages, of the size of `limit`

### Response `200`

OK

- `data` (array of object)
  - `id` (string, required): Unique identifier for the Transcription Vocabulary
  - `name` (string): The user-supplied name of the Transcription Vocabulary.
  - `phrases` (array of string, maxItems: 1000): Phrases, individual words, or proper names to include in the Transcription Vocabulary. When the Transcription Vocabulary is attached to a live stream's `generated_subtitles` configuration, the probability of successful speech recognition for these words or phrases is boosted. Each item: minLength: 1, maxLength: 32.
  - `passthrough` (string): Arbitrary user-supplied metadata set for the Transcription Vocabulary. Max 255 characters.
  - `created_at` (string, required, format: int64): Time the Transcription Vocabulary was created, defined as a Unix timestamp (seconds since epoch).
  - `updated_at` (string, required, format: int64): Time the Transcription Vocabulary was updated, defined as a Unix timestamp (seconds since epoch).

## Retrieve a Transcription Vocabulary

`GET https://api.mux.com/video/v1/transcription-vocabularies/{TRANSCRIPTION_VOCABULARY_ID}`

Retrieves the details of a Transcription Vocabulary that has previously been created. Supply the unique Transcription Vocabulary ID and Mux will return the corresponding Transcription Vocabulary information. The same information is returned when creating a Transcription Vocabulary.

Operation ID: `get-transcription-vocabulary`. HTML version: https://www.mux.com/docs/api-reference/video/transcription-vocabularies/get-transcription-vocabulary

### Path parameters

- `TRANSCRIPTION_VOCABULARY_ID` (string, required): The ID of the Transcription Vocabulary.

### Response `200`

OK

- `data` (object, required)
  - `id` (string, required): Unique identifier for the Transcription Vocabulary
  - `name` (string): The user-supplied name of the Transcription Vocabulary.
  - `phrases` (array of string, maxItems: 1000): Phrases, individual words, or proper names to include in the Transcription Vocabulary. When the Transcription Vocabulary is attached to a live stream's `generated_subtitles` configuration, the probability of successful speech recognition for these words or phrases is boosted. Each item: minLength: 1, maxLength: 32.
  - `passthrough` (string): Arbitrary user-supplied metadata set for the Transcription Vocabulary. Max 255 characters.
  - `created_at` (string, required, format: int64): Time the Transcription Vocabulary was created, defined as a Unix timestamp (seconds since epoch).
  - `updated_at` (string, required, format: int64): Time the Transcription Vocabulary was updated, defined as a Unix timestamp (seconds since epoch).

## Delete a Transcription Vocabulary

`DELETE https://api.mux.com/video/v1/transcription-vocabularies/{TRANSCRIPTION_VOCABULARY_ID}`

Deletes a Transcription Vocabulary. The Transcription Vocabulary's ID will be disassociated from any live streams using it. Transcription Vocabularies can be deleted while associated live streams are active. However, the words and phrases in the deleted Transcription Vocabulary will remain attached to those streams while they are active.

Operation ID: `delete-transcription-vocabulary`. HTML version: https://www.mux.com/docs/api-reference/video/transcription-vocabularies/delete-transcription-vocabulary

### Path parameters

- `TRANSCRIPTION_VOCABULARY_ID` (string, required): The ID of the Transcription Vocabulary.

### Response `204`

No Content

## Update a Transcription Vocabulary

`PUT https://api.mux.com/video/v1/transcription-vocabularies/{TRANSCRIPTION_VOCABULARY_ID}`

Updates the details of a previously-created Transcription Vocabulary. Updates to Transcription Vocabularies are allowed while associated live streams are active. However, updates will not be applied to those streams while they are active.

Operation ID: `update-transcription-vocabulary`. HTML version: https://www.mux.com/docs/api-reference/video/transcription-vocabularies/update-transcription-vocabulary

### Path parameters

- `TRANSCRIPTION_VOCABULARY_ID` (string, required): The ID of the Transcription Vocabulary.

### Request body

- `name` (string): The user-supplied name of the Transcription Vocabulary.
- `phrases` (array of string, required, maxItems: 1000): Phrases, individual words, or proper names to include in the Transcription Vocabulary. When the Transcription Vocabulary is attached to a live stream's `generated_subtitles`, the probability of successful speech recognition for these words or phrases is boosted. Each item: minLength: 1, maxLength: 32.
- `passthrough` (string): Arbitrary user-supplied metadata set for the Transcription Vocabulary. Max 255 characters.

Example request body:

```json
{
  "name": "Mux API Vocabulary - Updated",
  "phrases": [
    "Mux",
    "Live Stream",
    "RTMP",
    "Stream Key"
  ]
}
```

### Response `200`

OK

- `data` (object, required)
  - `id` (string, required): Unique identifier for the Transcription Vocabulary
  - `name` (string): The user-supplied name of the Transcription Vocabulary.
  - `phrases` (array of string, maxItems: 1000): Phrases, individual words, or proper names to include in the Transcription Vocabulary. When the Transcription Vocabulary is attached to a live stream's `generated_subtitles` configuration, the probability of successful speech recognition for these words or phrases is boosted. Each item: minLength: 1, maxLength: 32.
  - `passthrough` (string): Arbitrary user-supplied metadata set for the Transcription Vocabulary. Max 255 characters.
  - `created_at` (string, required, format: int64): Time the Transcription Vocabulary was created, defined as a Unix timestamp (seconds since epoch).
  - `updated_at` (string, required, format: int64): Time the Transcription Vocabulary was updated, defined as a Unix timestamp (seconds since epoch).
