Forums

Importing .wav in Matlab - why two columns?

Started by Gina Upperman November 21, 2005
Hi All -
I am trying to make a simple speech recognition program. I have samples of
spoken words saved as .wav files that I am importing into Matlab in order to
obtain the sequence of floating-point values that make it up. (I will then
perform LPC on these values ...) When I import the .wav files in Matlab,
the data matrix consists of two columns of several different values. I am
confused as to why there are two columns. In order to get simply the
time-domain values, can I take just the first column or do I need to combine
the two?
Any help would be appreciated. Thank you very much,
Gina Upperman


Hello,

Is it a mono or stereo signal? If it's a stereo signal, you will have a
two column matrix of course, each column represents either the left or
the right channel.

What is a LPC?

Regards

Carsten

>I am trying to make a simple speech recognition program. I
>have samples of spoken words saved as .wav files that I am
>importing into Matlab in order to obtain the sequence of
>floating-point values that make it up. (I will then perform
>LPC on these values ...) When I import the .wav files in
>Matlab, the data matrix consists of two columns of several
>different values. I am confused as to why there are two
>columns. In order to get simply the time-domain values, can I
>take just the first column or do I need to combine the two?



El 22/11/2005, a las 0:32, Gina Upperman escribi

> When I import the .wav files in Matlab,
> the data matrix consists of two columns of several different
> values. I am
> confused as to why there are two columns. In order to get simply the
> time-domain values, can I take just the first column or do I need
> to combine
> the two?

You get two columns because you're reading an stereo sound. You can
average by rows, and you'll have the equivalent mono signal, or take
just one of the channels, whatever makes more sense for your
application.

--
Juan de Dios Santander Vela
Diplomado en CC. Ficas, Ingeniero en Electrica
Doctorando en Tecnologs Multimedia
Becario Predoctoral del Instituto de Astrofica de Andaluc

Paulo Coelho: La felicidad es a veces una bendici, pero por lo
general es una conquista.



 

I reckon thats a stereo recorded wav file !!

Parminder Singh Reel

MSc Telecommunications & Information Systems
University of Essex
Colchester CO4 3SQ
United Kingdom

Phone:  +44-1206-535859
Cell:   +44-07906712471

He who considers too much will perform little..  --- Johann Schiller 1963059423@Middle5?OAS_query=null&PARTNE