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

2 ビュー (過去 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 Center および File ExchangeSequence and Numeric Feature Data Workflows についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by