import the necessary packages as shown hereimport numpy as np import matplotlib pyplot as plt from scipy io import wavfile nowread the stored audio file it will return two valuesthe sampling frequency and the audio signal provide the path of the audio file where it is storedas shown herefrequency_samplingaudio_signal wavfile read("/users/admin/audio_file wav"display the parameters like sampling frequency of the audio signaldata type of signal and its durationusing the commands shownprint('\nsignal shape:'audio_signal shapeprint('signal datatype:'audio_signal dtypeprint('signal duration:'round(audio_signal shape[ float(frequency_sampling) )'seconds'this step involves normalizing the signal as shown belowaudio_signal audio_signal np power( in this stepwe are extracting the first values from this signal to visualize use the following commands for this purposeaudio_signal audio_signal [: time_axis np arange( len(signal) float(frequency_samplingnowvisualize the signal using the commands given belowplt plot(time_axissignalcolor='blue'plt xlabel('time (milliseconds)'plt ylabel('amplitude'plt title('input audio signal'plt show(you would be able to see an output graph and data extracted for the above audio signal as shown in the image here