Effacer les filtres
Effacer les filtres

Generating an Echo for an Audio Signal using Convolution

14 vues (au cours des 30 derniers jours)
Abdelrhman Abdelfatah
Abdelrhman Abdelfatah le 10 Mai 2022
Réponse apportée : mariam le 5 Déc 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)
The produced sound doesn't include the desired echo, and not sure why so. I would apprechiate the help

Réponse acceptée

Prakash S R
Prakash S R le 10 Mai 2022
Modifié(e) : Prakash S R le 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

Plus de réponses (1)

mariam
mariam le 5 Déc 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)

Catégories

En savoir plus sur Audio I/O and Waveform Generation dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by