Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Framing of speech signal

Subject: Framing of speech signal

From: Hassan Saleem

Date: 20 Sep, 2011 19:43:14

Message: 1 of 6

Hello every1

I am new to MATLAB. I have a speech signal of vowel 'a'. I have read it in MATLAB using wavread that gives me sample values in 'data' and sampling frequency 44.1 Khz in 'fs'. I need to extract features out of this speech signal. I do not know where and how to start. Can anybody please help me for this. Give me a detail how I can do this.
A quick reply is highly appreciated.

I would be very thankful to you.

BR
Hassan

Subject: Framing of speech signal

From: Wayne King

Date: 20 Sep, 2011 20:03:11

Message: 2 of 6

"Hassan Saleem" <hassaan.khi@gmail.com> wrote in message <j5aqch$mou$1@newscl01ah.mathworks.com>...
> Hello every1
>
> I am new to MATLAB. I have a speech signal of vowel 'a'. I have read it in MATLAB using wavread that gives me sample values in 'data' and sampling frequency 44.1 Khz in 'fs'. I need to extract features out of this speech signal. I do not know where and how to start. Can anybody please help me for this. Give me a detail how I can do this.
> A quick reply is highly appreciated.
>
> I would be very thankful to you.
>
> BR
> Hassan

Hassan, You need to know what features you wish to extract in order for us to help you. Often a place to start with speech is the short-time Fourier transform. See the help for spectrogram

Wayne

Subject: Framing of speech signal

From: Hassan Saleem

Date: 21 Sep, 2011 16:12:26

Message: 3 of 6

"Wayne King" wrote in message <j5arhu$ram$1@newscl01ah.mathworks.com>...
> "Hassan Saleem" <hassaan.khi@gmail.com> wrote in message <j5aqch$mou$1@newscl01ah.mathworks.com>...
> > Hello every1
> >
> > I am new to MATLAB. I have a speech signal of vowel 'a'. I have read it in MATLAB using wavread that gives me sample values in 'data' and sampling frequency 44.1 Khz in 'fs'. I need to extract features out of this speech signal. I do not know where and how to start. Can anybody please help me for this. Give me a detail how I can do this.
> > A quick reply is highly appreciated.
> >
> > I would be very thankful to you.
> >
> > BR
> > Hassan
>
> Hassan, You need to know what features you wish to extract in order for us to help you. Often a place to start with speech is the short-time Fourier transform. See the help for spectrogram
>
> Wayne


Dear Wayne

Thanks for your valued reply. I check for all windows techniques which are available in MATLAB, they require an argument 'L' for example, hamming window the expression is like that

w=hamming(L)

it returns an L-point symmetric hamming window in the column vector w.
As I said in previous mail I have read a speech signal that gives me sample values in 'data' and sampling frequency in 'fs'. How I can get L out of these?

BR
Hassan

Subject: Framing of speech signal

From: Wayne King

Date: 21 Sep, 2011 17:30:35

Message: 4 of 6

"Hassan Saleem" <hassaan.khi@gmail.com> wrote in message <j5d2da$cvo$1@newscl01ah.mathworks.com>...
> "Wayne King" wrote in message <j5arhu$ram$1@newscl01ah.mathworks.com>...
> > "Hassan Saleem" <hassaan.khi@gmail.com> wrote in message <j5aqch$mou$1@newscl01ah.mathworks.com>...
> > > Hello every1
> > >
> > > I am new to MATLAB. I have a speech signal of vowel 'a'. I have read it in MATLAB using wavread that gives me sample values in 'data' and sampling frequency 44.1 Khz in 'fs'. I need to extract features out of this speech signal. I do not know where and how to start. Can anybody please help me for this. Give me a detail how I can do this.
> > > A quick reply is highly appreciated.
> > >
> > > I would be very thankful to you.
> > >
> > > BR
> > > Hassan
> >
> > Hassan, You need to know what features you wish to extract in order for us to help you. Often a place to start with speech is the short-time Fourier transform. See the help for spectrogram
> >
> > Wayne
>
>
> Dear Wayne
>
> Thanks for your valued reply. I check for all windows techniques which are available in MATLAB, they require an argument 'L' for example, hamming window the expression is like that
>
> w=hamming(L)
>
> it returns an L-point symmetric hamming window in the column vector w.
> As I said in previous mail I have read a speech signal that gives me sample values in 'data' and sampling frequency in 'fs'. How I can get L out of these?
>
> BR
> Hassan

