# tfio.audio.trim

<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#L291-L316) |

Trim the noise from beginning and end of the audio.

    tfio.audio.trim(
        input, axis, epsilon, 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 Tensor. |
| `axis` | The axis to trim. |
| `epsilon` | The max value to be considered as noise. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A tensor of start and stop with shape `[..., 2, ...]`. ||

<br />