# Class TextMapping (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

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

The mapping for the input streams and text tracks.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `input_key` | `str` Optional. The `Channel` InputAttachment.key that identifies the input that this text mapping applies to. |
| `input_track` | `int` Optional. The zero-based index of the track in the input stream. |
| `input_cea_channel` | `str` Optional. The channel of the closed caption in the input stream. If this field is set, the output codec must be `webvtt`. Must be one of `CC1`, `CC2`, `CC3`, and `CC4`, if the codec of the input closed caption is `cea608`; Must be one between `SERVICE1` and `SERVICE64`, if the codec of the input closed caption is `cea708`. |
| `from_language_code` | `str` Optional. The BCP-47 source language code, such as `en-US` or `sr-Latn`. If differ from the textStream's language code, enable translation. For more information on BCP-47 language codes, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. |