Generating an Echo for an Audio Signal using Convolution

22 views (last 30 days)
[y,Fs] = audioread('Test1.wav');
delay=0.8*Fs; %Delay
h(delay)=attenuation_factor; %Impulse at delay
z=conv(y,h); %Convolution
The produced sound doesn't include the desired echo, and not sure why so. I would apprechiate the help

Accepted Answer

Prakash S R
Prakash S R on 10 May 2022
Edited: Prakash S R on 10 May 2022
z is simply the delayed input (echo). You forgot to add echo to the input! You are listening to the echo component only, not sound + echo

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by