Provisional Application Number US60/877,171
Provisional Application Number US60/877,172
1. Field of the Invention
The present invention is generally in the field of signal coding. In particular, the present invention is in the field of speech coding and specifically of improving the packet loss concealment performance.
2. Background Art
Traditionally, all parametric speech coding methods make use of the redundancy inherent in the speech signal to reduce the amount of information that must be sent and to estimate the parameters of speech samples of a signal at short intervals. This redundancy primarily arises from the repetition of speech wave shapes at a quasi-periodic rate, and the slow changing spectral envelop of speech signal.
The redundancy of speech wave forms may be considered with respect to several different types of speech signal, such as voiced and unvoiced. For voiced speech, the speech signal is essentially periodic; however, this periodicity may be variable over the duration of a speech segment and the shape of the periodic wave usually changes gradually from segment to segment. A low bit rate speech coding could greatly benefit from exploring such periodicity. The voiced speech period is also called pitch, and pitch prediction is often named Long-Term Prediction. As for the unvoiced speech, the signal is more like a random noise and has a smaller amount of periodicity.
In either case, parametric coding may be used to reduce the redundancy of the speech segments by separating the excitation component of the speech from the spectral envelop component. The slowly changing spectral envelope can be represented by Linear Prediction (also called Short-Term Prediction). A low bit rate speech coding could also benefit a lot from exploring such a Short-Term Prediction. The coding advantage arises from the slow rate at which the parameters change. Yet, it is rare for the parameters to be significantly different from the values held within a few milliseconds. Accordingly, at the sampling rate of 8 k Hz or 16 k Hz, the speech coding algorithm is such that the nominal frame duration is in the range of ten to thirty milliseconds. A frame duration of twenty milliseconds seems to be the most common choice. In more recent well-known standards such as G.723, G.729, EFR or AMR, the Code Excited Linear Prediction Technique (“CELP”) has been adopted; CELP is commonly understood as a technical combination of Coded Excitation, Long-Term Prediction and Short-Term Prediction. Code-Excited Linear Prediction (CELP) Speech Coding is a very popular algorithm principle in speech compression area.
The total excitation to the short-term linear filter 303 is a combination of two components; one is from the adaptive codebook 307; another one is from the fixed codebook 308. For strong voiced speech, the adaptive codebook contribution plays important role because the adjacent pitch cycles of voiced speech are similar each other, which means mathematically the pitch gain Gp is very high (around a value of 1). The fixed codebook contribution is needed for both voiced and unvoiced speech. The combined excitation can be expressed as
e(n)=Gp·ep(n)+Gc·ec(n) (1)
where ep(n) is one subframe of sample series indexed by n, coming from the adaptive codebook 307 which consists of the past excitation 304; ec(n) is from the coded excitation codebook 308 (also called fixed codebook) which is the current excitation contribution. For voiced speech, the contribution of ep(n) from the adaptive codebook could be significant and the pitch gain Gp 305 is around a value of 1. The excitation is usually updated for each subframe. Typical frame size is 20 milliseconds and typical subframe size is 5 milliseconds.
The excitation form from the fixed codebook 308 had a long history. Three major factors influence the design of the coded excitation generation. The first factor is the perceptual quality; the second one is the computational complexity; the third one is memory size required. The very initial model of the excitation consists of random noise excitation. The noise excitation can produce good quality for unvoiced speech but may be not good enough for voiced speech. Another famous excitation model is pulse-like excitation such as Multi-Pulse Excitation in which the pulse position and the magnitude of every possible pulse need to be coded and sent to the decoder. The pulse excitation can produce good quality for voiced speech. A variant pulse excitation model is called ACELP excitation model or Binary excitation model in which each pulse position index needs to be sent to the decoder; however all the magnitudes are assigned to a constant of value 1 except the magnitude signs (+1 or −1) need to be sent to the decoder. This is currently the most popular excitation model which is used in several international standards.
Gain Quantization System can be classified as Scalar Quantization (SQ) and Vector Quantization (VQ); it can also be classified as direct quantization and indirect quantization; it could be predictive quantization or non-predictive quantization; it could further be any combination of the above mentioned approaches. Scalar Quantization (SQ) means that each parameter is quantized independently (one by one). Vector Quantization (VQ) is to quantize the parameters as a group together, which usually requires pre-memorized codebook table; and the best quantized parameter vector is selected from the table to profit from correlation between parameters. Direct quantization system makes the two gains (Gp 305 and Gc 306) to be quantized directly. Indirect quantization system transforms the two parameters into another group of parameters and then quantizes the transformed parameters; the quantization indexes are sent to decoder; at decoder, the parameters are transformed back into the direct domain (the original form). Predictive quantization uses the previous quantized parameters to predict the current parameter(s) and quantizes only the unpredictable portion. The prediction can help reduce the number of bits needed to quantize the parameters; but it could introduce error propagation if the bit-stream packet is lost during transmission.
This invention will propose a transformed quantization system which could recover quickly the correct excitation energy after packet loss and significantly reduce error propagation.
In accordance with the purpose of the present invention as broadly described herein, there is provided model and system for gain quantization in speech coding.
In order to recover the excitation energy quickly and keep the adaptive excitation contribution percentage in the entire excitation after bit-stream packet loss, the two gains (Gp 305 and Gc 306) can be first transformed into two other special parameters: one is the entire excitation energy and another is the energy ratio of the adaptive excitation contribution portion relative to the entire excitation energy. Then, the transformed parameters are quantized and sent to decoder. At the decoder side, the quantized parameters are transformed back to the original form of the gains (Gp 305 and Gc 306).
The features and advantages of the present invention will become more readily apparent to those ordinarily skilled in the art after reviewing the following detailed description and accompanying drawings, wherein:
The present invention discloses a transformed gain quantization system which improves packet loss concealment quality. The following description contains specific information pertaining to the Code Excited Linear Prediction Technique (CELP). However, one skilled in the art will recognize that the present invention may be practiced in conjunction with various speech coding algorithms different from those specifically discussed in the present application. Moreover, some of the specific details, which are within the knowledge of a person of ordinary skill in the art, are not discussed to avoid obscuring the present invention.
The drawings in the present application and their accompanying detailed description are directed to merely example embodiments of the invention. To maintain brevity, other embodiments of the invention which use the principles of the present invention are not specifically described in the present application and are not specifically illustrated by the present drawings.
The weighting filter 110 is somehow related to the above short-term prediction filter. A typical form of the weighting filter could be
where β<α, 0<β8<1, 0<α≦1. The long-term prediction 105 depends on pitch and pitch gain; a pitch can be estimated from the original signal, residual signal, or weighted original signal. The long-term prediction function in principal can be expressed as
B(z)=1−β·z−Pitch (4)
The coded excitation 108 normally consists of pulse-like signal or noise-like signal, which are mathematically constructed or saved in a codebook. Finally, the coded excitation index, quantized gain index, quantized long-term prediction parameter index, and quantized short-term prediction parameter index are transmitted to the decoder.
e(n)=Gp·ep(n)+Gc·ec(n) (5)
where ep(n) is one subframe of sample series indexed by n, coming from the adaptive codebook 307 which consists of the past excitation 304; ec(n) is from the coded excitation codebook 308 (also called fixed codebook) which is the current excitation contribution. For voiced speech, the contribution of ep(n) from the adaptive codebook could be significant and the pitch gain Gp 305 is around a value of 1. The excitation is usually updated for each subframe. Typical frame size is 20 milliseconds and typical subframe size is 5 milliseconds.
The excitation form from the fixed codebook 308 had a long history. The very initial model of the excitation consisting of random noise excitation. The noise excitation can produce good quality for unvoiced speech but may be not good enough for voiced speech. Another famous excitation model is pulse-like excitation such as Multi-Pulse Excitation in which the pulse position and the magnitude of every possible pulse need to be coded and sent to the decoder. The pulse excitation can produce good quality for voiced speech. A variant pulse excitation model is called ACELP excitation model or Binary excitation model in which each pulse position index needs to be sent to the decoder; however all the magnitudes are assigned to a constant of value 1 except the magnitude signs (+1 or −1) need to be sent to the decoder. This is currently the most popular excitation model which is used in several international standards.
Gain Quantization System can be classified as Scalar Quantization (SQ) and Vector Quantization (VQ); it can also be classified as direct quantization and indirect quantization; it could be predictive quantization or non-predictive quantization; it could further be any combination of the above mentioned approaches. Scalar Quantization (SQ) means that each parameter is quantized independently (one by one). Vector Quantization (VQ) is to quantize the parameters as a group together, which usually requires pre-memorized codebook table; and the best quantized parameter vector is selected from the table to profit from correlation between parameters. Direct quantization system makes the two gains (Gp 305 and Gc 306) to be quantized directly. Indirect quantization system transforms the two parameters into another group of parameters and then quantizes the transformed parameters; the quantization indexes are sent to decoder; at the decoder side, the quantized parameters are transformed back into the direct domain (the original form). Predictive quantization uses the previous quantized parameters to predict the current parameter(s) and quantizes only the unpredictable portion. The prediction can help reduce the number of bits needed to quantize the parameters; but it could introduce error propagation if the bit-stream packet is lost during transmission. This invention will propose a transformed quantization system which could recover quickly the correct excitation energy after packet loss and significantly reduce error propagation.
As shown in the
Departing from the equation (5), the total energy of the excitation e(n) for one subframe of length L_sub can be represented as the average energy:
here,
A=∥e
p(n)∥2/L_sub,
B=2·ep(n),ec(n)/L_sub,
C=∥e
c(n)∥2/L_sub,
The above A, B, and C values are already determined before doing the gain quantization. The energy parameter can be also simply defined as the combined excitation energy:
The second transformed parameter represents the percentage energy contribution of each of the two excitation components. It can be defined as
R
p
=G
p
2
·A/Ē
e
or
R
p
=G
c
2
·/Ē
e (8)
Using the group of the equations {(6), (8)} or {(7), (8)}, the original gain parameters {Gp and Gc} are transformed into the two other parameters {Ēe,
Here is an example of the quantization tables for the two transformed parameters:
Ēe: {0.100000, 0.309747, 0.715438, 1.246790, 1.942727, 2.854229, 4.048066, 5.611690, 7.659643, 10.341944, 13.855080, 18.456401, 24.482967, 32.376247, 42.714448, 56.254879, 73.989421, 97.217189, 127.639694, 167.485488, 219.673407, 288.026391, 377.551525, 494.806824, 648.381632, 849.525815, 1112.973860, 1458.024216, 1909.952975, 2501.865431, 3277.121151, 4292.510210, 5622.413252, 7364.250123, 9645.616199, 12633.629177, 16547.170999, 21672.921696, . . . }.
The present invention may be embodied in other specific forms without departing from its spirit or essential characteristics. The described embodiments are to be considered in all respects only as illustrative and not restrictive. The scope of the invention is, therefore, indicated by the appended claims rather than the foregoing description. All changes which come within the meaning and range of equivalency of the claims are to be embraced within their scope.
Number | Date | Country | |
---|---|---|---|
60877173 | Dec 2006 | US | |
60877171 | Dec 2006 | US | |
60877172 | Dec 2006 | US |