# tfio.audio.melscale

<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#L105-L131) |

Turn spectrogram into mel scale spectrogram

    tfio.audio.melscale(
        input, rate, mels, fmin, fmax, 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` | A spectrogram Tensor with shape \[frames, nfft+1\]. |
| `rate` | Sample rate of the audio. |
| `mels` | Number of mel filterbanks. |
| `fmin` | Minimum frequency. |
| `fmax` | Maximum frequency. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A tensor of mel spectrogram with shape \[frames, mels\]. ||

<br />