1. Learn
  2. /
  3. Courses
  4. /
  5. Spoken Language Processing in Python

Connected

Exercise

Processing audio data with Python

You've seen how a sound waves can be turned into numbers but what does all that conversion look like?

And how about another similar sound wave? One slightly different?

In this exercise, we're going to use MatPlotLib to plot the sound wave of good_morning against good_afternoon.

To have the good_morning and good_afternoon sound waves on the same plot and distinguishable from each other, we'll use MatPlotLib's alpha parameter.

You can listen to the good_morning audio here and good_afternoon audio here.

Instructions

100 XP
  • Set the title to reflect the plot we are making.
  • Add the good_afternoon time variable (time_ga) and amplitude variable (soundwave_ga) to the plot.
  • Do the same with the good_morning time variable (time_gm) and amplitude variable (soundwave_gm) to the plot.
  • Set the alpha variable to 0.5.