Pre-emphasis filter
Hello everybody
My question is:-
firstly,I should record any speech signal with 8KHZ and 8 bit and I don’t know how can I apply speech signal with (8KHZ and 8 bit)
and then I must pass this speech signal throw pre-emphasis filter and finaly I listen to the differencr after and before filtering.
But another confusing thing for me that my pro said I must use cinvolution in my program
And I did my program but I’m not sure from it because I have error like this
??? Error using ==> conv at 27
A and B must be vectors.
Error in ==> speech2 at 18
s3=conv(s1,ypre);
and I don’t know how can I add 8kHZ and 8 bit in true form in my program
The program:-
f=8000;
apre=[1];
[s1,f]=wavread(‘C:UsersNDesktopfamily.wav’);
figure(1)
plot(s1)
title(‘speech signal’);
sound(s1,f);
pause
% design pre-emphasis filter
bpre=[1 -0.95];
fvtool(bpre,apre);
ypre=filter(bpre,apre,s1);
figure(2)
plot(ypre);
title(‘First filter response’);
sound(ypre,f);
pause
s3=conv(s1,ypre);
figure(3);
plot(s3);
title(‘speech after filtering’);
sound(m,fs);
pauseHello everybody
My question is:-
firstly,I should record any speech signal with 8KHZ and 8 bit and I don’t know how can I apply speech signal with (8KHZ and 8 bit)
and then I must pass this speech signal throw pre-emphasis filter and finaly I listen to the differencr after and before filtering.
But another confusing thing for me that my pro said I must use cinvolution in my program
And I did my program but I’m not sure from it because I have error like this
??? Error using ==> conv at 27
A and B must be vectors.
Error in ==> speech2 at 18
s3=conv(s1,ypre);
and I don’t know how can I add 8kHZ and 8 bit in true form in my program
The program:-
f=8000;
apre=[1];
[s1,f]=wavread(‘C:UsersNDesktopfamily.wav’);
figure(1)
plot(s1)
title(‘speech signal’);
sound(s1,f);
pause
% design pre-emphasis filter
bpre=[1 -0.95];
fvtool(bpre,apre);
ypre=filter(bpre,apre,s1);
figure(2)
plot(ypre);
title(‘First filter response’);
sound(ypre,f);
pause
s3=conv(s1,ypre);
figure(3);
plot(s3);
title(‘speech after filtering’);
sound(m,fs);
pause Hello everybody
My question is:-
firstly,I should record any speech signal with 8KHZ and 8 bit and I don’t know how can I apply speech signal with (8KHZ and 8 bit)
and then I must pass this speech signal throw pre-emphasis filter and finaly I listen to the differencr after and before filtering.
But another confusing thing for me that my pro said I must use cinvolution in my program
And I did my program but I’m not sure from it because I have error like this
??? Error using ==> conv at 27
A and B must be vectors.
Error in ==> speech2 at 18
s3=conv(s1,ypre);
and I don’t know how can I add 8kHZ and 8 bit in true form in my program
The program:-
f=8000;
apre=[1];
[s1,f]=wavread(‘C:UsersNDesktopfamily.wav’);
figure(1)
plot(s1)
title(‘speech signal’);
sound(s1,f);
pause
% design pre-emphasis filter
bpre=[1 -0.95];
fvtool(bpre,apre);
ypre=filter(bpre,apre,s1);
figure(2)
plot(ypre);
title(‘First filter response’);
sound(ypre,f);
pause
s3=conv(s1,ypre);
figure(3);
plot(s3);
title(‘speech after filtering’);
sound(m,fs);
pause signal processing MATLAB Answers — New Questions