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.

ca816x : how to use g729 codec

i am writing a app for g729,but the data output from g729 encode  doesn't correctlly,  my process----> create   control    process    delete .      encode :160 byte input and 10 byte output        

  any  procedure  i missing ??????

  • Hello,

    Could you please include more details of the process you are following and the problem you are seeing?

    Regards,
    Marc

  • TIG729 DSP coder data:

     

    input data:    sample.pcm(from G729 package ti.sdo.codecs.g729abenc.app.client.test.testvecs)

    output data: out.pcm

     

     

    standard G729 coder data:

     

    input data:    sample.pcm(from G729 package ti.sdo.codecs.g729abenc.app.client.test.testvecs)

    output data:    sample.g729

    input params DTX:    vad_off

     

     

    the out.pcm diff from sample.g729

     

    in order to compare data,list G729 Apps params:

     

    function1:    

    SPHENC1_create(ce, encoderName, &encParams);

    major encParams:    

    encParams.frameSize :  80*16bits;

    encParams.compandingLaw :  ISPEECH1_PCM_COMPAND_LINEAR;

    encParams.tablesPtr:  NULL;

     

    funtion2:    

    SPHENC1_control(tmp1->enc, XDM_GETSTATUS, &encDynParams, &encStatus);

    encDynParams.vadFlag: ISPEECH1_VADFLAG_OFF

     

    funtion3:    

    SPHENC1_process(tmp->enc, &inBufDesc, &outBufDesc, &encInArgs, &encOutArgs);

    inBufDesc.buf:    80 short (160byte) 

    outBufDesc.buf:    when output get 10 byte in front of 80 short 

    encInArgs.data.buf : NULL