Pythonで音声データを処理する
この演習はコースの一部です
Pythonで学ぶ音声言語処理
演習の手順
- 作成するプロット内容が分かるようにタイトルを設定します。
- プロットに
good_afternoonの時間変数(time_ga)と振幅変数(soundwave_ga)を追加します。 - 同様に、
good_morningの時間変数(time_gm)と振幅変数(soundwave_gm)も追加します。 alphaを0.5に設定します。
実践的なインタラクティブ演習
このサンプルコードを完成させて、この演習に挑戦してみましょう。
# Setup the title and axis titles
plt.title('Good Afternoon vs. Good ____')
plt.ylabel('Amplitude')
plt.xlabel('Time (seconds)')
# Add the Good Afternoon data to the plot
plt.plot(____, ____, label='Good Afternoon')
# Add the Good Morning data to the plot
plt.plot(____, ____, label='Good Morning',
# Set the alpha variable to 0.5
alpha=____)
plt.legend()
plt.show()