Technical discussion about Matlab and issues related to Digital Signal Processing.
Post a new Thread
Importing .wav in Matlab - why two columns? - Gina Upperman - Nov 21 19:32:00 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

(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )
AW: Importing .wav in Matlab - why two columns? - Carsten Fritzsch - Nov 22 10:10:00 2005
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?

(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )
Re: Importing .wav in Matlab - why two columns? - Juan de Dios Santander Vela - Nov 22 15:58:00 2005
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. Físicas, Ingeniero en Electrónica
Doctorando en Tecnologías Multimedia
Becario Predoctoral del Instituto de Astrofísica de Andalucía
Paulo Coelho: La felicidad es a veces una bendición, pero por lo
general es una conquista.

(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )
Re: Importing .wav in Matlab - why two columns? - Parminder Singh Reel - Nov 23 12:45:00 2005
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

(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )