1437
Computer
- Oct 23, 2003
- 4
How to break down a speech signal into frame of 160 samples, each frame covers 20ms?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
sigdata = your original signal in a row vector
spf = 160; % number of samples required per frame
sigdata_pad = [sigdata zeros(1,spf-mod(length(sigdata),spf)]; % pad the signal with zeros so that its length is a multiple of 160
framed_data = reshape(sigdata,[],spf);