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()