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.

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(y)/fs;

Hope this helps!

Cheers,
Kurt
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top