In: Electrical Engineering
|
Record your voice signal in mp3 or .dat format. Write a Matlab program to produce an echo signal. Critically analyze the system and find out the value of delay in milli seconds required to get a good echo effect on the recorded voice. Demonstrate the results by playing the signal using sound command in Matlab. I need command in matlab from recorded signal to eco-signal and delay and play |
Hello,
Please find
the answer attached as under. Please give a thumbs up
rating if you find the answer useful! Have a rocking day
ahead!
NOTE: i do not have access to your recorded voice sample, hence I have written the code for a stored sample:
************ Matlab Code ************
load handel;
%to add an echo after 1s (with amplitude=0.5, phase=pi/3.5)
echo_vector=[1
zeros(1,Fs) ...
0.5*exp(1i*pi/3.5) zeros(1,1.5*Fs) ...
0.5*exp(1i*1.2*pi)
];
yecho=real(conv(y,echo_vector));
sound(yecho,Fs);
*********** End of Code *****************
*****************************************************************
PS: Please do not forget the thumbs
up!