# Class TextStream (1.21.0)

1.21.0 (latest) 1.20.0 1.19.0 1.18.0 1.17.0 1.16.0 1.15.2 1.14.0 1.13.1 1.12.5 1.11.0 1.10.1 1.9.1 1.8.2 1.7.0 1.6.1 1.5.0 1.4.3 1.3.2 1.2.1 1.1.0 1.0.1 0.5.1 0.4.1 0.3.1 0.2.1 0.1.0

    TextStream(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Encoding of a text stream. For example, closed captions or
subtitles.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `codec` | `str` The codec for this text stream. The default is `webvtt`. Supported text codecs: - `srt` - `ttml` - `cea608` - `cea708` - `webvtt` |
| `language_code` | `str` The BCP-47 language code, such as `en-US` or `sr-Latn`. For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. Not supported in MP4 files. |
| `mapping_` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/transcoder/latest/google.cloud.video.transcoder_v1.types.TextStream.TextMapping]` The mapping for the JobConfig.edit_list atoms with text EditAtom.inputs. |
| `display_name` | `str` The name for this particular text stream that will be added to the HLS/DASH manifest. Not supported in MP4 files. |

## Classes

### TextMapping

    TextMapping(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The mapping for the
JobConfig.edit_list
atoms with text
EditAtom.inputs.