Previous Up Next

15.1.10  Visualizing power spectra: plotspectrum

The plotspectrum command displays the power spectrum of an audio clip.


Example.
Assuming that a male voice is recorded in the file example1.wav:
Input:

clip:=readwav("/path/to/sounds/example1.wav"):;
plotspectrum(clip,range=[0,1500])

Output:

You can see that the dominant frequency is around 220 Hz, which is the middle of tenor range. This is consistent with the fact that a man is speaking in the clip.


Previous Up Next