필터 지우기
필터 지우기

How to add multiplicative noise to audio?

조회 수: 6 (최근 30일)
studentmatlaber
studentmatlaber 2022년 5월 31일
댓글: studentmatlaber 2022년 6월 1일
Hello everyone, I want to add multiplicative noise on top of the sounds. There is an example in the link attached to the picture. Can I add this code to my audio file in the same way?
J = imnoise(I,'speckle')
adds multiplicative noise using the equation J = I+n*I, where n is uniformly distributed random noise with mean 0 and variance 0.05.

채택된 답변

Jan
Jan 2022년 5월 31일
편집: Jan 2022년 5월 31일
According to the name "multiplicative noise" I'd expect this to work also:
t = linspace(0, 5, 5 * 1000);
yourSound = sin(2 * pi * 8000 * t);
noise = randn(size(t)) * 0.05;
result = yourSound .* (1 + noise);
  댓글 수: 3
Jan
Jan 2022년 6월 1일
I do not understand, what this means: "How do we know there is multiplicative noise here?" The code I've posted creates multiplicative noise explicitly. So we know this, because we did this on purpose.
Additive noise means: output = signal + noise
Multiplicative noise means: output = signal * (1 + noise)
studentmatlaber
studentmatlaber 2022년 6월 1일
ı was confused. Now i understand. Thank you so much.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Image Analyst
Image Analyst 2022년 5월 31일
Most image processing functions will also work with 1-D signals, as is the case with imnoise
v = 1 : 100;
vNoisy = imnoise(v, 'speckle', 2);

카테고리

Help CenterFile Exchange에서 Audio I/O and Waveform Generation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by