# plot\_waveform

> plot\_waveform(y: npt.ArrayLike, sr: int, start\_time: float = 0.0, end\_time: float = None)

{% hint style="info" %}
Function description
{% endhint %}

To show the waveform in time domain of a sound file

{% hint style="info" %}
Parameter
{% endhint %}

y: input signal

sr: sampling rate (22050 Hz by default)

{% hint style="info" %}
Return
{% endhint %}

None

{% hint style="info" %}
Example
{% endhint %}

{% code overflow="wrap" %}

```python
from audioviz import *
import librosa
import numpy as np
from audioviz import GeneralAnalysis

y, sr = librosa.load('Mozart_Turkish_March.wav', duration = 45)
GeneralAnalysis.plot_waveform(y = y, sr = sr, start_time=8, end_time=24)
```

{% endcode %}

<figure><img src="https://3500702469-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh9wXRXdIQoYFVdZ0YFUo%2Fuploads%2F90DchBinSEu5wDaKZvOa%2Fimage.png?alt=media&#x26;token=cfe53e7f-4c47-45e5-870d-83ae9a715a7f" alt=""><figcaption></figcaption></figure>
