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

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

The mapping for the input streams and audio channels.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `input_key` | `str` Required. The `Channel` InputAttachment.key that identifies the input that this audio mapping applies to. If an active input doesn't have an audio mapping, the primary audio track in the input stream will be selected. |
| `input_track` | `int` Required. The zero-based index of the track in the input stream. All mappings in the same AudioStream must have the same input track. |
| `input_channel` | `int` Required. The zero-based index of the channel in the input stream. |
| `output_channel` | `int` Required. The zero-based index of the channel in the output audio stream. Must be consistent with the input_channel. |
| `gain_db` | `float` Audio volume control in dB. Negative values decrease volume, positive values increase. The default is 0. |