I need help by adding an echo in to a 8kHz, 1 channel, 8 bit voice signal. I need to use this equation to add the signal x(n)=s(n)+r1s(n-k1)+r2s(n-k2)
where r1=.6,r2=.3, k1=5
seconds, and k2=12
seconds.
[y,fs]=audioread('voice.wav');
t=[1/fs:1/fs:length(y)/fs];
sound(y,fs);
figure
plot(t,y)
y1=y+.6*y*(40000)+y*.3*(96000);
sound(y1)
plot(y1)
when I play it back it does not have an echo. any help on this would be appreciated.