This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to handle the Up/Down sampling of data while writing the transcoder application for A-law to Gsmamrwb

Hi All,


I am trying to write the code for a transcoding application that transcode the alaw format speech into the gsmamrwb format.

I have to provide the o/p of alaw as the i/p of gsmamrwb. But as we all know alaw works in 8khz and gsmamrwb works in 16khz, so I have to upsample the data and then use it for further processing.

I am using the "gsmwbamrenc_tii.l64" library of gsmamrwb encoder.

Can any one tell me how to do this upsampling on DSPC8681E, not on Host Machine? Is there any variable or parameter that I have to set to get it done?

Find the reference code in the attachment-

Thanks,

Rohit

ipc.tar

  • I am working with experts to answer this. Thank you for your patience.
  • Rohit,

    WB-AMR encoder (gsmwbamrenc_tii.l64) only takes PCM input sampled at 16,000 Hz. For any 8000 Hz A/u-law PCM samples, you need to do conversion outside of the WB-AMR library.

    If you don't want to do it with a host machine, then some coding needs done for this in C6678 DSP. The A/U-law to linear PCM conversion and upsampling algorithm/code should be easily found. Also, there is TI VOLIB library for free download, which has "Sample Frequency Converter (SFC): Decimation by 2 and interpolation by 2." in VPE module. software-dl.ti.com/.../index_FDS.html

    Regards, Eric