Audio Codecs
Audio Codec Usage for Call Connections and Recording
In Unity Connection, a call in any audio codec format supported by SCCP or SIP signaling—G.711 mu-law, G.711 a-law, G.722, G.729, and iLBC—are always transcoded to PCM linear. From PCM linear, the recording is encoded in the system-level recording audio codec—PCM linear, G.711 mu-law, G.711 a-law, G.729a, or G.726—a systemwide setting in Cisco Unity Connection Administration. G.711 mu-law is the default.
In this section, we refer to the audio codec that is negotiated between the calling device and Unity Connection as the “line codec,” and the audio codec that is set as the system-level recording audio codec as the “recording codec.”
Supported Line Codecs (Advertised Codecs)
-
G.711 mu-law
-
G.711 a-law
-
G.722
-
G.729
-
iLBC
Supported Recording Codecs (System-Level Recording Audio Codecs)
-
PCM linear
-
G.711 mu-law (default)
-
G.711 a-law
-
G.729a
-
G.726
-
GSM 6.10
Because transcoding occurs in every connection, there is little difference in system impact when the line codec differs from the recording codec. For example, using G.729a as the line codec and G.711 mu-law as the recording codec does not place a significant additional load on the Unity Connection server for transcoding. However, the iLBC or G.722 codecs require more computation to transcode, and therefore places a significant additional load on the Unity Connection server. Consequently, a Unity Connection server can support only half as many G.722 or iLBC connections as it can G.711 mu-law connections.
Note |
Use of the G.722 or iLBC codec as line codecs or advertised codecs reduces the number of voice ports that can be provisioned on the Unity Connection server. For more information on the number of voice ports supported for each platform overlay when using G.722 or iLBC codecs, see the Cisco Unity Connection 11.x Supported Platforms List at https://www.cisco.com/c/en/us/td/docs/voice_ip_comm/connection/11x/supported_platforms/b_11xcucspl.html. |
Generally, you should not change the system recording format from the default setting except in the following situations:
-
To address disk space considerations, consider using a low bit-rate codec such as G.729a or G.726. Note that a low bit-rate codec produces lower quality audio than a high bit-rate codec such as G.711 mu-law.
-
To improve the audio quality of recordings for endpoints that use G.722 as the line codec, consider using PCM linear. Note that PCM linear increases the disk space that is used.
There are additional possible reasons to change the recording codec or to choose only to advertise specific line codecs. Review the following information when making decisions on the system-level recording audio codec and the advertised codecs on the SCCP or SIP integration:
-
The audio codecs that are negotiated between the majority of the endpoints and Unity Connection. This information helps you decide the audio codecs that Unity Connection should advertise and the audio codecs that Unity Connection should not advertise. You can then decide when you need Cisco Unified Communications Manager to provide hardware transcoding resources rather than using Unity Connection to provide computationally significant native transcoding, such as when the configuration requires a number of clients to connect to Unity Connection using G.722 or iLBC.
-
The types of graphical user interface (GUI) clients that play the recordings (for example, web browsers, email clients, or media players) and the audio codecs that these GUI clients support.
-
The quality of the sound produced by the selected audio codec. Some audio codecs produce higher audio quality than other audio codecs. For example, G.711 produces a higher audio quality than G.729a and is a better choice when higher audio quality is necessary.
-
The amount of disk space that the audio codec takes up per second of recording time.
PCM linear produces the highest audio quality and is the most widely supported by media players, yet it uses the most disk space and bandwidth (16 KB/sec). G.711 (both a-law and mu-law) produces moderate audio quality compared to PCM linear and is also widely supported by media players, though it uses half as much disk space and bandwidth (8 KB/sec). G.729a produces the lowest audio quality of the four supported audio codecs and is poorly supported by media players because it requires a license for use. Yet this audio codec uses the least amount of disk space (1 KB/sec). G.726 produces moderate audio quality, is moderately supported by media players, and uses less disk space than most of the other codecs (3 KB/sec). This information is summarized in below table.
Recording Audio Codec |
Audio Quality |
Supportability |
Disk Space Used |
Sampling Rate |
Channels |
Sample Size |
---|---|---|---|---|---|---|
PCM linear |
Highest |
Widely supported |
16 KB/sec |
8 kHz/sec |
1 |
16 bits |
G.711 mu-law/a-law |
Moderate |
Widely supported |
8 KB/sec |
8 kHz/sec |
1 |
8 bits |
G726 |
Moderate |
Moderately supported |
4 KB/sec |
8 kHz/sec |
1 |
4 bits |
GSM 6.10 |
Moderate |
Poorly supported |
1.63 KB/sec |
8 kHz/sec |
1 |
N/A |
G.729a |
Lowest |
Poorly supported |
1 KB/sec |
8 kHz/sec |
1 |
N/A |
For details on changing the audio codec that is advertised by Unity Connection, or the system-level recording audio codec, see the “Changing the Audio or Video Format of Recordings” section of the “User Settings” chapter of the System Administration Guide for Cisco Unity Connection Release 11.x, at https://www.cisco.com/c/en/us/td/docs/voice_ip_comm/connection/11x/administration/guide/b_cucsag.html.
When modifying the advertised audio codecs, the choices are G.711 mu-law, G.711 a-law, G.722, G.729, and iLBC. In addition, you also indicate an order of preference for the chosen codecs.
For SCCP integrations, the order of the audio codecs is not important because Cisco Unified CM negotiates the audio codec based on the location of the port and the device in the negotiated call. However, for SIP integrations the order of the audio codecs is important. If one audio codec is preferred over another audio codec, Unity Connection advertises that it supports both audio codecs but prefers to use the one specified over the other.
Note |
In Web Inbox, the received voice messages are always played or downloaded in PCM linear whether any codec is selected to record the messages. |
Audio Codec Considerations for VPIM Networking
If VPIM networking connects Unity Connection to another Unity Connection server, to a Cisco Unity server, or to a third-party voice-messaging system, you must choose a compatible audio codec.
Note the following audio codec considerations for Unity Connection VPIM networking:
-
For inbound messages, Unity Connection can do one of the following:
-
Convert voice messages to any audio format that Unity Connection supports.
-
Not convert the audio format of the voice message, keeping the voice message in its original audio format.
-
-
For outbound voice messages, Unity Connection can do one of the following:
-
Convert voice messages to the G.726 audio format.
-
Not convert the audio format of the voice message, keeping the voice message in its original audio format. Not converting is useful when you use VPIM networking to send voice messages between Unity Connection servers, or between Unity Connection and Cisco Unity servers.
-
For more information on VPIM Networking, see the VPIM Networking .