Length of a speech signal

Status
Not open for further replies.

hassaanliu

Newbie level 4
Joined
Sep 16, 2011
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,319
Hello Guys

I have a speech signal and I have read it in MATLAB using [y,fs,bits] = wavread('a.wav'). It gives me the following results

bits = 16 (value) min (16) max (16)
fs = 44100 (value) min (44100) max (44100)
y = [25743x1 double] (value) min (-0.7074) max (0.6879)

I know fs is sampling frequency. y is the sample values but do not know what is bits.
I want to know the length of this speech signal in terms of time (sec, msec or usec). How I can do it MATLAB? I also wanna cut this speech signal into small frames. How I can do that in MATLAB? Would somebody suggest me some code??

Regards
Hassan
 

Hi Hassaanliu,

The length of the speech signal in seconds (let's call it T) is equal to the number of samples divided by the sample rate. In MATLAB:

T=length/fs;

Hope this helps!

Cheers,
Kurt
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…