Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
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;

Réponse acceptée

studentmatlaber
studentmatlaber le 6 Mar 2022
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)

Plus de réponses (0)

Catégories

En savoir plus sur Sequence and Numeric Feature Data Workflows dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by