Understanding Unified Messaging Audio Codecs
Applies to: Exchange Server 2010
In Microsoft Exchange Server 2010 Unified Messaging (UM), a codec is used to store voice mail messages. Another codec is used between an IP gateway or IP Private Branch eXchange (PBX) and the Unified Messaging server. Exchange 2010 Unified Messaging can use any of the following three audio codecs to create and store voice messages:
- Windows Media Audio (WMA)
- Group System Mobile (GSM) 06.10
- G.711 Pulse Code Modulation (PCM) Linear
However, the G.711 (PCMA and PCMU) and the G.723.1 codecs are VoIP codecs used between an IP gateway and the Unified Messaging server.
Part of planning your Unified Messaging system involves selecting the correct audio codec based on the needs and requirements of your organization. This topic discusses the audio codecs that Unified Messaging can use and will help you plan your UM deployment.
Codecs
Two types of codecs are used in Unified Messaging: the codec used between IP gateways and the Unified Messaging server or between a PBX and IP gateway, depending on the type of PBX, and the codec used to encode and store voice messages for users.
The term codec is a combination of the words "coding" and "decoding" and is used with digital audio data. A codec is a software program that transforms digital data into an audio file format or audio streaming format. Codecs are used to convert an analog voice signal to a digital version of the voice signal. Codecs can vary in their sound quality, the bandwidth required to use them, and the system requirements needed to do the encoding.
When you use an ordinary telephone over the Public Switched Telephone Network (PSTN) your voice is transported in an analog format over the telephone line. But with Voice over IP (VoIP), your voice must be converted into digital signals. This conversion process is known as encoding. Encoding is performed by a codec. After the digitized voice has reached its destination, it must then be decoded back to its original analog format so the person on the other end of the call can hear and understand the caller.
VoIP Codec
In Unified Messaging, three types of codecs can be used between IP gateways or IP PBXs and the Unified Messaging server. Unified Messaging servers can accept the following VoIP codecs from an IP gateway or IP PBX:
- G.711 µ-law
- G.711 A-law
- G.723.1
G.711 is a standard that was developed for use with audio codecs. There are two main algorithms defined in the standard for G.711: the µ-law algorithm that is used in North America and Japan and the A-law algorithm that is used in Europe and other countries. The G.723.1 audio codec is mostly used in VoIP applications and requires a license to be used. G.723.1 is a high quality, high compression type of codec.
Both a Unified Messaging server and a supported IP gateway or IP PBX can offer both the G.711 and G.723.1 codec. However, the Unified Messaging server will choose its preferred codec based on the WireCodecList key in the registry. By default, the first codec to be used is G.723.1. If you want to use a different codec other than G.723.1 between the Unified Messaging server and the IP gateway or IP PBX, we recommend that you change the configuration on the IP gateway or IP PBX and don't add, remove, or change any values for the WireCodecList key in the registry. The Unified Messaging server will determine the codec that is being used by the IP gateway or IP PBX and select the appropriate codec from the list in the registry.
The following table summarizes some common VoIP codecs.
VoIP codecs
VoIP codec | Bandwidth (Kbps) | Description |
---|---|---|
G.711 |
64 |
This codec requires very low processing. It needs a minimum of 128 kilobits per second (Kbps) for two-way communication. |
G.723.1 |
5.3/6.3 |
This codec offers high compression with high quality audio. It requires more processing than the G.711 codec. The G.723.1 codec uses reduced bandwidth but offers poorer quality audio. |
Return to top
UM Voice Message Storage Codec
Unified Messaging dial plans are integral to the operation of Unified Messaging. By default, when you create a UM dial plan, the UM dial plan uses the WMA audio codec. However, after you create the UM dial plan, you can configure the UM dial plan to use GSM 06.10 or G.711 PCM Linear audio codecs.
Each audio codec has advantages and disadvantages. The WMA audio codec was selected as the default audio codec because of its sound quality and compression properties. GSM 06.10 and G.711 PCM Linear audio codecs were included as available options because of their ability to support other types of messaging systems.
When you plan for Unified Messaging, you must balance the size and the relative quality of the audio file that will be created for voice messages. Generally, the higher the bit rate for an audio file, the higher the quality. You must also consider whether the audio file is compressed. The sample bit rate (bit/sec) and compression properties for each audio codec used in Unified Messaging are as follows:
Default UM voice message storage codecs
Voice message storage codec | Bits | Compressed file? |
---|---|---|
WMA |
16 bit |
Yes |
G.711 PCM |
16 bit |
No |
GSM 06.10 |
8-bit |
Yes |
In Unified Messaging, the WMA, G.711 PCM Linear, and GSM 06.10 audio codecs are used to create .wma and .wav audio files for voice messages. However, the file type created depends on the audio codec that is used to create the voice message audio file. In Unified Messaging, the .wma audio codec creates .wma audio files and the GSM 06.10 and G.711 PCM Linear audio codecs produce .wav audio files. Both kinds of audio files are sent together with the e-mail message to the recipient of the voice message.
Frequently, but not always, coding and decoding the digital data also involves compression or decompression. Audio compression is a form of data compression that reduces the size of audio data files. The audio compression algorithm used by the audio codec compresses the .wma or .wav audio files. In Unified Messaging, the type of audio compression algorithm that is used is based on the type of audio codec selected in the UM dial plan properties. After the audio file is created and compressed, it's attached to the voice message.
Sometimes information from the digital data is lost during compression and decompression. The higher the compression that is used to compress the audio file, the greater the loss of information during the conversion. However, less disk space is used because the size of the audio file is reduced. Conversely, the lower the compression, the lower the loss of the information. However, more disk space must be used because of the increased size of each audio file.
RTAudio wideband or high fidelity audio for recording voice messages is also available as an audio codec. However, high fidelity audio using RTAudio is available only after you have successfully integrated Exchange 2007 Unified Messaging with Office Communications Server 2007. To enable RTAudio, the UM dial plan must be configured as a Session Initiation Protocol (SIP) URI-type dial plan and you must set the call answering codec on the dial plan to WMA.
Important
RTAudio is not available in environments where Office Communications Server 2007 is not deployed. This is because, in these environments, the dial plan is set to Telephone Extension and not SIP URI.
There are two media streams for each incoming call: inbound to a Unified Messaging server and outbound from a Unified Messaging server. When the dial plan type is set to SIP URI and the call-answering codec on the dial plan is set to WMA, a Unified Messaging server tries to select the RTAudio VoIP codec for the inbound media stream. If negotiation is successful, the RTAudio codec for the inbound stream will be used for call answering calls or calls that originate from Office Communicator 2007.
Note
Calls placed by using the Play on Phone feature will not use the RTAudio codec. The inbound stream for calls placed by using Play on Phone will use the G.711 or G.723.1 codec.
When the RTAudio codec is used, the voice message that is recorded will be recorded in high fidelity and will be stored as an audio file that has a .wma extension. When the voice message is played back to the user in Office Outlook 2007 or Outlook Web Access, they will hear the voice message in high fidelity audio. If negotiation is unsuccessful, either the G.711 or G.723.1 codec will be used. Both the G.711 and the G.723.1 codecs are narrowband codecs. When they're used as the VoIP codec, the voice message is recorded and stored as a narrowband audio file that has a .wma extension.
The outbound media stream will always be negotiated by using either the G.711 or G.723.1 codec. This means that callers will always hear narrowband audio over the telephone. This also applies to situations when a call is placed by using Office Communicator.
RTAudio processing by a Unified Messaging server consumes more CPU cycles than any of the G.711 or G.723.1 codecs. If you have successfully integrated Office Communications Server 2007 but you want to turn off RTAudio to reduce the number of CPU cycles that are used, you can:
Set the dial plan call answering codec or storage codec to GSM or PCM.
Disable the setting in the registry. The registry key is: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft Speech Server\2.0\WireCodecList. To disable RTAudio, remove RTAudio16KHz and RTAudio8KHz from the list of codecs in the registry key.
Important
Any other additions, modifications, or deletions to the other values or keys in the WireCodecList key are not supported.
Note
Incorrectly editing the registry can cause serious problems that may require you to reinstall your operating system. Problems resulting from editing the registry incorrectly may not be able to be resolved. Before editing the registry, back up any valuable data.
Return to top
UM Message Sizing
You can configure Unified Messaging to use one of the three following audio codecs for creating voice messages: WMA, GSM 06.10, and G.711 PCM Linear. The WMA audio codec is always stored in the Windows Media format, and the attachment is a file that has a .wma file name extension. Audio files encoded using the GSM or G.711 PCM Linear audio codecs are always stored in RIFF/WAV format, and the attachment is a file that has a .wav file name extension.
The size of Unified Messaging voice messages depends on the size of the attachment that holds the voice data. In turn, the size of the attachment depends on the following factors:
- The duration of the voice mail recording
- The audio codec that is used
- The audio file storage format
The following figure shows how the size of the audio file depends on the duration of the voice mail recording for the three audio codecs that you can use in UM.
Note
In this figure, the average length of a call-answered voice message is approximately 30 seconds.
Audio file size
WMA
WMA is the most highly compressed audio codec of the three kinds of codecs. The compression is approximately 11,000 bytes for each 10 seconds of audio. However, the .wma file format has a much larger header section than the .wav file format. The .wma file header section is approximately 7 kilobytes (KB), whereas the header section for the .wav file is less than 100 bytes. Although WMA audio recordings are recorded for longer than 15 seconds, they become smaller than GSM audio recordings. Therefore, for the smallest but highest quality audio files, use the WMA audio codec.
G.711 PCM Linear
The G.711 PCM Linear audio codec creates .wav audio files that are not compressed. Therefore, G.711 PCM Linear .wav audio files occupy the most space for any given duration when they're compared to the GSM and WMA audio codecs. G.711 PCM Linear .wav audio files occupy just over 160,000 bytes for each 10 seconds of audio. G.711 PCM Linear .wav audio files have the highest audio quality of the three audio codecs used by Unified Messaging. However, the quality of comparable audio files created using the WMA and GSM audio codecs are acceptable to most users who listen to voice messages.
GSM
The GSM audio codec creates .wav audio files that are compressed. GSM .wav audio files are just over 16,000 bytes for each 10 seconds of audio. However, GSM creates an audio file larger than the audio file created by the WMA audio codec. Therefore, when you are balancing the quality of the voice message and the size, this may not be the best choice.
Return to top