Filter löschen
Filter löschen

Generating an Echo for an Audio Signal using Convolution

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

Akzeptierte Antwort

Prakash S R
Prakash S R am 10 Mai 2022
Bearbeitet: Prakash S R am 10 Mai 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

Weitere Antworten (1)

mariam
mariam am 5 Dez. 2023
[y,Fs] = audioread('Test1.wav');
delay=0.8*Fs; %Delay
attenuation_factor=0.4;
h=zeros(1,delay);%Impulse
h(delay)=attenuation_factor; %Impulse at delay
z=conv(y,h); %Convolution
sound(z,Fs)

Kategorien

Mehr zu Audio I/O and Waveform Generation finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by