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
Importing .wav in Matlab - why two columns?
Started by ●November 21, 2005
Reply by ●November 22, 20052005-11-22
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?
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?
Reply by ●November 22, 20052005-11-22
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.
> 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.
Reply by ●November 23, 20052005-11-23