Group PJMED_G711

group PJMED_G711

Standard G.711/PCMA and PCMU codec.

This section describes functions to initialize and register G.711 codec factory to the codec manager. After the codec factory has been registered, application can use Codec Framework API to manipulate the codec.

The G.711 is an ultra low complexity codecs and in trade-off it results in high bitrate, i.e: 64kbps for 16-bit PCM with sampling rate 8000Hz.

The factory contains two main compression algorithms, PCMU/u-Law and PCMA/A-Law.

Codec Settings

General Settings

General codec settings for this codec such as VAD and PLC can be manipulated through the setting field in pjmedia_codec_param. Please see the documentation of pjmedia_codec_param for more info.

Codec Specific Settings

Currently none.

Functions

PJ_BEGIN_DECL pj_status_t pjmedia_codec_g711_init (pjmedia_endpt *endpt)

Initialize and register G711 codec factory to pjmedia endpoint. This will register PCMU and PCMA codec, in that order.

Parameters

endpt – The pjmedia endpoint.

Returns

PJ_SUCCESS on success.

pj_status_t pjmedia_codec_g711_deinit(void)

Unregister G711 codec factory from pjmedia endpoint.

Returns

PJ_SUCCESS on success.