# tfio.audio.fade

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/io/blob/v0.24.0/tensorflow_io/python/ops/audio_ops.py#L369-L425) |

Apply fade in/out to audio.

    tfio.audio.fade(
        input, fade_in, fade_out, mode, name=None
    )

### Used in the notebooks

| Used in the tutorials |
|---|
| - [Audio Data Preparation and Augmentation](https://www.tensorflow.org/io/tutorials/audio) |

<br />

<br />

<br />

| ## Args ||
|---|---|
| `input` | An audio spectogram. |
| `fade_in` | Length of fade in. |
| `fade_out` | Length of fade out. |
| `mode` | Mode of the fade. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A tensor of audio. ||

<br />