A device and a method for quantizing a lpc filter in the form of an input vector in a quantization domain, comprises a calculator of a first-stage approximation of the input vector, a subtractor of the first-stage approximation from the input vector to produce a residual vector, a calculator of a weighting function from the first-stage approximation, a warper of the residual vector with the weighting function, and a quantizer of the weighted residual vector to supply a quantized weighted residual vector. A device and a method for inverse quantizing of a lpc filter, comprises means for receiving coded indices representative of a first-stage approximation of a vector representative of the lpc filter in a quantization domain and of a quantized weighted residual version of the vector, a calculator of an inverse weighting function from the first-stage approximation, an inverse quantizer of the quantized weighted residual version of the vector to produce a weighted residual vector, a multiplier of the weighted residual vector by the inverse weighting function to produce a residual vector, and an adder of the first-stage approximation with the residual vector to produce the vector representative of the lpc filter in the quantization domain.
|
1. A device for quantizing a lpc filter in the form of an input vector in a quantization domain, comprising:
a plurality of quantization modules using respective, distinct quantization modes, wherein the quantization modes include an absolute quantization mode and differential quantization modes, wherein the differential quantization modes use respective, different references each based on a previously quantized lpc filter or a combination of previously quantized lpc filters, and wherein each quantization module comprises:
a calculator of a first-stage approximation of the input vector, wherein the first stage approximation includes (a) the result of absolute quantization of the input vector in the case of the absolute quantization mode and (b) the reference in the case of the differential quantization modes;
a subtractor of the first-stage approximation from the input vector to produce a residual vector;
a calculator of weights of a weighting function using a mathematical relation including the first-stage approximation as a variable;
a warper of the residual vector by applying the weights of the weighting function to the residual vector; and
a quantizer of the weighted residual vector to supply a quantized weighted residual vector; and
a quantization mode selector configured to select one of the quantization modules and the corresponding quantization mode based on a level of distortion.
10. A device for quantizing a lpc filter in the form of an input vector in a quantization domain, comprising:
a plurality of quantization modules using respective, distinct quantization modes, wherein the quantization modes include an absolute quantization mode and differential quantization modes, wherein the differential quantization modes use respective, different references each based on a previously quantized lpc filter or a combination of previously quantized lpc filters, and wherein each quantization module comprises:
a calculator of a first-stage approximation of the input vector, wherein the first stage approximation includes (a) the result of absolute quantization of the input vector in the case of the absolute quantization mode and (b) the reference in the case of the differential quantization modes;
a subtractor of the first-stage approximation from the input vector to produce a residual vector;
a calculator of weights of a weighting function using a mathematical relation including the first-stage approximation as a variable;
a warper of the residual vector by applying the weights of the weighting function to the residual vector; and
a quantizer of the weighted residual vector to supply a quantized weighted residual vector; and
a quantization mode selector configured to select one of the quantization modules and the corresponding quantization mode based on a level of distortion;
wherein, in each of the quantization modules, the quantizer of the weighted residual vector comprises a variable bit rate quantizer.
15. A method implemented in an encoder for quantizing a lpc filter in the form of an input vector in a quantization domain, comprising:
providing a plurality of distinct quantization modes, wherein the quantization modes include an absolute quantization mode and differential quantization modes, wherein the differential quantization modes use respective, different references each based on a previously quantized lpc filter or a combination of previously quantized lpc filters;
performing, for each of the plurality of distinct quantization modes, the following operations:
computing a first-stage approximation of the input vector, wherein the first stage approximation includes (a) the result of absolute quantization of the input vector in the case of the absolute quantization mode and (b) the reference in the case of the differential quantization modes;
subtracting the first-stage approximation from the input vector to produce a residual vector;
calculating weights of a weighting function using a mathematical relation including the first-stage approximation as a variable;
applying the weights of the weighting function to the residual vector; and
quantizing the weighted residual vector to supply a quantized weighted residual vector;
selecting one of the quantization modes based on a level of distortion; and
transmitting from the encoder to a decoder the selected quantization mode, the first-stage approximation of the input vector obtained using the selected quantization mode, and the quantized weighted residual vector obtained using the selected quantization mode.
21. A method implemented in an encoder for quantizing a lpc filter in the form of an input vector in a quantization domain, comprising:
providing a plurality of distinct quantization modes, wherein the quantization modes include an absolute quantization mode and differential quantization modes, wherein the differential quantization modes use respective, different references each based on a previously quantized lpc filter or a combination of previously quantized lpc filters;
performing, for each of the plurality of distinct quantization modes, the following operations:
computing a first-stage approximation of the input vector, wherein the first stage approximation includes (a) the result of absolute quantization of the input vector in the case of the absolute quantization mode and (b) the reference in the case of the differential quantization modes;
subtracting the first-stage approximation from the input vector to produce a residual vector;
calculating weights of a weighting function using a mathematical relation including the first-stage approximation as a variable;
applying the weights of the weighting function to the residual vector; and
quantizing the weighted residual vector to supply a quantized weighted residual vector;
selecting one of the quantization modes based on a level of distortion; and
transmitting from the encoder to a decoder the selected quantization mode, the first-stage approximation of the input vector obtained using the selected quantization mode, and the quantized weighted residual vector obtained using the selected quantization mode;
wherein quantizing the weighted residual vector comprises using a variable bit rate quantizer.
12. A device for inverse quantizing a lpc filter quantized in an encoder, in the form of an input vector in a quantization domain, by a lpc filter quantizing device comprising (a) a plurality of quantization modules using respective, distinct quantization modes, wherein the quantization modes include an absolute quantization mode and differential quantization modes, wherein the differential quantization modes use respective, different references each based on a previously quantized lpc filter or a combination of previously quantized lpc filters, and wherein each quantization module comprises (i) a calculator of a first-stage approximation of the input vector, wherein the first stage approximation includes the result of absolute quantization of the input vector in the case of the absolute quantization mode and the reference in the case of the differential quantization modes, (ii) a subtractor of the first-stage approximation from the input vector to produce a residual vector, (iii) a calculator of weights of a weighting function using a mathematical relation including the first-stage approximation as a variable, (iv) a warper of the residual vector by applying the weights of the weighting function to the residual vector, and (v) a quantizer of the weighted residual vector to supply a quantized weighted residual vector; and (b) a quantization mode selector configured to select one of the quantization modules and the corresponding quantization mode based on a level of distortion, the lpc filter inverse quantizing device comprising:
a demultiplexer for receiving, from the encoder, and for demultiplexing coded indices representative of (a) the first-stage approximation from the selected quantization module, (b) the selected quantization mode, and (c) the quantized weighted residual vector from the selected quantization module;
a determiner of the selected quantization mode using the demultiplexed coded indices;
a calculator of the first-stage approximation in response to the demultiplexed coded indices, and as a function of the determined quantization mode;
a calculator of an inverse weighting function from the first-stage approximation;
an inverse quantizer of the quantized weighted residual vector responsive to the demultiplexed coded indices to produce a weighted residual vector;
a multiplier of the weighted residual vector by the inverse weighting function to produce a residual vector; and
an adder of the first-stage approximation with the residual vector to produce a vector representative of the lpc filter in the quantization domain.
0. 29. A method implemented in a decoder for inverse quantizing a lpc filter quantized in an encoder, in the form of an input vector in a quantization domain, comprising:
providing a plurality of distinct quantization modes for quantizing the lpc filter, wherein the quantization modes include an absolute quantization mode and differential quantization modes, wherein the differential quantization modes use respective, different references each based on a previously quantized lpc filter or a combination of previously quantized lpc filters;
receiving at the decoder, from the encoder, a bitstream;
demultiplexing from the bitstream coded indices representative of:
(a) one of the distinct quantization modes selected in the encoder for quantizing the lpc filter and signaled in the bitstream from the encoder to the decoder using a variable-length binary code;
(b) a first-stage approximation of the input vector computed in the encoder for the said one quantization mode, wherein the first-stage approximation includes the result of absolute quantization of the input vector in the case of the absolute quantization mode and the reference in the case of the differential quantization modes;
(c) a quantized weighted residual vector computed in the encoder for the said one quantization mode
by (i) computing a residual vector, (ii) calculating weights of a weighting function using a mathematical relation including the first-stage approximation as a variable and a scaling factor which depends on the determined quantization mode to control distortion, (iii) applying the weights of the weighting function to the residual vector, and (iv) quantizing the weighted residual vector to supply the quantized weighted residual vector;
 determining the quantization mode selected for quantizing the lpc filter using the demultiplexed coded indices from the bitstream, the determined quantization mode indicating how the first-stage approximation is computed;
