Dividing speech signal into short-time segments?

3 views (last 30 days)
Hi all. I created a speech signal in Matlab. I need to divide speech signal into short-time segments with lengths 150 samples. Later I will process each segment to determine if it is voiced or unvoiced, and pitch period for voiced speechs. Here is the info:

Accepted Answer

Baltam
Baltam on 12 Apr 2016
If your sound signal is a vector, try to use reshape. For example from the info I understand that your sound signal would be a vector with 72000 elements which you want to divide in groups of 150.
SeperatedSoundSignal = reshape(soundSignal,150,72000/150);
This will convert your vector into 72000/150 columns which have each 150 elements/samples.
Kind regards, Baltam
  6 Comments
jack star
jack star on 12 Apr 2016
Edited: jack star on 12 Apr 2016
Thank you very much.
SSV
SSV on 13 Oct 2019
Hi, I have a doubt in case if we couldnt make it as a square matrix then what is the alternative way?
In my case I have 112456x1 , I need to do the segmentation for 600 samples per segment .

Sign in to comment.

More Answers (0)

Categories

Find more on AI for Audio in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!