Search for question
Question

Task 9 Generation of a wave file via Scipy (1 point) Let SAMPLE_RATE=44000 and DURATION=5 in the units of Hertz and seconds, respectively. Generate two sine waves, signal 1 and signal

2, with frequencies = 432 and 4000 Hz, respectively. Scale down the magnitude of signal 2 by a factor of 0.3. Let mixed_signal = signal 1 + signal 2 Scale up the magnitude of mixed_signal by a factor of 400 Use Matplotlib to plot the first 1000 data points of mixed_signal. 2 Use Scipy to output mixed_signal as a wave file ('output.wav") Play the output.wav by a media player.

Fig: 1