DSPRelated.com
Forums

C code for DCT and Hamming Window - speech recognition

Started by Gina Upperman December 1, 2005

Hi All,

 

I am trying to write a basic speech recognition program in Code Composer Studio, and I am now thinking of using MFCC (mel-frequency cepstral coefficients) to calculate coefficients for each speech sample.  The MFCC algorithm needs several basic signal processing functions:  FFT, DCT, and Hamming Window.  Are these functions by any chance built-in to Code Composer Studio, like they are in Matlab?  If not, does anyone know of a simple C program for the FFT, DCT, or Hamming Window that I could use in CCS?

 

Thank you,

Gina Upperman



Hi Gina,

Take a look at the DSPLIB and IMGLIB libraries provided (free of charge) by TI.

Regards,

Shehrzad Qureshi
Author of Embedded Image Processing on the TMS320C6000 DSP
www.squreshi.com

Gina Upperman <upperman@uppe...> wrote:
Hi All,

I am trying to write a basic speech recognition program in Code Composer Studio, and I am now thinking of using MFCC (mel-frequency cepstral coefficients) to calculate coefficients for each speech sample. The MFCC algorithm needs several basic signal processing functions: FFT, DCT, and Hamming Window. Are these functions by any chance built-in to Code Composer Studio, like they are in Matlab? If not, does anyone know of a simple C program for the FFT, DCT, or Hamming Window that I could use in CCS?

Thank you,
Gina Upperman



Hi Gina,

You would get FFT and DCT(2d) in dsplib and imagelib
which come along with CCS. You can check the CCS
documentation for details. You can also get those from
many places on the net, but then you would have to
port them to your processor. You wouldn't get
windowing functions on CCS. But considering that
windowing should only be a couple of lines of code,
that shouldn't be a problem.
Let me know if you have any problems in using the
above.

Regards
Piyush

--- Gina Upperman <upperman@uppe...> wrote:

> Hi All, >
> I am trying to write a basic speech recognition
> program in Code Composer
> Studio, and I am now thinking of using MFCC
> (mel-frequency cepstral
> coefficients) to calculate coefficients for each
> speech sample. The MFCC
> algorithm needs several basic signal processing
> functions: FFT, DCT, and
> Hamming Window. Are these functions by any chance
> built-in to Code Composer
> Studio, like they are in Matlab? If not, does
> anyone know of a simple C
> program for the FFT, DCT, or Hamming Window that I
> could use in CCS? >
> Thank you,
>
> Gina Upperman