L is the length of your speech sample if you want to window the whole vector.

L = length(data);

Typically in speech you segment the signal and use a Hamming window on the segments. spectrogram() will do that for you automatically if you are using it to obtain a time-frequency representation of your signal.

Wayne

Subject: Framing of speech signal

From: Hassan Saleem

Date: 21 Sep, 2011 17:53:28

Message: 5 of 6

"Wayne King" wrote in message <j5d6vr$1i8$1@newscl01ah.mathworks.com>...
> "Hassan Saleem" <hassaan.khi@gmail.com> wrote in message <j5d2da$cvo$1@newscl01ah.mathworks.com>...
> > "Wayne King" wrote in message <j5arhu$ram$1@newscl01ah.mathworks.com>...
> > > "Hassan Saleem" <hassaan.khi@gmail.com> wrote in message <j5aqch$mou$1@newscl01ah.mathworks.com>...
> > > > Hello every1
> > > >
> > > > I am new to MATLAB. I have a speech signal of vowel 'a'. I have read it in MATLAB using wavread that gives me sample values in 'data' and sampling frequency 44.1 Khz in 'fs'. I need to extract features out of this speech signal. I do not know where and how to start. Can anybody please help me for this. Give me a detail how I can do this.
> > > > A quick reply is highly appreciated.
> > > >
> > > > I would be very thankful to you.
> > > >
> > > > BR
> > > > Hassan
> > >
> > > Hassan, You need to know what features you wish to extract in order for us to help you. Often a place to start with speech is the short-time Fourier transform. See the help for spectrogram
> > >
> > > Wayne
> >
> >
> > Dear Wayne
> >
> > Thanks for your valued reply. I check for all windows techniques which are available in MATLAB, they require an argument 'L' for example, hamming window the expression is like that
> >
> > w=hamming(L)
> >
> > it returns an L-point symmetric hamming window in the column vector w.
> > As I said in previous mail I have read a speech signal that gives me sample values in 'data' and sampling frequency in 'fs'. How I can get L out of these?
> >
> > BR
> > Hassan
>
> L is the length of your speech sample if you want to window the whole vector.
>
> L = length(data);
>
> Typically in speech you segment the signal and use a Hamming window on the segments. spectrogram() will do that for you automatically if you are using it to obtain a time-frequency representation of your signal.
>
> Wayne

Thanks a lot Wayne. I will back you for your valuable guidance.
Thanks friend again.

BR
Hassan

Subject: Framing of speech signal

From: Md Sahidullah

Date: 13 Oct, 2011 04:03:26

Message: 6 of 6

"Hassan Saleem" <hassaan.khi@gmail.com> wrote in message <j5aqch$mou$1@newscl01ah.mathworks.com>...
> Hello every1
>
> I am new to MATLAB. I have a speech signal of vowel 'a'. I have read it in MATLAB using wavread that gives me sample values in 'data' and sampling frequency 44.1 Khz in 'fs'. I need to extract features out of this speech signal. I do not know where and how to start. Can anybody please help me for this. Give me a detail how I can do this.
> A quick reply is highly appreciated.
>
> I would be very thankful to you.
>
> BR
> Hassan

Dear Hassan,

You may use the popular voicebox toolbox for MATLAB. It has lots of built-in functions for speech feature extraction.

http://www.ee.ic.ac.uk/hp/staff/dmb/voicebox/voicebox.html

Thanking You,

With Best Wishes,
Sahidullah

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us