Deep Dive into Codecs
From VoIP.ms Wiki
| [draft revision] | [checked revision] |
| (2 intermediate revisions not shown) | |||
| Line 13: | Line 13: | ||
| style="width: 71%; border: none; background: none;" | | | style="width: 71%; border: none; background: none;" | | ||
| - | What is an audio codec? An audio codec is a digital electronic device or a computer-based software capable of encoding or decoding an audio data stream. When it is a software audio codec it will, essentially, consist of an algorithm that codes and decodes an audio stream. A hardware | + | What is an audio codec? An audio codec is a digital electronic device or a computer-based software capable of encoding or decoding an audio data stream. When it is a software audio codec it will, essentially, consist of an algorithm that codes and decodes an audio stream. A hardware audio codec will refer to a device that encodes analog audio as digital signals and decodes digital back into analog. |
| - | In this article | + | In this article we will discuss different types of voice codecs and fax codecs along with the basic difference between them. |
| Line 26: | Line 26: | ||
| - | ''' | + | ''' G.711 ''' |
| - | There are two variants of the G.711 codec, namely G.711u and G.711a. The G.711u is typically used within Japan and North America. Whereas, G.711a is used by other countries in the world. Developed in 1972, it is part of the narrowband codecs. Having said that, the G.711 uses an 8 kHz sampling frequency | + | There are two variants of the G.711 codec, namely G.711u and G.711a. The G.711u is typically used within Japan and North America. Whereas, G.711a is used by other countries in the world. Developed in 1972, it is part of the narrowband codecs. Having said that, the G.711 uses an 8 kHz sampling frequency and 64 Kbit/s bitrate. |
The 64 Kbit/s is the amount of bandwidth required per second through your internet connection for handling a single phone call. That said, the G.711 data is not compressed. Therefore, the bitrate of 64 Kbit/s is large compared to other codecs that make use of compression techniques for lowering the required bandwidth. | The 64 Kbit/s is the amount of bandwidth required per second through your internet connection for handling a single phone call. That said, the G.711 data is not compressed. Therefore, the bitrate of 64 Kbit/s is large compared to other codecs that make use of compression techniques for lowering the required bandwidth. | ||
| - | ''' | + | ''' G.722''' |
Released in 1988 as a wideband codec, G.722 tries to improve on the G.711 codec by increasing its sampling rate and compression. The G.722 codec uses a 16 kHz sampling frequency using 14 bits per sample. Because the codec starts with an uncompressed bitrate of 224 Kbit/s, it uses compression techniques to attain a bitrate of 64 Kbit/s. | Released in 1988 as a wideband codec, G.722 tries to improve on the G.711 codec by increasing its sampling rate and compression. The G.722 codec uses a 16 kHz sampling frequency using 14 bits per sample. Because the codec starts with an uncompressed bitrate of 224 Kbit/s, it uses compression techniques to attain a bitrate of 64 Kbit/s. | ||
| - | ''' | + | ''' G.729''' |
Another mainstream VoIP codec that is used to transmit phone calls over the internet is G.729. Having said that, G.729 codec encodes the voice in frames. Each of the G.729 frames is ten milliseconds long and includes 80 audio samples. Also, the bitrate requirement for one direction for the G.729 codec is 8 Kbit/s. Because the G.729 offers higher compression capabilities, you can make more calls using the same internet connection at once. | Another mainstream VoIP codec that is used to transmit phone calls over the internet is G.729. Having said that, G.729 codec encodes the voice in frames. Each of the G.729 frames is ten milliseconds long and includes 80 audio samples. Also, the bitrate requirement for one direction for the G.729 codec is 8 Kbit/s. Because the G.729 offers higher compression capabilities, you can make more calls using the same internet connection at once. | ||
| Line 47: | Line 47: | ||
| - | ''' | + | ''' GSM ''' |
GSM stands for Global System for Mobile Communications. The bitrate of the gsm codec is 13 Kbit/s when using the GSM-FullRate or 6.5 Kbit/s when using GSM-HalfRate. However, it offers less speech quality as compared to modern standards. | GSM stands for Global System for Mobile Communications. The bitrate of the gsm codec is 13 Kbit/s when using the GSM-FullRate or 6.5 Kbit/s when using GSM-HalfRate. However, it offers less speech quality as compared to modern standards. | ||
| Line 63: | Line 63: | ||
Similar to voice codecs, there are different types of fax codecs such as T.30 and T.38. | Similar to voice codecs, there are different types of fax codecs such as T.30 and T.38. | ||
| - | T.30 codec was created before the arrival of the internet and was used for transmitting documents between devices over PSTN. However, the growing popularity of IP meant that a new codec was required. | + | T.30 codec was created before the arrival of the internet and was used for transmitting documents between devices over PSTN. However, the growing popularity of IP meant that a new codec was required. At VoIP.ms, [https://wiki.voip.ms/article/Fax_over_IP_(FoIP)_using_T.38_Protocol T.38 codec] is used to transfer documents over the internet without a phone line, also you can send faxes with your email address! [https://wiki.voip.ms/article/Sending_Faxes_via_Email_with_VoIP.ms Learn how here.] |
Latest revision as of 02:39, 25 March 2021
|
What is an audio codec? An audio codec is a digital electronic device or a computer-based software capable of encoding or decoding an audio data stream. When it is a software audio codec it will, essentially, consist of an algorithm that codes and decodes an audio stream. A hardware audio codec will refer to a device that encodes analog audio as digital signals and decodes digital back into analog. In this article we will discuss different types of voice codecs and fax codecs along with the basic difference between them.
Voice Codecs
There are two variants of the G.711 codec, namely G.711u and G.711a. The G.711u is typically used within Japan and North America. Whereas, G.711a is used by other countries in the world. Developed in 1972, it is part of the narrowband codecs. Having said that, the G.711 uses an 8 kHz sampling frequency and 64 Kbit/s bitrate. The 64 Kbit/s is the amount of bandwidth required per second through your internet connection for handling a single phone call. That said, the G.711 data is not compressed. Therefore, the bitrate of 64 Kbit/s is large compared to other codecs that make use of compression techniques for lowering the required bandwidth.
Released in 1988 as a wideband codec, G.722 tries to improve on the G.711 codec by increasing its sampling rate and compression. The G.722 codec uses a 16 kHz sampling frequency using 14 bits per sample. Because the codec starts with an uncompressed bitrate of 224 Kbit/s, it uses compression techniques to attain a bitrate of 64 Kbit/s.
Another mainstream VoIP codec that is used to transmit phone calls over the internet is G.729. Having said that, G.729 codec encodes the voice in frames. Each of the G.729 frames is ten milliseconds long and includes 80 audio samples. Also, the bitrate requirement for one direction for the G.729 codec is 8 Kbit/s. Because the G.729 offers higher compression capabilities, you can make more calls using the same internet connection at once.
GSM GSM stands for Global System for Mobile Communications. The bitrate of the gsm codec is 13 Kbit/s when using the GSM-FullRate or 6.5 Kbit/s when using GSM-HalfRate. However, it offers less speech quality as compared to modern standards.
G.711 prioritizes sound quality but does not perform compression. Therefore, it requires more bandwidth as compared to other codecs such as G.729. Whereas, G.729 performs compression. Therefore, it requires less bandwidth as compared to other codecs such as G.711 and G.722 while transferring the call to the other side. However, the audio quality is much lesser as compared to G.711.
Similar to voice codecs, there are different types of fax codecs such as T.30 and T.38. T.30 codec was created before the arrival of the internet and was used for transmitting documents between devices over PSTN. However, the growing popularity of IP meant that a new codec was required. At VoIP.ms, T.38 codec is used to transfer documents over the internet without a phone line, also you can send faxes with your email address! Learn how here.
You want to know how to configure your virtual fax? Read VoIP.ms Wiki entry or contact our support team at [email protected].
______ For More Information, Visit Us at |



