Question

In: Electrical Engineering

Record your voice signal in mp3  or .dat format. Write a Matlab program to produce an echo...


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

Solutions

Expert Solution

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!


Related Solutions

Write a matlab code to do following steps; i) Record your voice by sampling frequency 22...
Write a matlab code to do following steps; i) Record your voice by sampling frequency 22 kHz ii) Down sample the voice by 2 listen to your voice iii) Down sample the voice by 3 listen to your voice Please explain the code clearly. Thank you.
Need explanation of MATLAB code which creates echo. (SIGNAL PROCESSING) If the original audio signal is...
Need explanation of MATLAB code which creates echo. (SIGNAL PROCESSING) If the original audio signal is x(t) then the echo is y(t) = x(t) + alpha*x(t-delay) This code below creates this echo however I don't understand how every line of the code works, could someone comment this code so I can understand? [x,Fs] = audioread('Hallelujah.wav'); sound(x,Fs); delay = 0.5; % 0.5s delay alpha = 0.65; % echo strength D = delay*Fs; y = zeros(size(x)); y(1:D) = x(1:D); for i=D+1:length(x) y(i)...
Design a Matlab program that records your voice for 5 seconds and then cuts off the...
Design a Matlab program that records your voice for 5 seconds and then cuts off the low frequencies. Then, have the program play the edited recording.   
write a program in matlab to produce a discrete event simulation of a switching element with...
write a program in matlab to produce a discrete event simulation of a switching element with 10 inputs and 3 outputs. Time is slotted on all inputs and outputs. Each input packet follows a Bernoulli process. In a given slot, the independent probability that a packet arrives in a slot is p and the probability that a slot is empty is (1– p). One packet fills one slot. For a switching element if 3 or less packets arrives to some...
MATLAB: Write as a script in the editor window of matlab. Quadratic roots. Write a program,...
MATLAB: Write as a script in the editor window of matlab. Quadratic roots. Write a program, quadroots.m, for finding the roots of the second- order polynomial ax2 + bx + c. Use the quadratic equation. The inputs are the coefficients a,b, and c and the outputs are z1 and z2. The program should produce (exactly) the following output in the Command window when run with (a, b, c) = (1, 2, −3):
Write a C program that, given a file named Program_2.dat as input, determines and prints the...
Write a C program that, given a file named Program_2.dat as input, determines and prints the following information: The number of characters in the file. The number of uppercase letters in the file. The number of lowercase letters in the file. The number of words in the file. The number of lines in the file. Your program should assume that the input file, Program_2.dat, may contain any text whatsoever, and that text might be, or might not be, the excerpt...
In JAVA Write a brief program that writes your name to a file in text format...
In JAVA Write a brief program that writes your name to a file in text format and then reads it back. Use the PrintWriter and Scanner classes.
Write an Matlab Program for Wankel Engine Gemontry. State your and assumptions and post the code
Write an Matlab Program for Wankel Engine Gemontry. State your and assumptions and post the code
USE MATLAB Write a program in Matlab that would continuously ask the user for an input...
USE MATLAB Write a program in Matlab that would continuously ask the user for an input between 1 and 6, which would represent the result of rolling a die. The program would then generate a random integer between 1 and 6 and compare its value to the value entered by user. If the user’s die is larger, it should display, “Mahahanap mo na ang forever mo. Sana all!” If the user’s die is smaller, it should display, “Gising na friend,...
Write a program to produce an array of integer random numbers. Your program should find out...
Write a program to produce an array of integer random numbers. Your program should find out from the user how many numbers to store. It should then generate and store that many random integers (the random numbers must be between 1 and 999 inclusive). The program should then determine the smallest number, the largest number, and the average of all the numbers stored in the array. Finally, it should print out all the numbers on the screen, five numbers to...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT