GSM Audio Codec / Vocoder

Loading

The GSM tutorial includes:

Animal repellent with a loudspeaker and control unit

Audio codecs or vocoders are universally used in the GSM system.
They reduce the bit rate of speech that has been converted from an analog player to a digital format so that it can be transmitted within the available channel bandwidth.
Without the use of a speech codec, digitized speech would take up a much wider bandwidth available. Accordingly, GSM codecs are a particularly important element in the entire system.

A number of different forms of audio codecs or vocoders are available for general use, and the GSM system supports a number of specific audio codecs.
These include RPE-LPC, Half Rate and AMR codecs.
The performance of each voice codec is different and can be used under different conditions, although the AMR codec is now the most widespread.
Also, the newer AMR-WB codec is being introduced to many areas, including GSM.

Voice codec technology has progressed to considerable degrees in recent years thanks to increasing processing performance.
This means that the voice codecs used in the GSM system have great improvements since the introduction of the first GSM phones.

Vocoder / Codec Basics

Vocoders (Voice Encoder) or speech codecs are used in many areas of voice communication.
Of course, the focus of interest is GSM audio codecs or vocoders, but the same principles apply to any form of codec.

If speech were digitized linearly, a high data rate would be needed, which would occupy a very wide bandwidth.
Since bandwidth is normally limited in any communication system, data must be compressed and sent over an available channel.
Only once can pass the channel, then it will be extended to restored sound in a way that is as close as possible to the original.

In order to meet the requirements of the codec system, speech must be captured with a sufficiently high sampling frequency and resolution to allow clear reproduction of the original sound.
It must then be compressed in such a way as to maintain sound fidelity through a limited transmission channel which is faulty.

Audio codecs or vocoders can use different techniques, but many modern audio codecs use a technique known as linear prediction.
In many ways, this can be compared to the mathematical modeling of the human vocal organ.
To achieve this, the spectral envelope of the signal is estimated using the filtration technique.
Even where signals with many inharmonious signals are used, voice codecs can provide very large levels of compression.

{Googleads Left}

Different codec methods are used for GSM codecs:

Advertisements
  • CELP: The CELP or Code Excited Linear Prediction codec is a vocational algorithm that was originally designed in 1985 and has been significantly improved over other voice codecs at that time.
    The basic principle of the CELP encoder was developed and used as a basis for other voice codecs including ACELP, RCELP, VSELP, etc.
    As such, the methodology of the CELP codecs is the most widely used speech encoding algorithm today.
    Therefore, CELP is now used as a general term for a certain class of vocoders or speech codecs, and not a specific codec.

The main principle of the CELP encoder is that it uses a principle known as “synthesis analysis”.
In this process, coding is carried out perceptually by optimizing the decoded signal in the closed loop system.
One way to achieve this is to compare differently generated bit streams and select the one that produces the best audio signal.

  • ACELP codec: ACELP or Algebraic Code Excited Linear Prediction Codec.
    The ACELP codec or the vocoder algorithm is a development of the CELP model.
    However, the codec books of ACELP codecs have a specific algebraic structure, as indicated by the name.
  • VSELP codec: codec VSELP or Vector sum excitation linear predictor (vector sum excited by linear prognosis codec).
    One of the main shortcomings of the VSELP codec is its limited ability to encode non-reproductive sounds.
    This means that in a bad state in the presence of noise.
    As a result, this voice codec is not so widely used now and that other newer speech codecs are preferred and offer much better performance.

GSM Sound Codecs / Vocoders

Many GSM audio codecs/vocoders are supported.
These have been introduced at different times and have different performance levels.
Although some early audio codecs are not so widely used these days, they are still described here because they form part of the GSM system.

GSM FULL RATE/ RPE-LPC codec 

RPE-LPC or Regular Pulse Excited – Linear Predictive Code.
This form of voice codec was the first voice codec used with GSM and was selected after the tests were performed to compare with other codec schemes.
The speech code is based on regular impulse excitation of LPC with long-term prediction.
The basic scheme is related to the two previous speech codecs, namely: RELP, Residual Excited Linear Prediction and MPE-LPC, Multi Pulse Excited LPC.
The advantages of RELP are relatively low complexity resulting from the use of baseband coding, but its performance is limited by the tonal noise that the system creates.
The MPE-LPC is more complex, but provides a higher level of performance.
The RPE-LPC codec provided a compromise between the two, balancing performance and the complexity of the technology of that time.

Despite the work that was done to ensure optimal performance, as the technology continued to develop, the RPE-LPC codec was considered a low-level product of vocal quality.
As other full-speed codecs were available, these were incorporated into the system.

GSM EFR (Enhanced Full Rate Codec) – Advanced Full Rate Codec

Later, another vocoder was added, called Vocoder Enhanced Full Rate (EFR), in response to poor quality perceived by users of the original RPE-LPC encoder.
This new codec brought much better sound quality and GSM was adopted.
Using ACELP compression technology, there was a significant improvement in quality over the original LPC-RPE encoder
This has become possible because in mobile phones the performance that was available increased due to the higher level of processing power combined with their lower current consumption.

Codec Half Rate

The GSM standard allows the division of a single full-speed voice channel into two sub-channels that can maintain separate calls.
In this way, network operators can double the number of voice calls that the network can manage with very little additional investment.

