How to define speex in a struct alt_codec?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi everybody.

I'm completely beginner in pjsip, codecs, etc.


In a code that I am responsible for to fix, I have the following:


------------------------------------------------------------------------------------

static struct alt_codec
{
    pj_str_t    encoding_name;
    pj_uint8_t    payload_type;
    unsigned    clock_rate;
    unsigned    channel_cnt;
    unsigned    frm_ptime;
    unsigned    avg_bps;
    unsigned    max_bps;
} codec_list[] =
{
    /* G.729 */
//    { { "G729", 4 }, 18, 8000, 1, 10, 8000, 8000 },
    /* PCMU */
//    { { "PCMU", 4 }, 0, 8000, 1, 10, 64000, 64000 },
    /* Our proprietary high end low bit rate (5kbps) codec, if you wish */
//    { { "FOO", 3 }, PJMEDIA_RTP_PT_START+0, 16000, 1, 20, 5000, 5000 },


    { { "PCMA", 4}, 8, 8000, 1, 10, 8000, 8000 },


   //------------ Feature Codec Speex  ---------- START -----------------------------------------------------
   // Responsible: Rodrigo P. C.
    {{"SPEEX",5}, 8, 8000, 1, 10, 8000, 8000 }   //Is this correct  values?
   //--------------------------------------------------------------------------------------------------------------------------
};

--------------------------------------------------------------------------------------------


As we can see, for PCMA the characteristics is all well configured. Now I have to use speex too.


However, for SPEEX I have to put the correct values there. But, I don't know what are good values for all attributes of a speex struct alt_codec.


How can I determine the correct values? Where can I search for it on Internet?

Can someone tell me what could be good values to put there?


Thank very much and sorry if my question seems to simple.


Best regards.


Rodrigo P. C.
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20160128/8eed6d5b/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux