in this stepwe will display the parameters like sampling frequency of the audio signaldata type of signal and its durationusing the commands given belowprint('\nsignal shape:'audio_signal shapeprint('signal datatype:'audio_signal dtypeprint('signal duration:'round(audio_signal shape[ float(frequency_sampling) )'seconds'in this stepwe need to normalize the signalas shown in the following commandaudio_signal audio_signal np power( this step involves extracting the length and half length of the signal use the following commands for this purposelength_signal len(audio_signalhalf_length np ceil((length_signal astype(np intnowwe need to apply mathematics tools for transforming into frequency domain here we are using the fourier transform signal_frequency np fft fft(audio_signalnowdo the normalization of frequency domain signal and square itsignal_frequency abs(signal_frequency[ :half_length]length_signal signal_frequency ** nextextract the length and half length of the frequency transformed signallen_fts len(signal_frequencynote that the fourier transformed signal must be adjusted for even as well as odd case if length_signal signal_frequency[ :len_fts* elsesignal_frequency[ :len_fts- * nowextract the power in decibal(db)signal_power np log (signal_frequencyadjust the frequency in khz for -axis