Generating an Echo for an Audio Signal using Convolution
30 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Abdelrhman Abdelfatah
il 10 Mag 2022
[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
0 Commenti
Risposta accettata
Prakash S R
il 10 Mag 2022
Modificato: Prakash S R
il 10 Mag 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
Più risposte (1)
mariam
il 5 Dic 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)
0 Commenti
Vedere anche
Categorie
Scopri di più su Audio I/O and Waveform Generation in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!