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

2 visualizaciones (últimos 30 días)
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;

Respuesta aceptada

studentmatlaber
studentmatlaber el 6 de Mzo. de 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)

Más respuestas (0)

Categorías

Más información sobre Sequence and Numeric Feature Data Workflows en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by