Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

plot or view the result of frame blocking

Status
Not open for further replies.

Ax's

Newbie level 3
Newbie level 3
Joined
Apr 24, 2013
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,306
Hi all,..
i want to create a speech recognition program that use MFCC. I have a problem to plot the frame blocking result. I use MATLAB. this is the coding i use to frame blocking.

m=100;
n=256;
l = length('waka.wav');
nbFrame = floor(((l - n) / m) + 1);
for i = 1:n
for j = 1:nbFrame
M(i, j) = s(((j - 1) * m) + i);



please help me to plot and view the frame blocking result in MATLAB.
thank you..
 

use buffer for frame blocking;

k is speech wave; N is frame length and Ov_lap is overlapping

Code:
y=buffer(k,N,Ov_lap);
[fr_sz fr_nm]=size(y);
t_vec=(1:length(k))/fs;

plot(t_vec(:,1:fr_sz),y(:,fr_nm));
 

    V

    Points: 2
    Helpful Answer Positive Rating
I have try the coding that you give
I have an error

Error using ==> buffer
Input must be a vector.

Error in ==> FrameBlock at 24
y=buffer(k,N,Ov_lap);


I use k=wavread ('waka.wav');
N=256;
Ov_lap =50;
 

I have try the coding that you give
I have an error

Error using ==> buffer
Input must be a vector.

Error in ==> FrameBlock at 24
y=buffer(k,N,Ov_lap);


I use k=wavread ('waka.wav');
N=256;
Ov_lap =50;


dear Ax's

your .wav file matrix should be a vector, means a column matrix. see help buffer in matlab for details.

Savor; Best.
 

dear dashkil,..

I have try, try and try this frame blocking.
Iam newbie in DSP.
in normally what the frame blocking output is?
my frame blocking coding output is a matrix (I think it is a matrix) with 256 column. is it a right output?
 

dear dashkil,..

I have try, try and try this frame blocking.
Iam newbie in DSP.
in normally what the frame blocking output is?
my frame blocking coding output is a matrix (I think it is a matrix) with 256 column. is it a right output?

i guess it is right; pls post the code.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top