Speech coding


Speech coding is an application of data compression of digital audio signals containing speech. Speech coding uses speech-specific parameter estimation using audio signal processing techniques to model the speech signal, combined with generic data compression algorithms to represent the resulting modeled parameters in a compact bitstream.
Some applications of speech coding are mobile telephony and voice over IP. The most widely used speech coding technique in mobile telephony is linear predictive coding, while the most widely used in VoIP applications are the LPC and modified discrete cosine transform techniques.
The techniques employed in speech coding are similar to those used in audio data compression and audio coding where knowledge in psychoacoustics is used to transmit only data that is relevant to the human auditory system. For example, in voiceband speech coding, only information in the frequency band 400 Hz to 3500 Hz is transmitted but the reconstructed signal is still adequate for intelligibility.
Speech coding differs from other forms of audio coding in that speech is a simpler signal than most other audio signals, and a lot more statistical information is available about the properties of speech. As a result, some auditory information which is relevant in audio coding can be unnecessary in the speech coding context. In speech coding, the most important criterion is preservation of intelligibility and "pleasantness" of speech, with a constrained amount of transmitted data.
In addition, most speech applications require low coding delay, as long coding delays interfere with speech interaction.

Categories

Speech coders are of two types:
  1. Waveform coders
  2. * Time-domain: PCM, ADPCM
  3. * Frequency-domain: sub-band coding, ATRAC
  4. Vocoders
  5. * Linear predictive coding
  6. * Formant coding

    Sample companding viewed as a form of speech coding

From this point of view, the A-law and μ-law algorithms used in traditional PCM digital telephony can be seen as an earlier precursor of speech encoding, requiring only 8 bits per sample but giving effectively 12 bits of resolution. The logarithmic companding laws are consistent with human hearing perception in that a low-amplitude noise is heard along a low-amplitude speech signal but is masked by a high-amplitude one. Although this would generate unacceptable distortion in a music signal, the peaky nature of speech waveforms, combined with the simple frequency structure of speech as a periodic waveform having a single fundamental frequency with occasional added noise bursts, make these very simple instantaneous compression algorithms acceptable for speech.
A wide variety of other algorithms were tried at the time, mostly on delta modulation variants, but after a careful consideration, the A-law/μ-law algorithms were chosen by the designers of the early digital telephony systems. At the time of their design, their 33% bandwidth reduction for a very low complexity made an excellent engineering compromise. Their audio performance remains acceptable, and there was no need to replace them in the stationary phone network.
In 2008, G.711.1 codec, which has a scalable structure, was standardized by ITU-T. The input sampling rate is 16 kHz.

Modern speech compression

Much of the later works in speech compression was motivated by military research into digital communications for secure military radios, where very low data rates were required to allow effective operation in a hostile radio environment. At the same time, far more processing power was available, in the form of VLSI circuits, than was available for earlier compression techniques. As a result, modern speech compression algorithms could use far more complex techniques than were available in the 1960s to achieve far higher compression ratios.
These techniques were available through the open research literature to be used for civilian applications, allowing the creation of digital mobile phone networks with substantially higher channel capacities than the analog systems that preceded them.
The most widely used speech coding algorithms are based on linear predictive coding. In particular, the most common speech coding scheme is the LPC-based Code Excited Linear Prediction coding, which is used for example in the GSM standard. In CELP, the modelling is divided in two stages, a linear predictive stage that models the spectral envelope and code-book based model of the residual of the linear predictive model. In CELP, linear prediction coefficients are computed and quantized, usually as line spectral pairs. In addition to the actual speech coding of the signal, it is often necessary to use channel coding for transmission, to avoid losses due to transmission errors. Usually, speech coding and channel coding methods have to be chosen in pairs, with the more important bits in the speech data stream protected by more robust channel coding, in order to get the best overall coding results.
The modified discrete cosine transform, a type of discrete cosine transform algorithm, was adapted into a speech coding algorithm called LD-MDCT, used for the AAC-LD format introduced in 1999. MDCT has since been widely adopted in voice-over-IP applications, such as the G.729.1 wideband audio codec introduced in 2006, Apple's Facetime introduced in 2010, and the CELT codec introduced in 2011.
Opus is a free software speech coder. It combines both the MDCT and LPC audio compression algorithms. It is widely used for VoIP calls in WhatsApp. The PlayStation 4 video game console also uses the CELT/Opus codec for its PlayStation Network system party chat.
Codec2 is another free software speech coder, which manages to achieve very good compression, as low as 700 bit/s.

Sub-fields

; Wideband audio coding
; Narrowband audio coding