(Solved):
Implement the following functions using MATLAB or Python: - Downsample: A function that takes as i ...
Implement the following functions using MATLAB or Python: - Downsample: A function that takes as input the file name of an input audio file, the downsampling factor (integer only), and the file name of the output downsampled audio file. This function should change the sampling rate of the input audio from \( F_{s} \) to \( \left(F_{s} /\right. \) downsampling factor) without changing the duration of the audio. - IncreaseSpeed: A function that takes as input the file name of an input audio file, the speeding factor (integer only), and the file name of the output increased speed audio file. This function should change the duration of the input audio from \( T \) to ( \( T \) /speeding factor) without changing the sampling rate. Deliverables: - Your code (either MATLAB .m files or Python .py or Jupyter notebook files). - Apply the Downsample function to the audio file provided "Audio1.wav" using a downsampling factor of 2, 3, and 10. Name the output files "Audio1_Down_2.wav", "Audio1_Down_3.wav" and "Audio1_Down_10.wav", respectively. The sampling rate of the original audio is \( 14.4 \mathrm{KHz} \). - The file "Audio1. wav" represents the following signal: \[ x_{a}(t)=0.1 \sin (2 \pi \times 1000 t)+0.9 \sin \left(2 \pi \times 3000 t+\frac{\pi}{3}\right) \] Comment on which of the downsampling factors results in a noticeable change in the audio and the reasons for such a change. - Apply the Downsample function to the audio file provided "Audio2.wav" using a downsampling factor of 2, 10, and 35. Name the output files "Audio2_Down_2.wav", "Audio2_Down_10.wav" and "Audio2_Down_35.wav", respectively. The sampling rate of the original audio is \( 44.1 \mathrm{KHz} \).