How do I set the decibel in the Denoise Speech Using Deep Learning Networks example?

1 次查看(过去 30 天)
Made for 0 dB in this example. But I want to diversify it. How to adjust 5dB and 15dB
noisePower = sum(noiseSegment.^2);
cleanPower = sum(audio.^2);
noiseSegment = noiseSegment .* sqrt(cleanPower/noisePower);
noisyAudio = audio + noiseSegment;

采纳的回答

studentmatlaber
studentmatlaber 2022-3-6
db = 10;
noisePower = sum(noiseSegment.^2);
cleanPower = sum(audio.^2);
K = (cleanPower/noisePower)*10^(-dB/10);
noiseSegment = noiseSegment .* sqrt(K); % Change Noise vector
noisyAudio = audio + noiseSegment;
sound(noisyAudio,adsTrainInfo.SampleRate)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Portfolio Optimization and Asset Allocation 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by