- k = 16; % number of centroids required
- n=1;
- % train a VQ codebook for each speaker
- file = sprintf('E:Stoolsmatlabworktrains1.wav',1);
- %disp(file);
- [s, fs] = wavread(file);
- v = mfcc(s, fs); % Compute MFCC's
- code = vqlbg(v, k); % Train VQ codebook
- plot(code);