clean = normalize_segmental_rms(clean, rms=rmsclean, target_level=target_level)
noise = normalize_segmental_rms(noise, rms=rmsnoise, target_level=target_level)
# Set the noise level for a given SNR
noisescalar = rmsclean / (10**(**snr**/20)) / (rmsnoise+EPS)
noisenewlevel = noise * noisescalar
when use snr, the rms of clean and noise is changed due to clean and noise signals are changed in normalize_segmental_rms(), so why use rmsclean and rmsnoise when calculate noisescalar?
in function
line 165 and on:
when use snr, the rms of clean and noise is changed due to clean and noise signals are changed in
normalize_segmental_rms()
, so why usermsclean
andrmsnoise
when calculatenoisescalar
?