In order to use this device, a half codec must be used.
The half codec was introduced in the early years of GSM, but compared to other speech codecs, it yielded a much lower voice quality.
Nevertheless, it brought benefits when demand was high and network capacity was high.

The GSM Half Rate codec uses the VSELP codec algorithm.
It encodes data around frames with a resolution of 20 ms, each with 112 bits to get a data rate of 5.6 kbps.
This includes a data rate of 100 b/s for a mode indicator that describes in detail whether the system believes that frames contain voice data or not.
This allows the speech codec to work in a way that provides optimal quality.

The Half Rate codec system was introduced in the 1990s, but was not widely used due to the perceived poor quality.

{Googleads Left}

Advertisements

GSM AMR encoder

The AMR codec, Adaptive Multi-rate is now the most used GSM codec.
The AMR codec was adopted by 3GPP in October 1988 and is used for both GSM and circuit-switched UMTS/WCDMA voice calls.

The AMR codec provides different options for one of eight different bit rates, as shown in the following table.
Bitrates are based on frames that are 20 milliseconds long and contain 160 samples.
The AMR codec uses various techniques to ensure data compression.
The ACELP codec is used as a basis for the overall speech codec, but other techniques are also used.
Interrupted transmission is used in such a way that when there is no speech activity, the transmission is interrupted.
In addition, the voice activity detection (VAD) function is used, indicating that only background noise is present and no speech.
In addition, to give the user feedback that the connection is still present, a comfort noise generator (A Comfort Noise Generator&Nbsp;-CNG) is used.. 
It is used to provide some background noise, even when no speech data is being transmitted.
This is added locally on the receiver.

The use of the AMR codec also requires that an optimized connection fit is used in such a way that the optimal data rate is selected to meet the requirements of the current radio channel conditions, including its signal-to-noise-capacity ratio.
This is achieved by reducing the resource encoding and increasing channel encoding.
Although there is a decrease in the brightness of the voice, the network connection is more robust and the line is maintained without any failure.
Improvement levels from 4 to 6 dB may occur.
However, network operators can prioritize each station for quality or capacity.

The AMR codec has a total of eight frequencies: eight are available in full (FR), while six are available at half speed (HR).
This gives a total of fourteen different modes.

 

AMR data rate codec

AMR-WB codec

AMR-WB codec (adaptive multiple broadband & nbsp;(adaptive multi-rate wideband)), also known as its ITU G.722.2, is based on earlier The popular AMP codec, Adaptive Multi-rate.
AMR-WB also uses the ACELP base for its operation, but it has been further developed and AMR-WB provides improved speech quality due to the wider bandwidth it encodes.
The AMR-WB has a bandwidth from 50-7000 Hz, which is significantly wider than the bandwidth of 300-3400 Hz, which are used by standard phones.
However, this is worth the price of further processing, but with the advances in IC technology in recent years, it is completely acceptable.

The AMR-WB codec contains several functional areas: it mainly contains a set of speech speed modes and a fixed-speed channel codec.
It also includes other codec functions, including: Voice Activity Detector (VAD- and Voice Activity Detector); Discontinuous Transmission Functionality (DTX-Discontinuous Transmission Functionality) for GSM; and the SCR (Source Controlled Rate Functionality) function – the source-controlled speed of the function,  Controlled Rate) for UMTS applications.
Another function includes signaling in the codec mode bandwidth and the adaptation of the link to control mode selection.

The AMR-WB codec has a sampling frequency of 16 kHz and the coding is done in blocks of 20 ms.
There are two frequency bands that are used: 50-6400 Hz and 6400-7000 Hz.
These are coded separately to reduce the complexity of codecs.
This division also serves to focus the assignment of bits to a subjectively most important frequency range.

The lower frequency band uses the ACELP encoder algorithm, although several additional features have been added to improve the subjective sound quality.
Analysis of linear predictions is performed once every 20 ms frame.
Fixed and adaptation codebooks of excitation every 5 ms are also searched for optimal values of codec parameters.

A higher frequency band adds some qualities of naturalness and personality to the voice.
The sound is reconstructed using parameters from the lower band, as well as random excitation.
Since the level of performance in this band is less than the lower band level, the profit will be adjusted with respect to the lower belt, but based on the expression of information.
The content of the signal in the higher band is reconstructed using a linear predictive filter that generates information from the lower band of the filter.

 

 

Not all phones equipped with AMR-WB will have access to all data rates – different phone functions may not require everyone to be active, for example.
As a result, it is necessary to inform the network about what rates are available, thereby simplifying negotiations between the handset and the network.
There are three distinct AMR-WB configurations available to achieve this goal:

Configuration A: 6.6, 8.85 and 12.65 kbit/s
Configuration B: 6.6, 8.85, 12.65 and 15.85 kbit/s
Configuration C: 6.6, 8.85, 12.65 and 23.85 kbit/s

It is obvious that only 23.85, 15.85, 12.65, 8.85 and 6.60 kbit/s modes are used.
Based on listening tests, it was considered that these five modes were sufficient for high-quality voice telephony service.
Other data transfer speeds have been preserved and can be used for other purposes, including multimedia messages, audio streaming, etc.

 

<< Previous | another >>

 

Advertisements
AliExpress

Leave a Reply

Your email address will not be published. Required fields are marked *