Generating an Echo for an Audio Signal using Convolution
30 ビュー (過去 30 日間)
古いコメントを表示
[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 件のコメント
採用された回答
Prakash S R
2022 年 5 月 10 日
編集済み: Prakash S R
2022 年 5 月 10 日
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
その他の回答 (1 件)
mariam
2023 年 12 月 5 日
[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 件のコメント
参考
カテゴリ
Help Center および File Exchange で Audio I/O and Waveform Generation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!