Previous Up Next

26.2.12  Visualizing power spectra

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

Example

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

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

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 male is speaking in the clip.


Previous Up Next