I have been working on the decorrelation of audio signals while following this paper :
The Decorrelation of Audio Signals and Its Impact on Spatial Imagery
So far I have generated impulse responses in such a way that magnitude is 1 in all frequency spectrum, while random phase generation between -π to π. I correlated these signals and I am getting the required correlation.
Now moving on, when I convolve this impulse response with my audio signal, results in the case of decorrelation are good but the audio becomes noisy and distorted. I am attaching the reference wav file and decorrelated wav file.
Some points regarding computation:
- All audio data computations are in float range [-1.0:1.0].
- I am using Python to perform all the calculations
- The input reference file is in Short (PCM 16 bit) format which is converted to float range [-1.0:1.0].
I have saved convolved_decorrelated_output.wav in both formats PCM 16 bit short and Float as mentioned above. Still getting the same results. So there are no issues regarding data type conversion as per my knowledge.
Any help will be appreciated.
Regards,
Khubaib Ahmad
P.S: Link to download wav files:
https://www.researchgate.net/post/Why_there_is_static_noise_and_voice_distortion_after_convolving_it_with_impulse_response
Convolution_code:
resultant_chunk = list()
for chunk in data_chunks:
resultant_chunk.append(np.convolve(chunk,impulse1,mode="same"))
resultant_chunk = np.hstack(resultant_chunk)
# diff = len(resultant_chunk) - len(data)|
diff = len(resultant_chunk) - len(recorded_data)
resultant_chunk = resultant_chunk[:-diff]
len(resultant_chunk)