|
Algorithm 1 Audio Denoising Algorithm |
-
1:
Input: Noisy audio file input_audio.wav
-
2:
Output: Denoised audio file output_denoised.wav
-
3:
Load the input audio file and sampling rate kHz
-
4:
Normalize the audio data to the range
-
5:
Compute the short-time fourier transform (STFT):
-
6:
Estimate noise power spectrum from the first silent frames:
-
7:
-
8:
Apply spectral gating using gain function:
-
9:
Filter the STFT coefficients:
-
10:
Perform inverse STFT to reconstruct the denoised signal:
-
11:
Normalize and save the denoised audio as output_denoised.wav
|