1. Learn
  2. /
  3. Courses
  4. /
  5. Machine Learning for Time Series Data in Python

Connected

Exercise

Engineering spectral features

As you can probably tell, there is a lot more information in a spectrogram compared to a raw audio file. By computing the spectral features, you have a much better idea of what's going on. As such, there are all kinds of spectral features that you can compute using the spectrogram as a base. In this exercise, you'll look at a few of these features.

The spectogram spec from the previous exercise is available in your workspace.

Instructions 1/2

undefined XP
    1
    2

Calculate the spectral bandwidth as well as the spectral centroid of the spectrogram by using functions in librosa.feature.