# Class TextStream (1.17.0)

1.17.0 (latest) 1.16.0 1.15.0 1.14.0 1.13.0 1.12.0 1.11.0 1.10.0 1.9.1 1.8.1 1.7.4 1.6.0 1.5.2 1.4.1 1.3.0 1.2.1 1.1.0 1.0.4 0.2.0 0.1.5

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

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

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `codec` | `str` Required. The codec for this text stream. Supported text codecs: - `cea608` - `cea708` - `webvtt` |
| `language_code` | `str` Optional. 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. |
| `display_name` | `str` Optional. The name for this particular text stream that will be added to the HLS/DASH manifest. |
| `output_cea_channel` | `str` Optional. The channel of the closed caption in the output stream. This field should only be set when textstream is used for partner distribution. Must be one of `CC1`, `CC2`, `CC3`, and `CC4`, if the codec is `cea608`; Must be one between `SERVICE1` and `SERVICE63`, if the codec is `cea708`. |
| `mapping_` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/livestream/latest/google.cloud.video.live_stream_v1.types.TextStream.TextMapping]` Optional. The mapping for the input streams and text tracks. |

## Classes

### TextMapping

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

The mapping for the input streams and text tracks.