calculating, in response to the demultiplexed coded indices, the first-stage approximation as a function of the determined quantization mode;
calculating weights of an inverse weighting function from the calculated first-stage approximation;
inverse quantizing the quantized weighted residual vector in response to the demultiplexed coded indices to produce a weighted residual vector;
applying the weights of the inverse weighting function to the weighted residual vector to produce the residual vector; and
adding the calculated first-stage approximation with the residual vector to produce an output vector representative of the lpc filter in the quantization domain.
23. A method implemented in a decoder for inverse quantizing a lpc filter quantized in an encoder, in the form of an input vector in a quantization domain, by a lpc filter quantizing method comprising (a) providing a plurality of distinct quantization modes, wherein the quantization modes include an absolute quantization mode and differential quantization modes, wherein the differential quantization modes use respective, different references each based on a previously quantized lpc filter or a combination of previously quantized lpc filters, (b) performing, for each of the plurality of distinct quantization modes, the following operations: (i) computing a first-stage approximation of the input vector, wherein the first stage approximation includes the result of absolute quantization of the input vector in the case of the absolute quantization mode and the reference in the case of the differential quantization modes, (ii) subtracting the first-stage approximation from the input vector to produce a residual vector, (iii) calculating weights of a weighting function using a mathematical relation including the first-stage approximation as a variable, (iv) applying the weights of the weighting function to the residual vector, and (v) quantizing the weighted residual vector to supply a quantized weighted residual vector, (c) selecting one of the quantization modes based on a level of distortion, and (d) transmitting from the encoder to the decoder the selected quantization mode, the first-stage approximation of the input vector obtained using the selected quantization mode, and the quantized weighted residual vector obtained using the selected quantization mode, the lpc filter inverse quantizing method comprising:
receiving at the decoder, from the encoder, coded indices representative of (a) the first-stage approximation from the selected quantization mode, (b) the selected quantization mode, and (c) the quantized weighted residual vector from the selected quantization mode;
determining the selected quantization mode using the received coded indices;
calculating, in response to the received coded indices, the first-stage approximation as a function of the determined quantization mode;
calculating an inverse weighting function from the first-stage approximation;
inverse quantizing the quantized weighted residual vector in response to the received coded indices to produce a weighted residual vector;
applying the inverse weighting function to the weighted residual vector to produce a residual vector; and
adding the first-stage approximation with the residual vector to produce a vector representative of the lpc filter in the quantization domain.
2. An lpc filter quantizing device according to
3. An lpc filter quantizing device according to
4. An lpc filter quantizing device according to
5. An lpc filter quantizing device according to
6. An lpc filter quantizing device according to
7. An lpc filter quantizing device according to
8. An lpc filter quantizing device according to
9. An lpc filter quantizing device according to
11. An lpc filter quantizing device according to
13. An lpc filter inverse quantizing device according to
14. An lpc filter inverse quantizing device according to
16. An lpc filter quantizing method according to
17. An lpc filter quantizing method according to
18. An lpc filter quantizing method according to
19. An lpc filter quantizing method according to
20. An lpc filter quantizing method according to
22. An lpc filter quantizing method according to
24. An lpc filter inverse quantizing method according to
25. An lpc filter inverse quantizing method according to
26. An lpc filter inverse quantizing method according to
27. An lpc filter inverse quantizing method according to
28. An lpc filter quantizing device according to
lpc4 filter, with absolute quantization, and with 8-bit vector quantization (VQ) approximation;
lpc0 filter, with absolute quantization, and with 8-bit VQ approximation;
lpc0 filter, with relative lpc4 quantization, and with quantized lpc4 approximation;
lpc2 filter, with absolute quantization, and with 8-bit VQ approximation;
lpc2 filter, with relative lpc4 quantization, and with quantized lpc4 approximation;
lpc1 filter, with absolute quantization, and with 8-bit VQ approximation;
lpc1 filter, with relative (lpc0+lpc2)/2 quantization, and with quantized (lpc0+lpc2)/2 approximation;
lpc1 filter, with relative lpc2 quantization, and with quantized lpc2 approximation;
lpc3 filter, with absolute quantization, and with 8-bit VQ approximation;
lpc3 filter, with relative (lpc2+lpc4)/2 quantization, and with quantized (lpc2+lpc4)/2 approximation;
lpc3 filter, with relative lpc2 quantization, and with quantized lpc2 approximation; and
lpc3 filter, with relative lpc4 quantization, and with quantized lpc4 approximation;
wherein the lpc0 filter is the lpc filter of a last frame of a previous super-frame, the lpc1 filter is the lpc filter of a first frame of a current super-frame, the lpc2 filter is the lpc filter of a second frame of the current super-frame, the lpc3 filter is the lpc filter of a third frame of the current super-frame and the lpc4 filter is the lpc filter of a fourth frame of the current super-frame.
0. 30. An lpc filter inverse quantizing method according to claim 29, wherein the quantized weighted residual vector is a quantized weighted residual LSF vector, and the output vector representative of the lpc filter in the quantization domain from the adding operation is a vector in LSF domain.
0. 31. An lpc filter inverse quantizing method according to claim 29, wherein calculating the weights of the inverse weighting function uses a mathematical relation including the calculated first-stage approximation as a variable and the scaling factor.
0. 32. An lpc filter inverse quantizing method according to claim 29, wherein inverse quantizing the quantized weighted residual vector to produce a weighted residual vector comprises using a variable bit rate inverse algebraic vector quantizer.
|
The present invention relates to coding and decoding of a sound signal, for example an audio signal. More specifically, but not exclusively, the present invention relates to variable bit rate LPC (Linear Prediction Coefficients) filter quantizing and inverse quantizing device and method.
The demand for efficient digital speech and audio coding techniques with a good trade-off between subjective quality and bit rate is increasing in various application areas such as teleconferencing, multimedia, and wireless communication.
A speech coder converts a speech signal into a digital bit stream which is transmitted over a communication channel or stored in a storage medium. The speech signal to be coded is digitized, that is sampled and quantized using for example 16-bits per sample. A challenge of the speech coder is to represent the digital samples with a smaller number of bits while maintaining a good subjective speech quality. A speech decoder or synthesizer converts the transmitted or stored bit stream back to a speech signal.
Code-Excited Linear Prediction (CELP) coding is one of the best techniques for achieving a good compromise between subjective quality and bit rate. The CELP coding technique is a basis for several speech coding standards both in wireless and wireline applications. In CELP coding, the speech signal is sampled and processed in successive blocks of L samples usually called frames, where L is a predetermined number of samples corresponding typically to 10-30 ms of speech. A linear prediction LP) filter is computed and transmitted every frame; the LP filter is also known as LPC (Linear Prediction Coefficients) filter. The computation of the LPC filter typically uses a lookahead, for example a 5-15 ms speech segment from the subsequent frame. The L-sample frame is divided into smaller blocks called subframes. In each subframe, an excitation signal is usually obtained from two components, a past excitation and an innovative, fixed-code-book excitation. The past excitation is often referred to as the adaptive-codebook or pitch-codebook excitation. The parameters characterizing the excitation signal are coded and transmitted to the decoder, where the excitation signal is reconstructed and used as the input of the LPC filter.
In applications such as multimedia streaming and broadcast, it may be required to encode speech, music, and mixed content at low bit rate. For that purpose, encoding models have been developed which combine a CELP coding optimized for speech signals with transform coding optimized for audio signals. An example of such models is the AMR-WB+ [1], which switches between CELP and TCX (Transform Coded excitation). In order to improve the quality of music and mixed content, a long delay is used to allow for finer frequency resolution in the transform domain. In AMR-WB+, a so-called super-frame is used which consists of four CELP frames (typically 80 ms).
A drawback is that, although the CELP coding parameters are transmitted once every 4 frames in AMR-WB+, quantization of the LPC filter is performed separately in each frame. Also, the LPC filter is quantized with a fixed number of bits per frame in the case of CELP frames.
In the appended drawings:
According to non-restrictive illustrative embodiments of the present invention, there are provided:
A device for quantizing a LPC filter in the form of an input vector in a quantization domain, comprising: means for computing a first-stage approximation of the input vector; means for subtracting the first-stage approximation from the input vector to produce a residual vector; means for calculating a weighting function from the first-stage approximation; means for applying the weighting function to the residual vector; and means for quantizing the weighted residual vector to supply a quantized weighted residual vector.
A device for quantizing a LPC filter in the form of an input vector in a quantization domain, comprising: a calculator of a first-stage approximation of the input vector; a subtractor of the first-stage approximation from the input vector to produce a residual vector; a calculator of a weighting function from the first-stage approximation; a warper of the residual vector with the weighting function; and a quantizer of the weighted residual vector to supply a quantized weighted residual vector.
A device for quantizing a LPC filter in the form of an input vector in a quantization domain, comprising: a calculator of a first-stage approximation of the input vector; a subtractor of the first-stage approximation from the input vector to produce a residual vector; a calculator of a weighting function from the first-stage approximation; a warper of the residual vector with the weighting function; and a quantizer of the weighted residual vector to supply a quantized weighted residual vector. The calculator of the first-stage approximation is selected from the group consisting of: an absolute quantizer of the input vector; a quantizer of a previous LPC vector; a quantizer of a future LPC vector; and an interpolator of previous quantized and/or future quantized LPC vectors; to give an estimate of the input vector.
A device for quantizing a LPC filter in the form of an input vector in a quantization domain, comprising: a calculator of a first-stage approximation of the input vector; a subtractor of the first-stage approximation from the input vector to produce a residual vector; a calculator of a weighting function from the first-stage approximation; a warper of the residual vector with the weighting function; and a quantizer of the weighted residual vector to supply a quantized weighted residual vector. The calculator of the weighting function calculates different weights, and the warper applies the different weights to components of the residual vector.
A device for quantizing a LPC filter in the form of an input vector in a quantization domain, comprising: a calculator of a first-stage approximation of the input vector; a subtractor of the first-stage approximation from the input vector to produce a residual vector; a calculator of a weighting function from the first-stage approximation; a warper of the residual vector with the weighting function; and a quantizer of the weighted residual vector to supply a quantized weighted residual vector. The quantizer of the weighted residual vector comprises a variable bit rate quantized.
A device for inverse quantizing of a LPC filter, comprising: means for receiving coded indices representative of a first-stage approximation of a vector representative of the LPC filter in a quantization domain, and a quantized weighted residual version of the vector; means for calculating an inverse weighting function from the first-stage approximation; means for inverse quantizing the quantized weighted residual version of the vector to produce a weighted residual vector; means for applying the inverse weighting function to the weighted residual vector to produce a residual vector; and means for adding the first-stage approximation with the residual vector to produce the vector representative of the LPC filter in the quantization domain.
A device for inverse quantizing of a LPC filter, comprising: means for receiving coded indices representative of a first-stage approximation of a vector representative of the LPC filter in a quantization domain, and a quantized weighted residual version of the vector; a calculator of an inverse weighting function from the first-stage approximation; an inverse quantizer of the quantized weighted residual version of the vector to produce a weighted residual vector; a multiplier of the weighted residual vector by the inverse weighting function to produce a residual vector; and an adder of the first-stage approximation with the residual vector to produce the vector representative of the LPC filter in the quantization domain.
A device for inverse quantizing of a LPC filter, comprising: means for receiving coded indices representative of a first-stage approximation of a vector representative of the LPC filter in a quantization domain, and a quantized weighted residual version of the vector; a calculator of an inverse weighting function from the first-stage approximation, an inverse quantizer of the quantized weighted residual version of the vector to produce a weighted residual vector; a multiplier of the weighted residual vector by the inverse weighting function to produce a residual vector; and an adder of the first-stage approximation with the residual vector to produce the vector representative of the LPC filter in the quantization domain. The received coded indices include an index representative of a quantization mode.
A device for inverse quantizing of a LPC filter, comprising: means for receiving coded indices representative of a first-stage approximation of a vector representative of the LPC filter in a quantization domain, and a quantized weighted residual version of the vector; a calculator of an inverse weighting function from the first-stage approximation; an inverse quantizer of the quantized weighted residual version of the vector to produce a weighted residual vector; a multiplier of the weighted residual vector by the inverse weighting function to produce a residual vector; and an adder of the first-stage approximation with the residual vector to produce the vector representative of the LPC filter in the quantization domain. The inverse quantizer of the quantized weighted residual version of the vector comprises a variable bit rate inverse quantizer.
A method for quantizing a LPC filter in the form of an input vector in a quantization domain, comprising: computing a first-stage approximation of the input vector; subtracting the first-stage approximation from the input vector to produce a residual vector; calculating a weighting function from the first-stage approximation; applying the weighting function to the residual vector; and quantizing the weighted residual vector to supply a quantized weighted residual vector.
A method for quantizing a LPC filter in the form of an input vector in a quantization domain, comprising: computing a first-stage approximation of the input vector; subtracting the first-stage approximation from the input vector to produce a residual vector; calculating a weighting function from the first-stage approximation; applying the weighting function to the residual vector; and quantizing the weighted residual vector to supply a quantized weighted residual vector. Computing the first-stage approximation is selected from the group consisting of: absolute quantizing of the input vector; quantizing of a previous LPC vector; quantizing of a future LPC vector; and interpolating of previous quantized and/or future quantized LPC vectors to give an estimate of the input vector.
A method for quantizing a LPC filter in the form of an input vector in a quantization domain, comprising: computing a first-stage approximation of the input vector; subtracting the first-stage approximation from the input vector to produce a residual vector; calculating a weighting function from the first-stage approximation; applying the weighting function to the residual vector; and quantizing the weighted residual vector to supply a quantized weighted residual vector. Calculating a weighting function comprises calculating different weights, and applying the weighting function comprises applying the different weights to components of the residual vector.
A method for quantizing a LPC filter in the form of an input vector in a quantization domain, comprising: computing a first-stage approximation of the input vector; subtracting the first-stage approximation from the input vector to produce a residual vector; calculating a weighting function from the first-stage approximation; applying the weighting function to the residual vector; and quantizing the weighted residual vector to supply a quantized weighted residual vector. Quantizing the weighted residual vector comprises using a variable bit rate quantizer.
A method for inverse quantizing of a LPC filter, comprising: receiving coded indices representative of a first-stage approximation of a vector representative of the LPC filter in a quantization domain, and a quantized weighted residual version of the vector; calculating an inverse weighting function from the first-stage approximation; inverse quantizing the quantized weighted residual version of the vector to produce a weighted residual vector; applying the inverse weighting function to the weighted residual vector to produce a residual vector; and adding the first-stage approximation with the residual vector to produce the vector representative of the LPC filter in the quantization domain.
A method for inverse quantizing of a LPC filter, comprising: receiving coded indices representative of a first-stage approximation of a vector representative of the LPC filter in a quantization domain, and a quantized weighted residual version of the vector; calculating an inverse weighting function from the first-stage approximation; inverse quantizing the quantized weighted residual version of the vector to produce a weighted residual vector; applying the inverse weighting function to the weighted residual vector to produce a residual vector; and adding the first-stage approximation with the residual vector to produce the vector representative of the LPC filter in the quantization domain. The received coded indices include an index representative of a quantization mode.
A method for inverse quantizing of a LPC filter, comprising: receiving coded indices representative of a first-stage approximation of a vector representative of the LPC filter in a quantization domain, and a quantized weighted residual version of the vector; calculating an inverse weighting function from the first-stage approximation; inverse quantizing the quantized weighted residual version of the vector to produce a weighted residual vector; applying the inverse weighting function to the weighted residual vector to produce a residual vector; and adding the first-stage approximation with the residual vector to produce the vector representative of the LPC filter in the quantization domain. Inverse quantizing the quantized weighted residual version of the vector comprises variable bit rate inverse quantizing the quantized weighted residual version of the vector.
The foregoing and other features of the present invention will become more apparent upon reading of the following non-restrictive description of embodiments thereof, given by way of example only with reference to the accompanying drawings.
Differential Quantization with a Choice of Possible References
Differential quantization with a choice between several possible references is used. More specifically, a LPC filter is differentially quantized relative to several possible references.
Consecutive LPC filters are known to exhibit a certain degree of correlation. To take advantage of this correlation, LPC quantizers generally make use of prediction. Instead of quantizing the vector of Linear Prediction Coefficients (LPC vector) representing the LPC filter directly, a differential (or predictive) quantizer first computes a predicted value of this LPC vector and, then, quantizes the difference (often called prediction residual) between the original LPC vector and the predicted LPC vector.
Prediction is normally based on previous values of the LPC filter. Two types of predictors are commonly used: moving average (MA) and auto-regressive (AR) predictors. Although AR predictors are often more efficient in reducing the L2-norm (mean square) of the data to be quantized than MA predictors, the latter are sometimes useful because they are less prone to error propagation in case of transmission errors [2].
Since the L2-norm of the prediction residual is on average lower than the L2-norm of the original LPC vector (the ratio between the two depending on the degree of predictability of the LPC filter), a differential (or predictive) quantizer can achieve the same degree of performance as an absolute quantizer but at a lower bit rate.
On average, prediction is indeed efficient at reducing the L2-norm of the data to be quantized. This behavior is not constant however; prediction is much more efficient during stable segments of signal than during transitional segments. Prediction can even lead to increased L2-norm values when the LPC filters change fast. Some performance improvement can be achieved by considering two different predictors, one for highly predictive segments the other for less predictive segments [3, 4]. As mentioned in the foregoing description, this technique uses only past values of the LPC filter.
To overcome this problem, it is proposed to differentially quantize a LPC filter relative to a reference, for example a reference filter, chosen among a number of possible references. The possible reference filters are already quantized past or future LPC filters (hence available at the decoder as at the encoder), or the results of various extrapolation or interpolation operations applied to already quantized past or future LPC filters. The reference filter that provides the lower distortion at a given rate, or the lower bit rate for a given target distortion level, is selected.
past or future quantized LPC filters;
the result of extrapolation or interpolation operations applied to past or future quantized LPC filters; or
any quantized value available both at the encoder and the decoder.
As a non-limitative example, the input LPC filter 101 can be differentially quantized with respect to the previous quantized LPC filter, the following quantized LPC filter, or a mean value of those two previous and following quantized LPC filters. A reference can also be a LPC filter quantized using an absolute quantizer, or the result of any kind of interpolation, extrapolation or prediction (AR or MA) applied to already quantized LPC filters.
Operations 102 and 1031, 1032, . . . , 103n: Still referring to
Operation 104: The multi-reference LPC filter quantization device and method of
In Operation 104, the selection of a reference amongst references 1, 2, . . . , n to be actually used in the differential quantization process can be performed in closed-loop or in open-loop.
In closed-loop, all possible references are tried and the reference that optimizes a certain criterion of distortion or bit rate is chosen. For example, the closed-loop selection can be based on minimizing a weighted mean-squared error between the input LPC vector and the quantized LCP vector corresponding to each reference. Also, the spectral distortion between the input LPC vector and the quantized LPC vector can be used. Alternatively, the quantization using the possible references can be performed while maintaining a distortion under a certain threshold, and the reference that both meets with this criterion and uses the smaller number of bits is chosen. As will be explained in the following description, a variable bit rate algebraic vector quantizer can be used to quantize the scaled residual vector (difference between the input LPC vector and the reference) which uses a certain bit budget based on the energy of the scaled residual vector. In this case, the reference which yields the smaller number of bits is chosen.
In open-loop, the selector of Operation 104 predetermines the reference based on the value of the Linear Prediction Coefficients of the input LPC filter to be quantized and of the Linear Prediction Coefficients of the available reference LPC filters. For example, the L2-norm of the residual vector is computed for all references and the reference that yields the smaller value is chosen.
Operation 105: Following the selection of one of the references 1, 2, . . . , n by the Operation 104, a transmitter (Operation 105) communicates or signals to the decoder (not shown) the quantized LPC filter (not shown) and an index indicative of the quantization mode (sub-operation 1051), for example absolute or differential quantization. Also, when differential quantization is used, the transmitter (Operation 105) communicates or signals to the decoder indices representative of the selected reference and associated differential quantizer of Operations 1031, 1032, . . . , 103n (sub-operation 1052). Some specific bits are transmitted to the decoder for such signaling.
Using a number of different possible references makes differential quantization more efficient in terms of reduction of the L2-norm of prediction residual compared to restricting to past values only as in conventional prediction. Also, for a given target level of distortion, this technique is more efficient in terms of average bit rate.
Switched Absolute or Differential Quantization
According to a second aspect, switched absolute/differential (or predictive) quantization is used.
Some LPC filters can be coded using the absolute quantizer (Operation 102). The other LPC filters are coded differentially with respect to one or several reference LPC filters in the differential quantizers (Operations 1031, 1032, . . . , 103n).
The absolute quantizer (Operation 102) can be used as a safety-net solution for the otherwise differentially quantized LPC filters, for example in the case of large LPC deviations or when the absolute quantizer (Operation 102) is more efficient than the differential quantizers (Operations 1031, 1032, . . . , 103n) in terms of bit rate. The reference LPC filter(s) can be all within the same super-frame to avoid introducing dependencies between super-frames which usually pose problems in case of transmission errors (packet losses or frame erasures).
As explained in the foregoing description, the use of prediction in LPC quantization leads to a reduced L2-norm of the data to be quantized and consequently to a reduction in average bit rate for achieving a certain level of performance. Prediction is not always equally efficient however. In switched LPC [3, 4], a pre-classification of the LPC filter is performed and different predictors are used depending on the predictability of the LPC filter to be quantized. However this technique has been developed in the context of a fixed bit rate, the two differential quantizers requiring a same number of bits to code an LPC filter.
Also, there may be provided one or several absolute quantizers (Operation 102). Moreover, there may be provided one or several differential (predictive) quantizers (Operations 1031, 1032, . . . , 103n). Several differential quantizers (Operations 1031, 1032, . . . , 103n) involves several possible references such as 1, 2, . . . , n and/or several differential quantizer sizes and/or structures.
As described in the foregoing description, when several differential quantizers (Operations 1031, 1032, . . . , 103n) are used, selection of the actual differential quantizer to be used can be performed in an open-loop or in a closed-loop selecting process.
When differential quantization fails to achieve a target level of distortion, or when absolute quantization requires a smaller number of bits than differential quantization to achieve that level of distortion, absolute quantization is used as a safety-net solution. One or several bits, depending on the number of possible absolute and differential quantizers is (are) transmitted through the transmitter (Operation 105) to indicate to the decoder (not shown) the actual quantizer being used.
Absolute/differential quantization combines the advantages of predictive quantization (reduction in bit rate associated with the reduction of the L2-norm of the data to be quantized) with the generality of absolute quantization (which is used as a safety-net in case differential (or predictive) quantization does not achieve a target, for example unnoticeable, level of distortion).
When several differential quantizers (Operations 1031, 1032, . . . , 103n) are included, these differential quantizers can make use of either a same predictor or different predictors. In particular, but not exclusively, these several differential quantizers can use the same prediction coefficients or different prediction coefficients.
The decoder comprises means for receiving and extracting from the bit stream, for example a demultiplexer, (a) the quantized LPC filter and (b) the index (indices) or information:
about the quantization mode to determine if the LPC filter has been quantized using absolute quantization or differential quantization; and
about the reference amongst the plurality of possible references that has been used for quantizing the LPC filter.
If the information about the quantization mode indicates that the LPC filter has been quantized using absolute quantization, an absolute inverse quantizer (not shown) is provided for inverse quantizing the quantized LPC filter. If the information about the quantization mode indicates that the LPC filter has been quantized using differential quantization, a differential inverse quantizer (not shown) then differentially inverse quantizes the multi-reference differentially quantized LPC filter using the reference corresponding to the extracted reference information.
Out-of-the-Loop Quantization Scheme
The AMR-WB+ codec is a hybrid codec that switches between a time-domain coding model based on the ACELP coding scheme, and a transform-domain coding model called TCX. The AMR-WB+ proceeds as follows [1]:
The input signal is segmented into super-frames of four (4) frames;
Each super-frame is encoded using a combination of four (4) possible coding modes, each coding mode covering a different duration:
ACELP (covering a duration of one (1) frame);
TCX256 (covering a duration of one (1) frame);
TCX512 (covering a duration of two (2) frames); and
TCX1024 (covering a duration of four (4) frames).
There are therefore 26 possible mode combinations to code each super-frame.
For a given super-frame, the combination of modes which minimizes a total weighted error is determined by a “closed-loop” mode selection procedure. More specifically, instead of testing the 26 combinations, the selection of the mode is performed through eleven (11) different trials (tree search, see Table 1). In AMR-WB+ codec, the closed-loop selection is based on minimizing the mean-squared error between the input and codec signal in a weighted domain (or maximizing the signal to quantization noise ratio).
TABLE 1
The 11 trials for closed-loop mode selection in AMR-WB+
Trial
Frame 1
Frame 2
Frame 3
Frame 4
1
ACELP
2
TCX256
3
ACELP
4
TCX256
5
TCX512
6
ACELP
7
TCX256
8
ACELP
9
TCX256
10
TCX512
11
TCX1024
The LPC filters are one of the various parameters transmitted by the AMR-WB+ codec. Following are some key elements regarding the quantization and transmission of those LPC filters.
Although the different coding modes do not cover the same number of frames, the number of LPC filters transmitted to the decoder is the same for all coding modes and equal to 1. Only the LPC filter corresponding to the end of the covered segment is transmitted. More specifically, in the case of TCX1024, one (1) LPC filter is calculated and transmitted for a duration of four (4) frames. In the case of TCX512, one (1) LPC filter is calculated and transmitted for a duration of two (2) frames. In the case of TCX256 or ACELP, one (1) LPC filter is calculated and transmitted for the duration of one (I) frame.
The AMR-WB+ codec uses a (first order moving-average) predictive LPC quantizer. The operation of the latter quantizer depends on the previously transmitted LPC filter, and consequently on the previously selected coding mode. Therefore, because the exact combination of modes is not known until the entire super-frame is coded, some LPC filters are encoded several times before the final combination of modes is determined.
For example, the LPC filter located at the end of frame 3 is transmitted to the decoder only when the third frame is encoded as ACELP or TCX256. It is not transmitted when frames 3 and 4 are jointly encoded using TCX512. With regards to the LPC filter located at the end of frame 2, it is transmitted in all combinations of modes except in TCX1024. Therefore, the prediction performed when quantizing the last LPC filter of the super-frame depends on the combination of modes for the whole super-frame.
The principle of the disclosed technique is that the order in which the LPC filters are quantized is chosen so that, once the closed-loop decision is finalized, the quantization information corresponding to the unnecessary LPC filters can be skipped from the transmission with no effect on the way the other filters will be transmitted and decoded at the decoder. For each LPC filter to be quantized using the differential quantization strategy described above, this imposes some constraints on the possible reference LPC filters.
The following example is given with reference to
Operation 1 of
Operation 2 of
Operation 3 of
Operation 501: An absolute quantizer quantizes the filter LPC4.
Operation 502: Operation 512 is optional and used in a first LPC-based coding frame after a non-LPC-based coding frame. An absolute quantizer quantizes the filter LPC0 or a differential quantizer differentially quantizes the filter LPC0 relative to the quantized filter LPC4. The filter LPC0 is the last LPC filter (LPC4) from the previous super-frame and can be used as a possible reference for quantizing the filters LPC1 to LPC4.
Operation 503: An absolute quantizer quantizes the filter LPC2 or a differential quantizer differentially quantizes the filter LPC2 relative to the quantized filter LPC4 used as reference.
Operation 504: An absolute quantizer quantizes the filter LPC1, a differential quantizer differentially quantizes the filter LPC1 relative to the quantized filter LPC2 used as reference, or a differential quantizer differentially quantizes the filter LPC1 relative to (quantized filter LPC2+quantized filter LPC0)/2) used as reference.
Operation 505: An absolute quantizer quantizes the filter LPC3, a differential quantizer differentially quantizes the filter LPC3 relative to the quantized filter LPC2 used as reference, a differential quantizer differentially quantizes the filter LPC3 relative to quantized filter LPC4 used as reference, or a differential quantizer differentially quantizes the filter LPC3 relative to (quantized filter LPC2+quantized filter LPC4)/2) used as reference.
First of all it should be kept in mind that quantized filter LPC1 is transmitted only when ACELP and/or TCX256 is selected for the first half of the super-frame. Similarly, filter LPC3 is transmitted only when ACELP and/or TCX256 is used for the second half of that super-frame.
Operation 301: Filter LPC1 of frame 1 of the super-frame, filter LPC2 of frame 2 of the super-frame, filter LPC3 of frame 3 of the super-frame, and filter LPC4 of frame 4 of the super-frame are quantized using for example the quantization strategy illustrated and described in relation to
Operation 302: Closed-loop selection of the coding modes as described hereinabove is performed.
Operation 303: The quantized filter LPC4 is transmitted to the decoder for example through the transmitter 105 of
means for receiving and extracting from the received bitstream, for example a demultiplexer, the quantized filter LPC4; and
an absolute inverse quantizer supplied with the quantized filter LPC4 for inverse quantizing the quantized filter LPC4.
Operation 304: If the super-frame is coded using mode TCX1024, no further transmission is required.
Operation 305: If the first, second, third and fourth frames of the super-frame are not coded using mode TCX1024, the quantized filter LPC2 and an index indicative of one of the absolute quantization mode and the differential quantization mode are transmitted to the decoder for example through the transmitter 105 of
means for receiving and extracting from the received bitstream, for example a demultiplexer, the quantized filter LPC2 and the index indicative of one of the absolute quantization mode and the differential quantization mode; and
an absolute inverse quantizer supplied with the quantized filter LPC2 and the index indicative of the absolute quantization mode for inverse quantizing the quantized filter LPC2, or a differential inverse quantizer supplied with the quantized filter LPC2 and the index indicative of the differential quantization mode for inverse quantizing the quantized filter LPC2.
Operation 306: If frames 1 and 2 of the super-frame are coded using mode TCX512, the quantized filter LPC1 is not transmitted to the decoder.
Operation 307: If frames 1 and 2 of the super-frame are not coded using mode TCX512, i.e. if frames 1 and 2 of the super-frame are coded using ACELP or TCX256, the quantized filter LPC1, and an index indicative of one of the absolute quantization mode, the differential quantization mode relative to quantized filter LPC2 used as reference, and the differential quantization mode relative to (quantized filter LPC2+quantized filter LPC0)/2 used as reference are transmitted to the decoder for example through the transmitter 105 of
means for receiving and extracting from the received bitstream, for example a demultiplexer, the quantized filter LPC1, and the index indicative of one of the absolute quantization mode, the differential quantization mode relative to quantized filter LPC2 used as reference, and the differential quantization mode relative to (quantized filter LPC2+quantized filter LPC0)/2 used as reference; and
an absolute inverse quantizer supplied with the quantized filter LPC1 and the index indicative of one of the absolute quantization mode, the differential quantization mode relative to quantized filter LPC2 used as reference, and the differential quantization mode relative to (quantized filter LPC2+quantized filter LPC0)/2) used as reference for inverse quantizing the quantized filter LPC1.
Operation 308: If frames 3 and 4 of the super-frame are coded using mode TCX512, the quantized filter LPC3 is not transmitted to the decoder.
Operation 309: If frames 3 and 4 of the super-frame are not coded using mode TCX512, i.e. if frames 3 and 4 of the super-frame are coded using ACELP or TCX256, the quantized filter LPC3 and the index indicative of one of the absolute quantization mode, the differential quantization mode relative to quantized filter LPC2 used as reference, the differential quantization mode relative to quantized filter LPC4 used as reference, and the differential quantization mode relative to (quantized filter LPC2+quantized filter LPC4)/2 used as reference are transmitted to the decoder for example through the transmitter 105 of
means for receiving and extracting from the received bitstream, for example a demultiplexer, the quantized filter LPC3, and the index indicative of one of the absolute quantization mode, the differential quantization mode relative to quantized filter LPC2 used as reference, the differential quantization mode relative to quantized filter LPC4 used as reference, and the differential quantization mode relative to (quantized filter LPC2+quantized filter LPC4)/2 used as reference; and
an absolute inverse quantizer supplied with the quantized filter LPC3 and the index indicative of one of the absolute quantization mode, the differential quantization mode relative to quantized filter LPC2 used as reference, the differential quantization mode relative to quantized filter LPC4 used as reference, and the differential quantization mode relative to (quantized filter LPC2+quantized filter LPC4)/2 used as reference for inverse quantizing the quantized filter LPC3.
Some benefits of the above described solution comprise:
The following variants can be used to build the reference LPC filters that are used in the differential quantizers (Operations such as 1031, 1032, . . . , 103n):
The above described “out-of-the loop” quantization scheme can be extended to coding more than four (4) LPC filters: for example to quantize and transmit filter LPC0 together with the super-frame. In that case, filter LPC0 corresponding to the last LCP filter (LPC4) calculated during the previous super-frame could be, as a non-limitative example, be quantized relative to filter LPC4 since this filter LPC4 is always available as a reference. Quantized filter LPC0 is transmitted to the decoder along with an index indicative of one of the absolute quantization mode and the differential quantization mode. The decoder comprises:
means for receiving and extracting from the received bitstream, for example a demultiplexer, the quantized filter LPC0, and the index indicative of one of the absolute quantization mode and the differential quantization mode; and
an absolute inverse quantizer supplied with the quantized filter LPC0 and the index indicative of the absolute quantization mode for inverse quantizing the quantized filter LPC0, or a differential inverse quantizer supplied with the quantized filter LPC0, and the index indicative of the differential quantization mode for inverse quantizing the quantized filter LPC0.
Transmitting filter LPC0 to the decoder is useful to initialize an LPC-based codec in the case of switching from a non-LPC-based coding mode to an LPC-based coding mode. Examples of non-LPC-based coding modes are: pulse code modulation (PCM), and transform coding used for example by MP3 and by the advanced audio codec AAC. Examples of LPC-based coding modes are: code excited linear prediction (CELP) and algebraic CELP (ACELP) used by the AMR-WB+ codec [1].
In LPC-based codecs, one or several LPC filters per frame (or per super-frame) are estimated and transmitted to the decoder. When one single LPC filter per frame is estimated and transmitted, this LPC filter is most often estimated using an LPC analysis window centered on the end of the frame as represented in
Typical LPC-based codecs generally use interpolated values for the LPC filters. In the example of
In a codec which switches from a non-LPC-based coding mode to an LPC-based coding mode, the filter LPC0 used to operate the LPC-based codec is normally not available at the first frame following the switch from the non-LPC-based coding mode to the LPC-based coding mode.
In that context, it is proposed to provide a value for filter LPC0 which is available both at the coder and the decoder when coding and decoding the first frame after the switch from the non-LPC-based coding mode to the LPC-based coding mode. More specifically, the value of the filter LPC0 is obtained at the decoder from the parameters transmitted from the coder.
According to a first solution, the filter LPC0 is determined at the coder (using LPC analysis well-know to those of ordinary skill in the art), quantized and transmitted to the decoder after the switch from the non-LPC-based coding mode to the LPC-based coding mode has been decided. The decoder uses the transmitted quantized value and the filter LPC0. To quantize the filter LPC0 efficiently, the out-of-the-loop quantization scheme as described above, extended to more than four (4) LPC filters can be used.
The following describes second and third solutions to estimate the filter LPC0 at the decoder from transmitted parameters:
The principle of stochastic vector quantization is to search a codebook of vectors for the nearest neighbor (generally in terms of Euclidian distance or weighted Euclidian distance) of the vector to be quantized. When quantizing LPC filters in the LSF (Line Spectral Frequency) or ISF (Immitance Spectral Frequency) domains, a weighting Euclidian distance is generally used, each component of the vector being weighted differently depending on its value and the value of the other components [5]. The purpose of that weighting is to make the minimization of the Euclidian distance behave as closely as possible to a minimization of the spectral distortion. Unlike a stochastic quantizer, a uniform algebraic vector quantizer does not perform an exhaustive search of a codebook. It is therefore difficult to introduce a weighting function in the distance computation.
In the solution proposed herein, the LPC filters are quantized, as a non-limitative example, in the LSF domain. Appropriate means for converting the LPC filter in the LSF quantization domain to form the input LSF vector are therefore provided. More specifically, the LSF residual vector, i.e. the difference between the input LSF vector and a first-stage approximation of this input LSF vector, is warped using a weighting function computed from the first-stage approximation, wherein the first-stage approximation uses a stochastic absolute quantizer of the input LSF vector, a differential quantizer of the input LSF vector, an interpolator of the input LSF vector, or other element that gives an estimate of the input LSF vector to be quantized. Warping means that different weights are applied to the components of the LSF residual vector. Because the first-stage approximation is also available at the decoder, the inverse weights can also be computed at the decoder and the inverse warping can be applied to the quantized LSF residual vector. Warping the LSF residual vector according to a model that minimizes the spectral distortion is useful when the quantizer is uniform. The quantized LSFs received at the decoder are a combination of the first-stage approximation with a variable bit rate quantization, for example AVQ (Algebraic Vector Quantization), refinement which is inverse-warped at the decoder.
Some benefits of the proposed solution are the following:
The general principle for the quantization of a given LPC filter is given in
Operation 601: A calculator computes a first-stage approximation 608 of the input LSF vector 607.
Operation 602: A subtractor subtracts the first-stage approximation 608 from Operation 601 from the input LSF vector 607 to produce a residual LSF vector 609.
Operation 603: A calculator derives a LSF weighting function 610 from the first-stage approximation 608 of Operation 601.
Operation 604: A multiplier, or warper, applies the LSF weighting function 610 from Operation 603 to the residual LSF vector 609 from Operation 602.
Operation 605: A variable bit rate quantizer, for example an algebraic vector quantizer (AVQ) quantizes the resulting weighted residual LSF vector 611 to supply a quantized weighted residual LSF vector 612.
Operation 606: A multiplexer is responsive to the first-stage approximation 608 from Operation 601 and the quantized weighted residual LSF vector 612 from Operation 605 to multiplex and transmit the corresponding coded indices 613.
The first-stage approximation (Operation 601) can be calculated in different ways. As a non-limitative example, the calculator of the first-stage approximation 608 can be an absolute stochastic vector quantizer of the input LSF vector 607 with a small number of bits, or a differential quantizer of the input LSF vector 607 using a reference as explained above where the first-stage approximation is the reference itself. For example, when quantizing the vector LPC1 as in
The calculation and purpose of the weighting function (Operation 603) is described herein below.
The corresponding inverse quantizer is illustrated in
Operation 701: The coded indices 707 from the coder are demultiplexed by a demultiplexer.
Operation 702: The demultiplexed coded indices include the first-stage approximation 708.
Operation 703: Since the first-stage approximation is available at the decoder as at the coder (Operation 702), a calculator can be used to calculate the inverse LSF weighting function 709.
Operation 704: Decoded indices 710 representative of the quantized weighted residual LSF vector are supplied to a variable bit rate inverse vector quantizer, for example an algebraic inverse vector quantizer (inverse AVQ) to recover the weighted residual LSF vector 711.
Operation 705: A multiplier multiplies the weighted residual LSF vector 711 from Operation 704 by the inverse LSF weighting function 709 from Operation 703 to recover the residual LSF vector 712.
Operation 706: An adder sums the first-stage approximation 708 from Operation 702 with the residual LSF vector 712 from Operation 705 to form the decoded LSF vector 713. The decoded LSF vector 713 is a combination of the first-stage approximation from Operation 702 with the variable bit rate inverse quantization refinement (Operation 704) which is inverse-weighted (Operation 705) at the decoder.
First-Stage Approximation
As explained above a given LPC filter can be quantized using several quantization modes including absolute quantization and differential quantization using several references. The first-stage approximation depends on the quantization mode. In the case of absolute quantization, the first-stage approximation can use a vector quantizer with a small number of bits (e.g. 8 bits). In the case of differential quantization, the first-stage approximation constitutes the reference itself. For example, when quantizing the vector LPC3 as illustrated in
As a non-limitative example, in the case of a p-th order LPC filter expressed with LSF parameters, in the absolute quantization mode, the first-stage approximation is calculated using a p-dimensional, 8-bit stochastic vector quantizer applied to the input LSF vector. A codebook search uses a weighted Euclidian distance in which each component of the squared difference between the input LSF vector and the codebook entry is multiplied by the weight wt(i). For example, the weight wt(i) can be given by the following expression:
i=0, . . . , p−1
with:
do=f(0)
dp=SF/2−f(p−1)
di=f(i)−f(i−1),i=1, . . . , p−1
where f(i), i=0, . . . , p−1 is the input LSF vector to be quantized, p is the order of LP analysis, and SF is the internal sampling frequency of the LPC-based codec (in Hz).
In the differential quantization modes, the first-stage approximation is based on already quantized LPC filters.
As explained with reference to
For each first-stage approximation f1st(i), the residual LSF vector is calculated as:
r(i)=f(i)−f1st(i),i=0, . . . ,p−1
As shown in
For example, the weights applied to the components of the p-th residual LSF vector can be given by the following relation:
i=0, . . . , p−1
with:
do=f1st(0)
dp=SF/2−f1st(p−1)
where f1st(i) is the first-stage approximation, SF is the internal sampling frequency in Hz of the LPC-based codec, and W is a scaling factor which depends on the quantization mode. The value of W is chosen in order to obtain a certain target spectral distortion and/or a certain target average bit rate once the warped residual LSF vector is quantized with the variable bit rate quantizer. As a non-limitative example, the variable bit rate vector quantizer chooses the bit rate for a certain vector based on its average energy.
In an illustrative example, the four (4) LPC filters in a super-frame, as well as the optional LPC0 filter are quantized according to
TABLE 2
Possible absolute and relative quantization modes
and corresponding bitstream signaling, and the
scaling factor and the weighting function
Quantization
First stage
Encoded
Filter
mode
approximation
mode
W
LPC4
Absolute
8-bit VQ
(none)
60
LPC0
Absolute
8-bit VQ
0
60
Relative LPC4
Quantized LPC4
1
63
LPC2
Absolute
8-bit VQ
0
60
Relative LPC4
Quantized LPC4
1
63
LPC1
Absolute
8-bit VQ
00
60
Relative
Quantized
01
65
(LPC0 + LPC2)/2
(LPC0 + LPC2)/2
(Note 1)
Relative LPC2
Quantized LPC2
10
64
LPC3
Absolute
8-bit VQ
10
60
Relative
Quantized
0
65
(LPC2 + LPC4)/2
(LPC2 + LPC4)/2
Relative LPC2
Quantized LPC2
110
64
Relative LPC4
Quantized LPC4
111
64
(Note 1):
in this mode, there is no second-stage AVQ quantizer
Operations 801, 8011, 8012, . . . , 801n: The input LSF vector 800 is supplied to an absolute quantizer (Operation 801) for performing, for example, a 8-bit absolute vector quantization of the input LSF vector 800. The input LSF vector is also supplied to differential quantizers (Operations 8011, 8012, . . . , 801n) for performing differential quantization of the input LSF vector 800. The differential quantizers use respective, different references as explained in the foregoing description with reference to
In Operations 802, 8021, 8022, . . . , 802n, a calculator calculates a residual LSF vector from the first stage approximation vector from the Operations 801, 8011, 8012, . . . , 801n, respectively. The residual vector is calculated as the difference between the input vector and the first-stage approximation. This corresponds to Operations 601 and 602 of
In Operations 803, 8031, 8032, . . . , 803n, a calculator calculates a weighting function to warp the residual LSF vector from the Operations 802, 8021, 8022, . . . , 802n, respectively. This corresponds to Operations 601 and 603 of
In Operations 804, 8041, 8042, . . . , 804n, a warper multiplies the residual LSF vector from the Operations 802, 8021, 8022, . . . , 802n, respectively, by the weighting function from the Operations 803, 8031, 8032, . . . 803n, respectively.
In Operations 805, 8051, 8052, . . . , 805n a variable bit rate quantizer, for example an algebraic vector quantizer (AVQ) quantizes the resulting weighted residual LSF vector from the Operations 804, 8041, 8042, . . . , 804n, respectively, to supply a quantized weighted residual LSF vector.
In Operation 806, the selection of a quantization mode is performed by a selector amongst absolute quantization (Operation 801) and differential quantization using one of the references 1, 2, . . . , n (Operations 8011, 8012, . . . , 801n). For example, Operation 806 could select the quantization mode (Operations 801, 8011, 8012, . . . , 801n) that yields a lower distortion for a given bit rate or the lower bit rate for a target level of distortion. Regarding the selection amongst 8-bit VQ and references 1, 2, . . . , n, the selection can be performed in closed-loop or in open-loop. In closed-loop, all possible references are tried and the reference that optimizes a certain criterion of distortion or bit rate is chosen, for example the lower distortion for a given bit rate or the Lower bit rate for a target level of distortion. In open-loop, the Operation 806 predetermines the reference based on the value of the Linear Prediction Coefficients of the LPC filter to be quantized and of the Linear Prediction Coefficients of the available reference LPC filters.
Operation 807: Following the selection in Operation 806, a transmitter (Operation 807) communicates or signals to the decoder (not shown) an index indicative of:
in the case of differential quantization, of the selected reference and associated differential quantizer of Operations 8011, 8012, . . . , 801n (sub-operation 8072).
Some specific bits are transmitted to the decoder for such signaling.
Algebraic Vector Quantizer
A possible algebraic vector quantizer (AVQ) used for example in Operation 605 of
For a 16th order LPC, each weighted residual LSF vector is split into two 8-dimensional sub-vectors B1 and B2. Each of these two sub-vectors is quantized using the three-operation approach described below.
LSF vectors do not have all the same sensitivity to quantization error, whereby a certain quantization error applied to one LSF vector can have more impact on spectral distortion than the same quantization error applied to another LSF vector. The weighting operation gives the same relative sensitivity to all weighted LSF vectors. The AVQ has the particularity of introducing the same level of quantization error to the weighted LSF vectors (uniform quantization error). When performing the inverse quantization, the inverse weighting which is applied to inverse-quantized weighted LSF vectors is also obviously applied to the quantization error. Thus, the originally uniform quantization error is distributed among quantized LSF vectors, the more sensitive LSF vectors acquiring a smaller quantization error and the less sensitive LSF vectors acquiring a larger quantization error. As a consequence, the impact of quantization error on spectral distortion is minimized.
As explained in Reference [1], the RE8 quantizer uses a fixed and predetermined quantization. As a consequence, the bit rate required to encode a subvector increases with the amplitude of this subvector.
The scaling factor W controls the amplitude of the weighted LSF vectors. Therefore, the scaling factor W also controls both the bit rate needed to quantize the LSF vector and the average spectral distortion.
First Operation: Find Nearest Neighbor in Lattice RE8
In this first operation, an 8-dimensional sub-vector Bk is rounded as a point in the lattice RE8, to produce its quantized version, {circumflex over (B)}k. Before looking at the quantization procedure, it is worthwhile to look at the properties of this lattice. The lattice RE8 is defined as follows:
RE8=2D8∪{2D8+(1, . . . , 1)}
that is as the union of a lattice 2D8 and a version of the lattice 2D8 shifted by the vector (1, 1, 1, 1, 1, 1, 1, 1). Therefore, searching for the nearest neighbour in the lattice RE8 is equivalent to searching for the nearest neighbour in the lattice 2D8, then searching for the nearest neighbour in the lattice 2D8+(1, 1, 1, 1, 1, 1, 1, 1), and finally selecting the best of those two lattice points. The lattice 2D8 is the lattice D8 scaled by a factor of 2, with the lattice D8 defined as:
D8={(x1, . . . ,x8)εZ8|x1+ . . . +x8 is even}
That is, the points in the lattice D8 are all integers, with the constraint that the sum of all components is even. This also implies that the sum of the components of a point in lattice 2D8 is an integer multiple of 4.
From this definition of lattice RE8, it is straightforward to develop a fast algorithm to search for the nearest neighbour of an 8-dimensional sub-vector Bk among all lattice points in lattice RE8. This can be done by applying the following operations. The components of sub-vector Bk are floating point values, and the result of the quantization, {circumflex over (B)}k, will be a vector of integers.
In the first operation, each 8-dimensional sub-vector Bk was rounded as a point in the lattice RE8. The result is {circumflex over (B)}k=ck, the quantized version of Bk. In the present second operation an index is computed for each ck for transmission to the decoder. The computation of this index is performed as follows.
The calculation of an index for a given point in the lattice RE8 is based on two basic principles:
In the present case, the base codebook C in the LPC quantizer can be either codebook Q0, Q2, Q3 or Q4 from Reference [6]. When a given lattice point ck is not included in these base codebooks, the Voronoi extension is applied, using this time only the codebook Q3 or Q4. Note that here, Q2⊂Q3 but Q3⊂Q4.
Then, the calculation of the index for each lattice point ck, obtained in the first operation, is performed according to the following operations.
The lattice point ck is then described as:
ck=Mz+v.
Third Operation: Variable Length Coding of the Codebook Numbers
The codebook numbers nk are encoded using a variable-length code which depends on the position of the LPC filter and on the quantization mode, as indicated in Table 3.
TABLE 3
Coding modes for codebook numbers nk
Filter
Quantization mode
nk mode
LPC4
Absolute
0
LPC0
Absolute
0
Relative LPC4
3
LPC2
Absolute
0
Relative LPC4
3
LPC1
Absolute
0
Relative (LPC0 + LPC2)/2
1
Relative LPC2
2
LPC3
Absolute
0
Relative (LPC2 + LPC4)/2
1
Relative LPC2
2
Relative LPC4
2
nk modes 0 and 3:
The codebook number nk is encoded as a variable length code, as follows:
Others: the code for nk is 11 followed by:
The codebook number nk is encoded as a unary code, as follows:
The codebook number nk is encoded as a variable length code, as follows:
Others: the code for nk is 11 followed by:
For each LSF vector, all possible absolute and differential quantization modes as described in Table 2 are each tried and, for example, the quantization mode which requires the minimum number of bits is selected. The encoded quantization mode and the corresponding set of quantization indices are transmitted to the decoder.
As mentioned in the foregoing description, the actual number of quantized LPC filters transmitted from the coder to the decoder is not fixed but rather depends on the ACELP/TCX decision taken at the coder. For example, long TCX (TCX1024) requires only the transmission of quantized filter LPC4 while any combination involving ACELP or short TCX (TCX256) requires the transmission of all four (4) quantized LPC filters LPC1 to LPC4. Only the quantized LPC filters that are required by the ACELP/TCX mode configuration are actually transmitted.
Decoding Process of Algebraic Vector Quantizer
As mentioned herein above, the actual number of quantized LPC filters coded within the bitstream depends on the ACELP/TCX mode combination of the super-frame. The ACELP/TCX mode combination is extracted from the bitstream and determines the coding modes, mod [k] for k=0 to 3, of each of the four (4) frames composing the super-frame. The mode value is 0 for ACELP, 1 for TCX256, 2 for TCX512, 3 for TCX1024.
In addition to the one (1) to four (4) quantized LPC filters of the super-frame, the above described, optional quantized filter LPC0 is transmitted for the first super-frame of each segment coded using the linear-prediction based codec.
The order in which the quantized LPC filters are normally found in the bitstream is: LPC4, the optional LPC0, LPC2, LPC1, and LPC3.
The condition for the presence of a given LPC filter within the bitstream is summarized in Table 4.
TABLE 4
Condition for the presence of a given LPC filter in the bitstream
LPC filter
Present if
LPC0
1st super-frame encoded using LP
LPC1
mod[0] < 2
LPC2
mod[2] < 3
LPC3
mod[2] < 2
LPC4
Always
Operations 901 and 902: The decoder comprises means for receiving and extracting, for example a demultiplexer, from the received bit stream the quantization indices corresponding to each of the quantized LPC filters required by the ACELP/TCX mode combination. For a given quantized LPC filter, a determiner of quantization mode extracts from the bit stream received from the coder the index or information related to the quantization mode, and determines whether the quantization mode is the absolute or differential quantization mode as indicated in Table 2.
Operations 903 and 905: When Operations 901 and 902 determine that the quantization mode is the absolute quantization mode, an extractor extracts from the bit stream the index or indices corresponding to the stochastic VQ-quantized first-stage approximation (Operation 903). A calculator then computes the first-stage approximation through inverse-quantization (Operation 905).
Operations 904 and 905: When Operations 901 and 902 determine that the quantization mode is the differential quantization mode (not the absolute quantization mode), an extractor extracts from the bit stream the indices or information representative of the reference amongst the plurality of possible references, for example the reference LPC vector (Operation 904). The calculator then computes from this information the first-stage approximation as described with reference to Table 2 (Operation 905).
In Operation 906, an extractor of VQ information extracts from the bit stream received from the coder variable bit rate VQ information, for example AVQ information. More specifically, as a non-limitative example, the AVQ information for the two residual LSF sub-vectors {circumflex over (B)}k are extracted from the bit stream. The AVQ information normally comprises two encoded codebook numbers and the corresponding AVQ indices. The only exception is when filter LPC1 is differentially quantized relative to (quantized filter LPC0+quantized filter LPC2)/2, since in this case there is no AVQ information present in the bit stream. In the case of the latter exception, the quantized LSF vector 909 is outputted as the first-stage approximation from Operation 905.
Operation 907: An inverse algebraic vector quantizer receives the extracted AVQ information from Operation 906 to inverse quantize, or inverse weight and recover the AVQ contribution.
Decoding of AVQ Indices
Decoding the LPC filters involves decoding the extracted AVQ information, for example the AVQ parameters describing each quantized sub-vector {circumflex over (B)}k of the weighted residual LSF vector. In the foregoing example, each sub-vector Bk has a dimension 8. The AVQ parameters for each sub-vector Bk are described in the second operation of the above described algebraic vector quantization. For each quantized sub-vector {circumflex over (B)}k, three sets of binary indices are sent by the coder to the decoder:
Then, from the scaling factor M, the Voronoi extension vector v (a lattice point in lattice RE8) and the lattice point z in the base codebook (also a lattice point in lattice RE8), each quantized scaled sub-vector {circumflex over (B)}k can be computed using the following relation:
{circumflex over (B)}k=Mz+v.
When there is no Voronoi extension (i.e. nk<5, M=1 and z=0), the base codebook is either codebook Q0, Q2, Q3 or Q4 from Reference [6]. No bits are then required to transmit vector k. Otherwise, when Voronoi extension is used because {circumflex over (B)}k is large enough, then only Q3 or Q4 from Reference [6] is used as a base codebook. The selection of Q3 or Q4 is implicit in the codebook number value nk, as described in the second operation of the above described algebraic vector quantization.
Operation 908: An adder sums the first-stage approximation from Operation 905 to the inverse-weighed AVQ contribution from Operation 907 to reconstruct and recover the quantized LSF vector 909.
Although the present invention has been defined in the foregoing description by means of illustrative embodiments thereof, these embodiments can be modified at will, within the scope of the appended claims, without departing from the spirit and nature of the present invention.
Salami, Redwan, Gournay, Philippe, Bessette, Bruno
Patent | Priority | Assignee | Title |
Patent | Priority | Assignee | Title |
5208862, | Feb 22 1990 | NEC Corporation | Speech coder |
5233660, | Sep 10 1991 | AT&T Bell Laboratories | Method and apparatus for low-delay CELP speech coding and decoding |
5255339, | Jul 19 1991 | CDC PROPRIETE INTELLECTUELLE | Low bit rate vocoder means and method |
5432884, | Mar 23 1992 | Nokia Telecommunications Oy; Nokia Mobile Phones LTD | Method and apparatus for decoding LPC-encoded speech using a median filter modification of LPC filter factors to compensate for transmission errors |
5649051, | Jun 01 1995 | Lockheed Martin Corporation | Constant data rate speech encoder for limited bandwidth path |
5680507, | May 03 1993 | THE CHASE MANHATTAN BANK, AS COLLATERAL AGENT | Energy calculations for critical and non-critical codebook vectors |
5732188, | Mar 10 1995 | Nippon Telegraph and Telephone Corp. | Method for the modification of LPC coefficients of acoustic signals |
5742733, | Feb 08 1994 | Qualcomm Incorporated | Parametric speech coding |
5745871, | May 03 1993 | THE CHASE MANHATTAN BANK, AS COLLATERAL AGENT | Pitch period estimation for use with audio coders |
5778334, | Aug 02 1994 | NEC Corporation | Speech coders with speech-mode dependent pitch lag code allocation patterns minimizing pitch predictive distortion |
5787391, | Jun 29 1992 | Nippon Telegraph and Telephone Corporation | Speech coding by code-edited linear prediction |
5819212, | Oct 26 1995 | Sony Corporation | Voice encoding method and apparatus using modified discrete cosine transform |
5826224, | Mar 26 1993 | Research In Motion Limited | Method of storing reflection coeffients in a vector quantizer for a speech coder to provide reduced storage requirements |
5859932, | Apr 20 1994 | Matsushita Electric Industrial Co. Ltd. | Vector quantization coding apparatus and decoding apparatus |
5926785, | Aug 16 1996 | Kabushiki Kaisha Toshiba | Speech encoding method and apparatus including a codebook storing a plurality of code vectors for encoding a speech signal |
6018707, | Sep 24 1996 | Sony Corporation | Vector quantization method, speech encoding method and apparatus |
6023672, | Apr 17 1996 | NEC Corporation | Speech coder |
6122608, | Aug 28 1997 | Texas Instruments Incorporated | Method for switched-predictive quantization |
6134520, | Oct 08 1993 | Comsat Corporation | Split vector quantization using unequal subvectors |
6154499, | Oct 21 1996 | Comsat Corporation | Communication systems using nested coder and compatible channel coding |
6167375, | Mar 17 1997 | Kabushiki Kaisha Toshiba | Method for encoding and decoding a speech signal including background noise |
6263307, | Apr 19 1995 | Texas Instruments Incorporated | Adaptive weiner filtering using line spectral frequencies |
6385575, | Apr 20 1998 | Kabushiki Kaisha Toshiba | Constraint relieving vector quantization apparatus and vector quantization method having constraints in quantization vectors |
6424939, | Jul 14 1997 | Fraunhofer-Gesellschaft zur Forderung der Angewandten Forschung E.V. | Method for coding an audio signal |
6427135, | Mar 17 1997 | Kabushiki Kaisha Toshiba | Method for encoding speech wherein pitch periods are changed based upon input speech signal |
6475245, | Aug 29 1997 | The Regents of the University of California | Method and apparatus for hybrid coding of speech at 4KBPS having phase alignment between mode-switched frames |
6477490, | Oct 03 1997 | Panasonic Intellectual Property Corporation of America | Audio signal compression method, audio signal compression apparatus, speech signal compression method, speech signal compression apparatus, speech recognition method, and speech recognition apparatus |
6487535, | Dec 01 1995 | DTS, INC | Multi-channel audio encoder |
6507814, | Aug 24 1998 | SAMSUNG ELECTRONICS CO , LTD | Pitch determination using speech classification and prior pitch estimation |
6611800, | Sep 24 1996 | Sony Corporation | Vector quantization method and speech encoding method and apparatus |
6687667, | Oct 06 1998 | Thomson-CSF | Method for quantizing speech coder parameters |
6691082, | Aug 03 1999 | Lucent Technologies Inc | Method and system for sub-band hybrid coding |
6792405, | Dec 10 1999 | Cerence Operating Company | Bitstream-based feature extraction method for a front-end speech recognizer |
6804639, | Oct 27 1998 | III Holdings 12, LLC | Celp voice encoder |
6823303, | Aug 24 1998 | Macom Technology Solutions Holdings, Inc | Speech encoder using voice activity detection in coding noise |
6889185, | Aug 28 1997 | Texas Instruments Incorporated | Quantization of linear prediction coefficients using perceptual weighting |
6988067, | Mar 26 2001 | UNILOC 2017 LLC | LSF quantizer for wideband speech coder |
6996523, | Feb 13 2001 | U S BANK NATIONAL ASSOCIATION | Prototype waveform magnitude quantization for a frequency domain interpolative speech codec system |
7003454, | May 16 2001 | Nokia Technologies Oy | Method and system for line spectral frequency vector quantization in speech codec |
7013270, | Oct 03 1990 | InterDigital Technology Corporation | Determining linear predictive coding filter parameters for encoding a voice signal |
7031912, | Aug 10 2000 | Mitsubishi Denki Kabushiki Kaisha | Speech coding apparatus capable of implementing acceptable in-channel transmission of non-speech signals |
7243061, | Jul 01 1996 | Matsushita Electric Industrial Co., Ltd. | Multistage inverse quantization having a plurality of frequency bands |
7266493, | Sep 18 1998 | SAMSUNG ELECTRONICS CO , LTD | Pitch determination based on weighting of pitch lag candidates |
7286982, | Sep 22 1999 | Microsoft Technology Licensing, LLC | LPC-harmonic vocoder with superframe structure |
7315815, | Sep 22 1999 | Microsoft Technology Licensing, LLC | LPC-harmonic vocoder with superframe structure |
7386447, | Nov 02 2001 | Texas Instruments Incorporated | Speech coder and method |
7392179, | Nov 30 2000 | MATSUSHITA ELECTRIC INDUSTRIAL CO , LTD ; Nippon Telegraph and Telephone Corporation | LPC vector quantization apparatus |
7536305, | Sep 04 2002 | Microsoft Technology Licensing, LLC | Mixed lossless audio compression |
7590532, | Jan 29 2002 | Fujitsu Limited | Voice code conversion method and apparatus |
7596486, | May 19 2004 | Nokia Technologies Oy | Encoding an audio signal using different audio coder modes |
7630890, | Feb 19 2003 | SAMSUNG ELECTRONICS CO , LTD | Block-constrained TCQ method, and method and apparatus for quantizing LSF parameter employing the same in speech coding system |
7660712, | May 19 2000 | DIGIMEDIA TECH, LLC | Speech gain quantization strategy |
7716045, | Apr 19 2004 | Thales | Method for quantifying an ultra low-rate speech coder |
7778827, | Mar 12 2004 | Nokia Technologies Oy | Method and device for gain quantization in variable bit rate wideband speech coding |
7895046, | Dec 04 2001 | GOOGLE LLC | Low bit rate codec |
8271272, | Apr 27 2004 | III Holdings 12, LLC | Scalable encoding device, scalable decoding device, and method thereof |
8306007, | Jan 16 2008 | III Holdings 12, LLC | Vector quantizer, vector inverse quantizer, and methods therefor |
8306813, | Mar 02 2007 | Panasonic Intellectual Property Corporation of America | Encoding device and encoding method |
8620647, | Sep 18 1998 | SAMSUNG ELECTRONICS CO , LTD | Selection of scalar quantixation (SQ) and vector quantization (VQ) for speech coding |
8670981, | Jan 06 2009 | Microsoft Technology Licensing, LLC | Speech encoding and decoding utilizing line spectral frequency interpolation |
20010023396, | |||
20010044718, | |||
20020038210, | |||
20020138260, | |||
20030004709, | |||
20030014249, | |||
20030015346, | |||
20030078774, | |||
20030135363, | |||
20030142699, | |||
20040002856, | |||
20040015346, | |||
20040044520, | |||
20040230429, | |||
20050075869, | |||
20070150271, | |||
20070219789, | |||
20070282603, | |||
20080052068, | |||
20080126085, | |||
20090240491, | |||
20090248424, | |||
20100286991, | |||
CA2511516, | |||
CA2603219, | |||
EP1214706, | |||
EP1719116, | |||
JP200255700, | |||
JP200344097, | |||
JP2007142547, | |||
JP2007525707, | |||
JP2008503783, | |||
JP6175695, | |||
JP9034499, | |||
KR20050023426, | |||
KR20070038439, | |||
WO122403, | |||
WO2004008437, | |||
WO2004090864, | |||
WO2006049179, | |||
WO2007040349, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Sep 11 2009 | SALAMI, REDWAN | VOICEAGE CORPORATION | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 061773 | /0906 | |
Sep 16 2009 | BESSETTE, BRUNO | VOICEAGE CORPORATION | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 061773 | /0906 | |
Sep 16 2009 | GOURNAY, PHILIPPE | VOICEAGE CORPORATION | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 061773 | /0906 | |
Jan 23 2018 | VOICEAGE CORPORATION | (assignment on the face of the patent) | / |
Date | Maintenance Fee Events |
Jan 23 2018 | BIG: Entity status set to Undiscounted (note the period is included in the code). |
Jun 23 2023 | M1552: Payment of Maintenance Fee, 8th Year, Large Entity. |
Date | Maintenance Schedule |
Jan 10 2026 | 4 years fee payment window open |
Jul 10 2026 | 6 months grace period start (w surcharge) |
Jan 10 2027 | patent expiry (for year 4) |
Jan 10 2029 | 2 years to revive unintentionally abandoned end. (for year 4) |
Jan 10 2030 | 8 years fee payment window open |
Jul 10 2030 | 6 months grace period start (w surcharge) |
Jan 10 2031 | patent expiry (for year 8) |
Jan 10 2033 | 2 years to revive unintentionally abandoned end. (for year 8) |
Jan 10 2034 | 12 years fee payment window open |
Jul 10 2034 | 6 months grace period start (w surcharge) |
Jan 10 2035 | patent expiry (for year 12) |
Jan 10 2037 | 2 years to revive unintentionally abandoned end. (for year 12) |