Source: https://patents.google.com/patent/US8639504B2/en
Timestamp: 2019-04-26 07:15:24+00:00

Document:
Some embodiments describe methods, programs, and systems for speech encoding. Among other things, a received input signal representing a property of speech is quantized to generate a quantized output signal. Prior to the quantization, a version of the input signal is supplied to a first noise shaping filter having a first set of filter coefficients effective to generate a first filtered signal. Following the quantization, the quantized output signal is supplied to a second noise shaping filter having a second set of filter coefficients, thus generating a second filtered signal. A noise shaping operation is performed to control a frequency spectrum of a noise effect in the quantized output signal caused by the quantization, wherein the noise shaping operation is based on both the first and second filtered signals. Finally, the quantized output signal is transmitted in an encoded signal.
This application is a continuation of and claims priority to U.S. patent application Ser. No. 12/455,100 filed May 28, 2009, and application Ser. No. 12/455,100 filed May 28, 2009, claims priority under 35 USC 119 or 365 to Great Britain Application No. 0900143.9 filed Jan. 6, 2009, the disclosure of which is incorporated by reference herein in its entirety.
In speech coding, it is typically necessary to quantize a signal representing some property of the speech. Quantization is the process of converting a continuous range of values into a set of discrete values; or more realistically in the case of a digital system, converting a larger set of approximately-continuous discrete values into a smaller set of more substantially discrete values. The quantized discrete values are typically selected from predetermined representation levels. Types of quantization include scalar quantization, trellis quantization, lattice quantization, vector quantization, algebraic codebook quantization, and others. The quantization has the effect that the quantized version of the signal requires fewer bits per unit time, and therefore takes less signaling overhead to transmit or less storage space to store.
However, quantization is also a form of distortion of the signal, which may be perceived by an end listener as a kind of noise, sometimes referred to as coding noise. To help alleviate this problem, a noise shaping quantizer may be used to quantize the signal. The idea behind a noise shaping quantizer is to quantize the signal in a manner that weights or biases the noise effect created by the quantization into less noticeable parts of the frequency spectrum, e.g. where the human ear is more tolerant to noise, and/or where the speech energy is high such that the relative effect of the noise is less. That is, noise shaping is a technique to produce a quantized signal with a spectrally shaped coding noise. The coding noise may be defined quantitatively as the difference between input and output signals of the overall quantizing system, i.e. of the whole codec, and this typically has a spectral shape (whereas the quantization error usually refers to the difference between the immediate inputs and outputs of the actual quantization unit, which is typically spectrally flat).
FIG. 1 a is a schematic block diagram showing one example of a noise shaping quantizer 11, which receives an input signal x(n) and produces a quantized output signal y(n). The noise shaping quantizer 11 comprises a quantization unit 13, a noise shaping filter 15, an addition stage 17 and a subtraction stage 19. The subtraction stage 19 calculates an error signal in the form of the coding noise q(n) by taking the difference between the quantized output signal y(n) and the input to the quantization unit 13, where n is the sample number. The coding noise q(n) is supplied to the noise shaping filter 15 where it is filtered to produce a filtered output. The addition stage 17 then adds this filtered output to the input signal x(n) and supplies the resulting signal to the input of the quantization unit 13.
The quantization error Q(z) typically has a spectrum that is approximately white (i.e. approximately constant energy across its frequency spectrum). Therefore the coding noise has a spectrum approximately proportional to 1+F(z).
Y ⁡ ( z ) = X ⁡ ( z ) + Q ⁡ ( z ) 1 - F ⁡ ( z ) .
Therefore the coding noise has a spectrum proportional to (1−F(z))−1.
Another example is shown in FIG. 1 c, which is a schematic block diagram of an analysis-by-synthesis quantizer 31. Analysis-by-synthesis is a method in speech coding whereby a quantizer codebook is searched to minimize a weighted coding error signal (the codebook defines the possible representation levels for the quantization). This works by trying representing samples of the input signal according to a plurality of different possible representation levels in the codebook, and selecting the levels which produce the least energy in the weighted coding error signal. The weighting is to bias the coding error towards less noticeable parts of the frequency spectrum.
Referring to FIG. 1 c, the analysis-by-synthesis quantizer 31 receives an input signal x(n) and produces a quantized output signal y(n). It comprises a controllable quantization unit 33, a weighting filter 35, an energy minimization block 37, and a subtraction stage 39. The quantization unit 33 generates a plurality of possible versions of a portion of the quantized output signal y(n). For each possible version, the subtraction stage 39 subtracts the quantized output y(n) from the input signal x(n) to produce an error signal, which is supplied to the weighting filter 35. The weighting filter 35 filters the error signal to produce a weighted error signal, and supplies this filtered output to the energy minimization block 37. The energy minimization block 37 determines the energy in the weighted error signal for each possible version of the quantized output signal y(n), and selects the version resulting in the least energy in the weighted error signal.
Thus the weighted coding error signal is computed by filtering the coding error with a weighting filter 35, which can be represented in the frequency domain by a function W(z). For a well-constructed codebook able to approximate the input signal, the weighted coding noise signal with minimum energy is approximately white. That means that the coding noise signal itself has a noise spectrum shaped proportional the inverse of the weighting filter: W(z)-1. By defining W(z)=1−F(z), and noting that the quantizer in FIG. 1 c searches a codebook to minimize the quantization error between quantizer output and input, it is clear that analysis-by-synthesis quantization can be interpreted as noise shaping quantization.
Once a quantized output signal y(n) is found according to one of the above techniques, indices corresponding to the representation levels selected to represent the samples of the signal are transmitted to the decoder in the encoded signal, such that the quantized signal y(n) can be reconstructed again from those indices in the decoding. In order to efficiently encode these quantization indices, the input to the quantizer is commonly whitened with a prediction filter.
A prediction filter generates predicted values of samples in a signal based on previous samples. In speech coding, it is possible to do this because of correlations present in speech samples (correlation being a statistical measure of a degree of relationship between groups of data). These correlations could be “long-term” correlations between quasi-periodic portions of the speech signal, or “short-term” correlations on a timescale shorter than such periods. The predicted samples are then subtracted from the actual samples to produce a residual signal. This residual signal, i.e. the difference between the predicted and actual samples, typically has a lower energy than the original speech samples and therefore requires fewer bits to quantize. That is, it is only necessary to quantize the difference between the original and predicted signals.
FIG. 1 d shows an example of a noise shaping quantizer 41 where the quantizer input is whitened using linear prediction filter P(z). The predictor operates in closed-loop, meaning that a prediction of the input signal is based on the quantized output signal. The output of the prediction filter is subtracted from the quantizer input and added to the quantizer output to form the quantized output signal.
Referring to FIG. 1 d, the noise shaping quantizer 41 comprises a quantization unit 42, a prediction filter 44, a noise shaping filter 45, a first addition stage 46, a second addition stage 47, a first subtraction stage 48 and a second subtraction stage 49. The first subtraction stage 48 calculates the coding error (i.e. coding noise) by taking the difference between the quantized output signal y(n) and the input signal x(n), and supplies the coding noise to the noise shaping filter 45 where it is filtered to generate a filtered output. The quantized output signal y(n) is also supplied to the prediction filter 44 where it is filtered to generate another filtered output. The output of the noise shaping filter 45 is added to the input signal x(n) at the first addition stage 46 and the output of the prediction filter 44 is subtracted from the input signal x(n) at the second subtraction stage 49. The resulting signal is input to the quantization unit 42, to generate an output being a quantized version of its input, and also to generate quantization indices i(n) corresponding to the representation levels selected to represent that input in the quantization. The output of the prediction filter 44 is then added back to the output of the quantization unit 42 at the second addition stage 47 to produce the quantized output signal y(n).
Note that, in the encoder, the quantized output signal y(n) is generated only for feedback to the prediction filter 44 and noise shaping filter 45: it is the quantization indices i(n) that are transmitted to the decoder in the encoded signal. The decoder will then reconstruct the quantized signal y(n) using those indices i(n).
FIG. 1 e shows another example of a noise shaping quantizer 51 where the quantizer input is whitened using a linear prediction filter P(z). The predictor operates in open-loop manner, meaning that a prediction of the input signal is based on the input signal and a prediction of the output is based on the quantized output signal. The output of the input prediction filter is subtracted from the quantizer input and the output of the output prediction filter is added to the quantizer output to form the quantized output signal.
Referring to FIG. 1 e, the noise shaping quantizer 51 comprises a quantization unit 52, a first instance of a prediction filter 54, a second instance of the same prediction filter 54′, a noise shaping filter 55, a first addition stage 56, a second addition stage 57, a first subtraction stage 58 and a second subtraction stage 59. The quantization unit 52, noise shaping filter 55, and first addition and subtraction stages 56 and 58 are arranged to operate similarly to those of FIG. 1 d. However, in contrast to FIG. 1 d, the output of the first addition stage 54 is supplied to the first instance of the prediction filter 54 where it is filtered to generate a filtered output, and this output of the first instance of the prediction filter 54 is then subtracted from the output of the first addition stage 56 at the second subtraction stage 59 before the resulting signal is input to the quantization unit 52. The output of the second instance of the prediction filter 54′ is added to the output of the quantization unit 52 at the second addition stage 57 to generate the quantized output signal y(n), and this quantized output signal y(n) is supplied to the second instance of the prediction filter 54′ to generate its filtered output.
According to one aspect of the present invention, there is provided a method of encoding speech, comprising: receiving an input signal representing a property of speech; quantizing the input signal, thus generating a quantized output signal; prior to said quantization, supplying a version of the input signal to a first noise shaping filter having a first set of filter coefficients, thus generating a first filtered signal based on that version of the input signal and the first set of filter coefficients; following said quantization, supplying a version of the quantized output signal to a second noise shaping filter having a second set of filter coefficients different than said first set, thus generating a second filter signal based on that version of the quantized output signal and the second set of filter coefficients; performing a noise shaping operation to control a frequency spectrum of a noise effect in the quantized output signal caused by said quantization, wherein the noise shaping operation is performed based on both the first and second filtered signals; and transmitting the quantised output signal in an encoded signal.
In embodiments, the method may further comprise updating at least one of the first and second filter coefficients based on a property of the input signal. Said property may comprise at least one of a signal spectrum and a noise spectrum of the input signal. Said updating may be performed at regular time intervals.
The method may further comprise multiplying the input signal by an adjustment gain prior to said quantization, in order to compensate for a difference between said input signal and a signal decoded from said quantized signal that would otherwise be caused by the difference between the first and second noise shaping filters.
Said noise shaping operation may comprise, prior to said quantization, subtracting the first filtered signal from the input signal and adding the second filtered signal to the input signal.
The first noise shaping filter may be an analysis filter and the second noise shaping filter may be a synthesis filter.
Said noise shaping operation may comprise generating a plurality of possible quantized output signals and selecting that having least energy in a weighted error relative to the input signal.
Said noise shaping filters may comprise weighting filters of an analysis-by-synthesis quantizer.
The method may comprise subtracting the output of a prediction filter from the input signal prior to said quantization, and adding the output of a prediction filter to the quantized output signal following said quantization.
According to another aspect of the present invention, there is provided an encoder for encoding speech, the encoder comprising: an input arranged to receive an input signal representing a property of speech; a quantization unit operatively coupled to said input configured to quantize the input signal, thus generating a quantized output signal; a first noise shaping filter having a first set of filter coefficients and being operatively coupled to said input, arranged to receive a version of the input signal prior to said quantization, and configured to generate a first filtered signal based on that version of the input signal and the first set of filter coefficients; a second noise shaping filter having a second set of filter coefficients different from the first set and being operatively coupled to an output of said quantization unit, arranged to receive a version of the quantized output signal following said quantization, and configured to generate a second filter signal based on that version of the quantized output signal and the second set of filter coefficients; a noise shaping element operatively coupled to the first and second noise shaping filters, and configured to perform a noise shaping operation to control a frequency spectrum of a noise effect in the quantized output signal caused by said quantization, wherein the noise shaping element is further configured to perform the noise shaping operation based on both the first and second filtered signals; and an output arranged to transmit the quantised output signal in an encoded signal.
output the quantised output signal in an encoded signal.
According to further aspects of the present invention, there are provided corresponding computer program products such as client application products configured so as when executed on a processor to perform the methods described above.
According to another aspect of the present invention, there is provided a communication system comprising a plurality of end-user terminals each comprising a corresponding encoder.
FIG. 7 b shows more detail of the decoder of FIG. 7 a.
Various embodiments apply one filter to a signal before quantization and another filter with different filter coefficients to a signal after quantization. As will be discussed in more detail below, this allows a signal spectrum and coding noise spectrum to be manipulated separately, and can be applied in order to improve coding efficiency and/or reduce noise.
To achieve the desired noise shaping, either the filter outputs can be combined to create an input to a quantization unit, or the filter outputs can be subtracted to create a weighted speech signal that is minimized by searching a codebook. In one or more embodiments, both filters are updated over time based on a noise shaping analysis of the input signal. The noise shaping analysis determines exactly how the signal and coding noise should be shaped over spectrum and time such that the perceived quality of the resulting quantized output signal is maximized.
One example of a noise shaping predictive quantizer 200 with different filters for input and output signals is shown in FIG. 2 a. The noise shaping predictive quantizer 200 comprises a quantization unit 202, a prediction filter 204 in a closed-loop configuration, a first noise shaping filter 206 having first filter coefficients, and a second noise shaping filter 208 having second filter coefficients different from the first filter coefficients. The noise shaping predictive quantizer 200 also comprises an amplifier 210, a first subtraction stage 212, a first addition stage 214, a second subtraction stage 216 and a second addition stage 218.
The first noise shaping filter 206 and the first subtraction stage 212 each have inputs arranged to receive an input signal x(n) representing speech or some property of speech. The other input of the first subtraction stage 212 is coupled to the output of the first noise shaping filter 206, and the output of the first subtraction stage 212 is coupled to the input of the amplifier 210. The output of the amplifier 210 is coupled to an input of the first addition stage 214, and the other input of the first addition stage 214 is coupled to the output of the second noise shaping filter 208. The output of the first addition stage 214 is coupled to an input of the second subtraction stage 216, and the other input of the second subtraction stage is coupled to the output of the prediction filter 204. The output of the second subtraction stage is coupled to the input of the quantization unit 202, which has an output arranged to supply quantization indices i(n) for transmission in an encoded signal over a transmission medium. The quantization unit 202 also has an output arranged to generate a quantized version of its input, and that output is coupled to an input of the second addition stage 218. The other input of the second addition stage 218 is coupled to the output of the prediction filter 204. The output of the second addition stage is thus arranged to generate a quantized output signal y(n), and that output is coupled to the inputs of both the prediction filter 204 and the second noise shaping filter 208.
In operation, the input signal x(n) is filtered by the first noise shaping filter 206, which is an analysis shaping filter which may be represented by a function F1(z) in the frequency domain. The output of this filtering is subtracted from the input signal x(n) at the first subtraction stage 212 and the result of the subtraction is then multiplied by a compensation gain G at the amplifier 210. The second noise shaping filter 208 is a synthesis shaping filter which may be represented by a function F2(z) in the frequency domain. The predictive filter 204 may be represented by a function P(z) in the frequency domain. The output of the second noise shaping filter 208 is added to the output of the amplifier 210 at the first addition stage 214, and the output of the prediction filter 204 is subtracted from the output of the amplifier 210 at the second subtraction stage 216 to obtain the difference between actual and predicted versions of the signal at this point, thus producing the input to the quantization unit 202. The quantization unit 202 quantizes its input, thus producing quantization indices for transmission to a decoder over a transmission medium as part of an encoded signal, and also producing an output which is quantized version of its input. The output of the prediction filter 204 is added to this output of the quantization unit 202 at the second addition stage 218, thus producing the quantized output signal y(n). The quantized output signal is fed back for input to each of the second noise shaping filter 208 F2(z) and the prediction filter 204 to produce their respective filtered outputs (note again that the quantized output y is produced in the encoder only for feedback: it is the quantization indices i which form part of the encoded signal, and these will be used at the decoder to reconstruct the quantised signal y).
Y ⁡ ( z ) = G · 1 - F ⁢ ⁢ 1 ⁢ ( z ) 1 - F ⁢ ⁢ 2 ⁢ ( z ) ⁢ X ⁡ ( z ) + 1 1 - F ⁢ ⁢ 2 ⁢ ( z ) ⁢ Q ⁡ ( z ) .
G · 1 - F ⁢ ⁢ 1 ⁢ ( z ) 1 - F ⁢ ⁢ 2 ⁢ ( z ) .
Secondly, the noise spectrum is shaped according to (1−F2(z))−1.
Thus, using two different filters allows for an independent manipulation of signal and coding noise spectrum.
Modifying the signal spectrum in such a manner can be used to produce two advantageous effects. The first effect is to suppress, or deemphasize, the values in between speech formants using short-term shaping and the valleys in between speech harmonics using long-term shaping. The effect of this suppression is to reduce the entropy of the signal relative to the coding noise level, thereby increasing the efficiency of the encoder. An example of this effect is demonstrated in FIG. 3, which is a frequency spectrum graph (i.e. of signal power or energy vs. frequency) showing a reduced entropy by de-emphasizing the valleys in between speech formants. The top curve shows an input signal, the middle curve shows the de-emphasised valleys, and the lower curve shows the coding noise. By reducing the signal spectrum in the valleys between the spectral peaks, while keeping the coding noise spectrum constant, the entropy, as defined as the area between the signal and noise spectra, is reduced.
The second effect that can be achieved by modifying the signal spectrum is to reduce noise in the input signal. By estimating the signal spectrum and noise spectrum of the signal at regular time intervals, the analysis and synthesis shaping filters (i.e. first and second noise shaping filters 206 and 208) can be configured such that the parts of the spectrum with a low signal-to-noise ratio are attenuated while parts of the spectrum with a high signal-to-noise ratio are left substantially unchanged.
A noise shaping analysis can be performed to update the analysis and synthesis shaping filters F1(z) and F2(z) in a joint manner.
FIG. 2 b shows an alternative implementation of a noise shaping predictive quantizer 230, again with different filters for input and output signals but this time based on open-loop prediction instead of closed loop. The noise shaping predictive quantizer 230 comprises a quantization unit 232, a first instance of a prediction filter 234, a second instance of the prediction filter 234′, a first noise shaping filter 236 having first filter coefficients, an a second noise shaping filter 238 having second filter coefficients. The noise shaping predictive quantizer 230 further comprises a first subtraction stage 240, a first addition stage 242, a second subtraction stage 244 and a second addition stage 246.
The first subtraction stage 240 and the first instance of the prediction filter 234 each have inputs arranged to receive the input signal x(n). The other input of the first subtraction stage 240 is coupled to the output of the first instance of the prediction filter 234, and the output of the first subtraction stage is coupled to the input of the first addition stage 242. The other input of the first addition stage 242 is coupled to the output of the second subtraction stage 244, and the output of the first addition stage 242 is coupled to the inputs of the quantization unit 232 and the first noise shaping filter 236.
The quantization unit 232 has an output arranged to supply quantization indices i(n), and another output arranged to generate a quantized version of its input. The latter output is coupled to an input of the second addition stage 246 and to the input of the second noise shaping filter 238. The outputs of the first and second noise shaping filters 236 and 238 are coupled to respective inputs of the second subtraction stage 244. The output of the second addition stage 246 is coupled to the input of the second instance of the prediction filter 234′, and the output of the second instance of the prediction filter 234′ fed back to the other input of the second addition stage 246. The signal output from the second addition stage 246 is the quantized output signal y(n), as will be reconstructed using the indices i(n) at the decoder.
In operation, the prediction is done open loop, meaning that a prediction of the input signal is based on the input signal and a prediction of the output is based on the quantized output signal. Also, noise shaping is done by filtering the input and output of the quantizer instead of the input and output of the codec. The input signal x(n) is supplied to the first instance of the prediction filter 234, which may be represented by a function P(z) in the frequency domain. The first instance of the prediction filter 234 thus produces a filtered output based on the input signal x(n), which is then subtracted from the input signal x(n) at the first subtraction stage 240 to obtain the difference between the actual and predicted input signals. Also, the second subtraction stage 244 takes the difference between the filtered outputs of the first and second noise shaping filters 236 and 238, which may be represented by functions F1(z) and F2(z) respectively in the frequency domain. These two differences are added together at the first addition stage 242. The resulting signal is supplied as an input to the quantization unit 232, and also supplied to the input of the first noise shaping filter 236 in order to produce its respective filtered output. The quantization unit 202 quantizes its input, thus producing quantization indices for transmission to a decoder, and also producing an output which is quantized version of its input. This quantized output is supplied to an input of the second addition stage 246, and also supplied to the second noise shaping filter 238 in order to produce its respective filtered output. At the second addition stage 246 the output of the second instance of the prediction filter 234′ is added to the quantized output of the quantization unit 232, thus producing the quantized output signal y(n), which is fed back to the input of the second instance of the prediction filter 234′ to produce its respective filtered output.
Y ⁡ ( z ) = 1 1 + F ⁢ ⁢ 1 ⁢ ( z ) - F ⁢ ⁢ 2 ⁢ ( z ) ⁢ X ⁡ ( z ) + 1 + F ⁢ ⁢ 1 ⁢ ( z ) 1 + F ⁢ ⁢ 1 ⁢ ( z ) - F ⁢ ⁢ 2 ⁢ ( z ) ⁢ Q ⁡ ( z ) .
Again, it can be seen that using two different filters allows for an independent manipulation of signal and coding noise spectrum.
A further embodiment is now described in relation to FIG. 2 c, which shows an analysis-by-synthesis predictive quantizer 260 with different filters for input and output signals. The analysis-by-synthesis predictive quantizer 260 comprises a controllable quantization unit 262, a prediction filter 264, a first weighting filter 266, a second weighting filter 268, an energy minimization block 270, a subtraction stage 272 and an addition stage 274. The first weighting filter has its input arranged to receive the input signal x(n), and its output coupled to an input of the subtraction stage 272. The other input of the subtraction stage 272 is coupled to the output of the second weighting filter 268. The output of the subtraction stage is coupled to the input of the energy minimization block 270, and the output of the energy minimization block 270 is coupled to a control input of the quantization unit 262. The quantization unit 262 has outputs arranged to supply quantization indices i(n) and a quantized output respectively. The latter output of the quantization unit 262 is coupled to an input of the addition stage 274, and the other input of the addition stage is coupled to the output of the prediction filter 264. The output of the addition stage 274 is coupled to the inputs of the prediction filter 264 and the second weighting filter 268. The signal output from the addition stage 264 is the quantized output signal y(n), as will be reconstructed using the indices i(n) at the decoder.
In operation, the input and output signals are filtered with analysis and synthesis weighting filters.
The quantization unit 262 generates a plurality of possible versions of a portion of the quantized output signal y(n). For each possible version, the addition stage 274 adds the quantized output of the quantization unit 262 to the filtered output of the prediction filter 264, thus producing the quantized output signal y(n) which is fed back to the inputs of the prediction filter 264 and the second weighting filter 268 to produce their respective filtered outputs. Also, the input signal x(n) is filtered by the first weighting filter 266 to produce a respective filtered output. The prediction filter 264 and first and second weighting filters 266 and 268 may be represented by functions P(z), W1(z) and W2(z) respectively in the frequency domain. The subtraction stage 272 takes the difference between the filtered outputs of the first and second weighting filters 266 and 268 to produce an error signal, which is supplied to the input of energy minimization block 270. The energy minimization block 270 determines the energy in this error signal for each possible version of the quantized output signal y(n), and selects the version resulting in the least energy in the error signal.
Y ⁡ ( z ) = W ⁢ ⁢ 1 ⁢ ( z ) W ⁢ ⁢ 2 ⁢ ( z ) ⁢ X ⁡ ( z ) + 1 W ⁢ ⁢ 2 ⁢ ( z ) ⁢ Q ⁡ ( z ) .
Again therefore, using two different filters allows for an independent manipulation of signal and coding noise spectrum.
Remember that by defining W(z)=1−F(z), analysis-by-synthesis quantization can be interpreted as noise shaping quantization. Thus a suitably configured weighting filter can be considered as a noise shaping filter.
An example implementation in the context of speech coding is now discussed.
As illustrated schematically in FIG. 4 a, according to a source-filter model speech can be modeled as comprising a signal from a source 402 passed through a time-varying filter 404. The source signal represents the immediate vibration of the vocal chords, and the filter represents the acoustic effect of the vocal tract formed by the shape of the throat, mouth and tongue. The effect of the filter is to alter the frequency profile of the source signal so as to emphasise or diminish certain frequencies. Instead of trying to directly represent an actual waveform, speech encoding works by representing the speech using parameters of a source-filter model.
As illustrated schematically in FIG. 4 b, the encoded signal will be divided into a plurality of frames 406, with each frame comprising a plurality of subframes 408. For example, speech may be sampled at 16 kHz and processed in frames of 20 ms, with some of the processing done in subframes of 5 ms (four subframes per frame). Each frame comprises a flag 407 by which it is classed according to its respective type. Each frame is thus classed at least as either “voiced” or “unvoiced”, and unvoiced frames are encoded differently than voiced frames. Each subframe 408 then comprises a set of parameters of the source-filter model representative of the sound of the speech in that subframe.
For voiced sounds (e.g. vowel sounds), the source signal has a degree of long-term periodicity corresponding to the perceived pitch of the voice. In that case, the source signal can be modeled as comprising a quasi-periodic signal, with each period corresponding to a respective “pitch pulse” comprising a series of peaks of differing amplitudes. The source signal is said to be “quasi” periodic in that on a timescale of at least one subframe it can be taken to have a single, meaningful period which is approximately constant; but over many subframes or frames then the period and form of the signal may change. The approximated period at any given point may be referred to as the pitch lag. An example of a modeled source signal 402 is shown schematically in FIG. 4 c with a gradually varying period P1, P2, P3, etc., each comprising a pitch pulse of four peaks which may vary gradually in form and amplitude from one period to the next.
As mentioned, prediction filtering may be used to derive a residual signal having less energy that an input speech signal and therefore requiring fewer bits to quantize.
According to many speech coding algorithms such as those using Linear Predictive Coding (LPC), a short-term prediction filter is used to separate out the speech signal into two separate components: (i) a signal representative of the effect of the time-varying filter 404; and (ii) the remaining signal with the effect of the filter 404 removed, which is representative of the source signal. The signal representative of the effect of the filter 404 may be referred to as the spectral envelope signal, and typically comprises a series of sets of LPC parameters describing the spectral envelope at each stage. FIG. 4 d shows a schematic example of a sequence of spectral envelopes 404 1, 404 2, 404 3, etc. varying over time. Once the varying spectral envelope is removed, the remaining signal representative of the source alone may be referred to as the LPC residual signal, as shown schematically in FIG. 4 c. The LPC short-term filtering works by using an LPC analysis to determine a short-term correlation in recently received samples of the speech signal (i.e. short-term compared to the pitch period), then passing coefficients of that correlation to an LPC synthesis filter to predict following samples. The predicted samples are fed back to the input where they are subtracted from the speech signal, thus removing the effect of the spectral envelope and thereby deriving an LTP residual signal representing the modeled source of the speech. The LPC residual signal has less energy that the input speech signal and therefore requiring fewer bits to quantize.
The spectral envelope signal and the source signal are each encoded separately for transmission. In the illustrated example, each subframe 406 would contain: (i) a set of parameters representing the spectral envelope 404; and (ii) an LPC residual signal representing the source signal 402 with the effect of the short-term correlations removed.
To further improve the encoding of the source signal, its periodicity may also be exploited. To do this, a long-term prediction (LTP) analysis is used to determine the correlation of the LPC residual signal with itself from one period to the next, i.e. the correlation between the LPC residual signal at the current time and the LPC residual signal after one period at the current pitch lag (correlation being a statistical measure of a degree of relationship between groups of data, in this case the degree of repetition between portions of a signal). In this context the source signal can be said to be “quasi” periodic in that on a timescale of at least one correlation calculation it can be taken to have a meaningful period which is approximately (but not exactly) constant; but over many such calculations then the period and form of the source signal may change more significantly. A set of parameters derived from this correlation are determined to at least partially represent the source signal for each subframe. The set of parameters for each subframe is typically a set of coefficients C of a series, which form a respective vector CLTP=(C1, C2, . . . Ci).
The effect of this inter-period correlation is then removed from the LPC residual, leaving an LTP residual signal representing the source signal with the effect of the correlation between pitch periods removed. To do this, an LTP analysis is used to determine a correlation between successive received pitch pulses in the LPC residual signal, then coefficients of that correlation are passed to an LTP synthesis filter where they are used to generate a predicted version of the later of those pitch pulses from the last stored one of the preceding pitch pulses. The predicted pitch pulse is fed back to the input where it is subtracted from the corresponding portion of the actual LPC residual signal, thus removing the effect of the periodicity and thereby deriving an LTP residual signal. Put another way, the LTP synthesis filter uses a long-term prediction to effectively remove or reduce the pitch pulses from the LPC residual signal, leaving an LTP residual signal having lower energy than the LPC residual. To represent the source signal, the LTP vectors and LTP residual signal are encoded separately for transmission.
The sets of LPC parameters, the LTP vectors and the LTP residual signal are each quantised prior to transmission (quantisation being the process of converting a continuous range of values into a set of discrete values, or a larger approximately continuous set of discrete values into a smaller set of discrete values). The advantage of separating out the LPC residual signal into the LTP vectors and LTP residual signal is that the LTP residual typically has a lower energy than the LPC residual, and so requires fewer bits to quantize.
So in the illustrated example, each subframe 406 would comprise: (i) a quantised set of LPC parameters representing the spectral envelope, (ii)(a) a quantised LTP vector related to the correlation between pitch periods in the source signal, and (ii)(b) a quantised LTP residual signal representative of the source signal with the effects of this inter-period correlation removed.
In contrast with voiced sounds, for unvoiced sounds such as plosives (e.g. “T” or “P” sounds) the modeled source signal has no substantial degree of periodicity. In that case, long-term prediction (LTP) cannot be used and the LPC residual signal representing the modeled source signal is instead encoded differently, e.g. by being quantized directly.
An example of an encoder 500 for implementing one or more embodiments is now described in relation to FIG. 5.
The encoder 500 comprises a high-pass filter 502, a linear predictive coding (LPC) analysis block 504, a first vector quantizer 506, an open-loop pitch analysis block 508, a long-term prediction (LTP) analysis block 510, a second vector quantizer 512, a noise shaping analysis block 514, a noise shaping quantizer 516, and an arithmetic encoding block 518. The noise shaping quantizer 516 could be of the type of any of the quantizers 200, 230 or 260 discussed in relation to FIGS. 2 a, 2 b and 2 c respectively.
The high pass filter 502 has an input arranged to receive an input speech signal from an input device such as a microphone, and an output coupled to inputs of the LPC analysis block 504, noise shaping analysis block 514 and noise shaping quantizer 516. The LPC analysis block has an output coupled to an input of the first vector quantizer 506, and the first vector quantizer 506 has outputs coupled to inputs of the arithmetic encoding block 518 and noise shaping quantizer 516. The LPC analysis block 504 has outputs coupled to inputs of the open-loop pitch analysis block 508 and the LTP analysis block 510. The LTP analysis block 510 has an output coupled to an input of the second vector quantizer 512, and the second vector quantizer 512 has outputs coupled to inputs of the arithmetic encoding block 518 and noise shaping quantizer 516. The open-loop pitch analysis block 508 has outputs coupled to inputs of the LTP 510 analysis block 510 and the noise shaping analysis block 514. The noise shaping analysis block 514 has outputs coupled to inputs of the arithmetic encoding block 518 and the noise shaping quantizer 516. The noise shaping quantizer 516 has an output coupled to an input of the arithmetic encoding block 518. The arithmetic encoding block 518 is arranged to produce an output bitstream based on its inputs, for transmission from an output device such as a wired modem or wireless transceiver.
In operation, the encoder processes a speech input signal sampled at 16 kHz in frames of 20 milliseconds, with some of the processing done in subframes of 5 milliseconds. The output bitstream payload contains arithmetically encoded parameters, and has a bitrate that varies depending on a quality setting provided to the encoder and on the complexity and perceptual importance of the input signal.
The speech input signal is input to the high-pass filter 504 to remove frequencies below 80 Hz which contain almost no speech energy and may contain noise that can be detrimental to the coding efficiency and cause artifacts in the decoded output signal. In at least some embodiments, the high-pass filter 504 is a second order auto-regressive moving average (ARMA) filter.
r LPC ⁡ ( n ) = x HP ⁡ ( n ) - ∑ i = 1 16 ⁢ x HP ⁡ ( n - i ) ⁢ a ⁡ ( i ) .
The LPC coefficients are transformed to a line spectral frequency (LSF) vector. The LSFs are quantized using the first vector quantizer 506, a multi-stage vector quantizer (MSVQ) with 10 stages, producing 10 LSF indices that together represent the quantized LSFs. The quantized LSFs are transformed back to produce the quantized LPC coefficients aQ for use in the noise shaping quantizer 516.
The LPC residual is input to the open loop pitch analysis block 508, producing one pitch lag for every 5 millisecond subframe, i.e., four pitch lags per frame. The pitch lags are chosen between 32 and 288 samples, corresponding to pitch frequencies from 56 to 500 Hz, which covers the range found in typical speech signals. Also, the pitch analysis produces a pitch correlation value which is the normalized correlation of the signal in the current frame and the signal delayed by the pitch lag values. Frames for which the correlation value is below a threshold of 0.5 are classified as unvoiced, i.e., containing no periodic signal, whereas all other frames are classified as voiced. The pitch lags are input to the arithmetic coder 518 and noise shaping quantizer 516.
C LTP ⁡ ( i ) = ∑ n = 0 79 ⁢ r LPC ⁡ ( n ) ⁢ r LPC ⁡ ( n + 2 - lag - i ) .
Thus, the LTP residual is computed as the LPC residual in the current subframe minus a filtered and delayed LPC residual. The LPC residual in the current subframe and the delayed LPC residual are both generated with an LPC analysis filter controlled by the same LPC coefficients. That means that when the LPC coefficients were updated, an LPC residual is computed not only for the current frame but also a new LPC residual is computed for at least lag +2 samples preceding the current frame.
The LTP coefficients for each frame are quantized using a vector quantizer (VQ). The resulting VQ codebook index is input to the arithmetic coder, and the quantized LTP coefficients bQ are input to the noise shaping quantizer 516.
The high-pass filtered input is analyzed by the noise shaping analysis block 514 to find filter coefficients and quantization gains used in the noise shaping quantizer. The filter coefficients determine the distribution of the coding noise over the spectrum, and are chose such that the quantization is least audible. The quantization gains determine the step size of the residual quantizer and as such govern the balance between bitrate and coding noise level.
All noise shaping parameters are computed and applied per subframe of 5 milliseconds, except for the quantization offset which is determines once per frame of 20 milliseconds. First, a 16th order noise shaping LPC analysis is performed on a windowed signal block of 16 milliseconds. The signal block has a look-ahead of 5 milliseconds relative to the current subframe, and the window is an asymmetric sine window. The noise shaping LPC analysis is done with the autocorrelation method. The quantization gain is found as the square-root of the residual energy from the noise shaping LPC analysis, multiplied by a constant to set the average bitrate to the desired level. For voiced frames, the quantization gain is further multiplied by 0.5 times the inverse of the pitch correlation determined by the pitch analyses, to reduce the level of coding noise which is more easily audible for voiced signals. The quantization gain for each subframe is quantized, and the quantization indices are input to the arithmetically encoder 518. The quantized quantization gains are input to the noise shaping quantizer 516.
where aautocorr(i) is the ith coefficient from the noise shaping LPC analysis and for the bandwidth expansion factors good results are obtained with: gana=0.9 and gsyn=0.96.
b shape,syn=0.5 sqrt(PitchCorrelation) [0.25, 0.5, 0.25].
The short-term and long-term noise shaping coefficients are determined by the noise shaping analysis block 514 and input to the noise shaping quantizer 516.
where rk are the reflection coefficients.
The high-pass filtered input xHP(n) is input to the noise shaping quantizer 516, discussed in more detail in relation to FIG. 6 b below. All gains and filter coefficients and gains are updated for every subframe, except for the LPC coefficients which are updated once per frame.
By way of contrast with the described embodiments, an example of a noise shaping quantizer 600 without separate noise shaping filters at the inputs and outputs is first described in relation to FIG. 6 a.
The noise shaping quantizer 600 comprises a first addition stage 602, a first subtraction stage 604, a first amplifier 606, a quantization unit 608, a second amplifier 609, a second addition stage 610, a shaping filter 612, a prediction filter 614 and a second subtraction stage 616. The shaping filter 612 comprises a third addition stage 618, a long-term shaping block 620, a third subtraction stage 622, and a short-term shaping block 624. The prediction filter 614 comprises a fourth addition stage 626, a long-term prediction block 628, a fourth subtraction stage 630, and a short-term prediction block 632.
The first addition stage 602 has an input that would be arranged to receive the high-pass filtered input from the high-pass filter 502, and another input coupled to an output of the third addition stage 618. The first subtraction stage has inputs coupled to outputs of the first addition stage 602 and fourth addition stage 626. The first amplifier has a signal input coupled to an output of the first subtraction stage and an output coupled to an input of the quantization unit 608. The first amplifier 606 also has a control input which would be coupled to the output of the noise shaping analysis block 514. The quantization unit 608 has an output coupled to input of the second amplifier 609 and would also have an output coupled to the arithmetic encoding block 518. The second amplifier 609 would also have a control input coupled to the output of the noise shaping analysis block 514, and an output coupled to the an input of the second addition stage 610. The other input of the second addition stage 610 is coupled to an output of the fourth addition stage 626. An output of the second addition stage is coupled back to the input of the first addition stage 602, and to an input of the short-term prediction block 632 and the fourth subtraction stage 630. An output of the short-term prediction block 632 is coupled to the other input of the fourth subtraction stage 630. The output of the fourth subtraction stage 630 is coupled to the input of the long-term prediction block 628. The fourth addition stage 626 has inputs coupled to outputs of the long-term prediction block 628 and short-term prediction block 632. The output of the second addition stage 610 is further coupled to an input of the second subtraction stage 616, and the other input of the second subtraction stage 616 is coupled to the input from the high-pass filter 502. An output of the second subtraction stage 616 is coupled to inputs of the short-term shaping block 624 and the third subtraction stage 622. An output of the short-term shaping block 624 is coupled to the other input of the third subtraction stage 622. The output of the third subtraction stage 622 is coupled to the input of the long-term shaping block 620. The third addition stage 618 has inputs coupled to outputs of the long-term shaping block 620 and short-term shaping block 624. The short-term and long-term shaping blocks 624 and 620 would each also be coupled to the noise shaping analysis block 514, the long-term shaping block 620 would also be coupled to the open-loop pitch analysis block 508 (connections not shown). Further, the short-term prediction block 632 would be coupled to the LPC analysis block 504 via the first vector quantizer 506, and the long-term prediction block 628 would be coupled to the LTP analysis block 510 via the second vector quantizer 512 (connections also not shown).
In operation, the noise shaping quantizer 600 generates a quantized output signal that is identical to the output signal ultimately generated in the decoder.
The input signal is subtracted from this quantized output signal at the second subtraction stage 616 to obtain the coding noise signal d(n). The coding noise signal is input to a shaping filter 612, described in detail later. The output of the shaping filter 612 is added to the input signal at the first addition stage 602 in order to effect the spectral shaping of the coding noise. From the resulting signal, the output of the prediction filter 614, described in detail below, is subtracted at the first subtraction stage 604 to create a residual signal. The residual signal would be multiplied at the first amplifier 606 by the inverse quantized quantization gain from the noise shaping analysis block 514, and input to the scalar quantizer 608. The quantization indices of the scalar quantizer 608 represent an excitation signal that would be input to the arithmetically encoder 518. The scalar quantizer 608 also outputs a quantization signal, which would be multiplied at the second amplifier 609 by the quantized quantization gain from the noise shaping analysis block 514 to create an excitation signal. The output of the prediction filter 614 is added at the second addition stage to the excitation signal to form the quantized output signal. The quantized output signal is input to the prediction filter 614.
On a point of terminology, note that there is a small difference between the terms “residual” and “excitation”. A residual is obtained by subtracting a prediction from the input speech signal. An excitation is based on only the quantizer output. Often, the residual is simply the quantizer input and the excitation is its output.
s short ⁡ ( n ) = ∑ i = 1 16 ⁢ d ⁡ ( n - i ) ⁢ a shape ⁡ ( i ) .
s long ⁡ ( n ) = ∑ i = - 2 2 ⁢ f ⁡ ( n - lag - i ) ⁢ b shape ⁡ ( i ) .
The short-term and long-term shaping signals are added together at the third addition stage 618 to create the shaping filter output signal.
p short ⁡ ( n ) = ∑ i = 1 16 ⁢ y ⁡ ( n - i ) ⁢ a ⁡ ( i ) .
p long ⁡ ( n ) = ∑ i = - 2 2 ⁢ e LPC ⁡ ( n - lag - i ) ⁢ b ⁡ ( i ) .
The short-term and long-term prediction signals are added together at the fourth addition stage 626 to create the prediction filter output signal.
The LSF indices, LTP indices, quantization gains indices, pitch lags and excitation quantization indices would each be arithmetically encoded and multiplexed by the arithmetic encoder 518 to create the payload bitstream.
As an illustration of one embodiment, a noise shaping predictive quantizer 516 having separate noise shaping filters at the input and output is now described in relation to FIG. 6 b.
The noise shaping quantizer 516 comprises: a first subtraction stage 652, a first amplifier 654, a first addition stage 656, a second subtraction stage 658 a second amplifier 660, a quantization unit 662, a third amplifier 664, a second addition stage 666, a first noise shaping filter in the form of an analysis shaping filter 668, a second noise shaping filter in the form of a synthesis shaping filter 670, and a prediction filter 672. The analysis shaping filter 668 comprises a third addition stage 674, a first long-term shaping block 676, a third subtraction stage 678, and a first short-term shaping block 680. The synthesis shaping filter 670 comprises a fourth addition stage 682, a second long-term shaping block 684, a fourth subtraction stage 686, and a second short-term shaping block 688. The prediction filter 672 comprises a fifth addition stage 690, a long-term prediction block 692, a fifth subtraction stage 694, and a short-term prediction block 696.
The first subtraction stage 652 has an input arranged to receive the high-pass filtered input signal xHP(n) from the high-pass filter 502. Its other input is coupled to the output of the third addition stage 674 in the analysis shaping filter 668. The output of the first subtraction stage 652 is coupled to a signal input of the first amplifier 654. The first amplifier also has a control input coupled to the noise shaping analysis block 514. The output of the first amplifier 654 is coupled to an input of the first addition stage 656. The other input of the first addition stage 656 is coupled to the output of the fourth addition stage 682 in the synthesis shaping filter 670. The output of the first addition stage 656 is coupled to an input of the second subtraction stage 658. The other input of the second subtraction stage 658 is coupled to the output of the fifth addition stage 690 in the prediction filter 672. The output of the second subtraction stage 658 is coupled to a signal input of the second amplifier 660. The second amplifier 660 also has a control input coupled to the noise shaping analysis block 514. The output of the second amplifier 660 is coupled to the input of the quantization unit 662. The quantization unit 662 has an output coupled to a signal input of the third amplifier 664 and also has an output coupled to the arithmetic encoding block 518. The third amplifier 664 also has a control input coupled to the noise shaping analysis block 514. The output of the third amplifier 664 is coupled to an input of the second addition stage 666. The other input of the second addition stage 666 is coupled to the output of the fifth addition stage 690 in the prediction filter 672. The output of the second addition stage 666 is coupled to the inputs of the short-term prediction block 696 and fifth subtraction stage 694 in the prediction filter 672, and of the second short-term shaping filter 688 and fourth subtraction stage 686 in the synthesis shaping filter 670. The signal output from the second addition stage 666 is the quantized output y(n) fed back to the analysis, synthesis and prediction filters.
In the analysis shaping filter 668, the first short-term shaping block 680 and third subtraction stage 678 each have inputs arranged to receive the input signal xHP(n). The output of the first short-term shaping block 680 is coupled to the other input of the third subtraction stage 678 and an input of the third addition stage 674. The output of the third subtraction stage 678 is coupled to the input of the first long-term shaping block 676, and the output of the first short-term shaping block 676 is coupled to the other input of the third addition stage 674. The first short-term and long-term shaping blocks 680 and 676 are each also coupled to the noise shaping analysis block 514, and the first long-term shaping block 676 is further coupled to the open-loop pitch analysis block 508 (connections not shown). In the synthesis shaping filter 670, the second short-term shaping block 688 and the fourth subtraction stage 686 each have inputs arranged to receive the quantized output signal y(n) from the output of the second addition stage 666.
The output of the second short-term shaping block 688 is coupled to the other input of the fourth subtraction stage 686, and to an input of the fourth addition stage 682. The output of the fourth subtraction stage 686 is coupled to the input of the second long-term shaping block 684, and the output of the second long-term shaping block 684 is coupled to the other input of the fourth addition stage 682. The second short-term and long-term shaping blocks 688 and 684 are each also coupled to the noise shaping analysis block 514, and the second long-term shaping block 684 is further coupled to the open-loop pitch analysis block 508 (connections not shown). In the prediction filter 672, the short-term prediction block 696 and fifth subtraction stage 694 each have inputs arranged to receive the quantized output signal y(n) from the output of the second addition stage 666. The output of the short-term prediction block 696 is coupled to the other input of the fifth subtraction stage 694, and to an input of the fifth addition stage 690. The output of the fifth subtraction stage 694 is coupled to the input of the long-term prediction block 692, and the output of the long-term prediction block is coupled to the other input of the fifth addition stage 690.
In operation, the noise shaping quantizer 516 generates a quantized output signal y(n) that is identical to the output signal ultimately generated in the decoder. The output of the analysis shaping filter 668 is subtracted from the input signal x(n) at the first subtraction stage 652. At the first amplifier 654, the result is multiplied by the compensation gain G computed in the noise shaping analysis block 514. Then the output of the synthesis shaping filter 670 is added at the first addition stage 656, and the output of the prediction filter 672 is subtracted at the second subtraction stage 658 to create a residual signal. At the second amplifier 660, the residual signal is multiplied by the inverse quantized quantization gain from the noise shaping analysis block 514, and input to the quantization unit 662, in one or more embodiments, a scalar quantizer. The quantization indices of the quantization unit form a signal that is input to the arithmetic encoder 518 for transmission to a decoder in an encoded signal. The quantization unit 662 also outputs a quantization signal, which is multiplied at the third amplifier 664 by the quantized quantization gain from the noise shaping analysis block 514 to create an excitation signal. The output of the prediction filter 672 is added to the excitation signal to form the quantized output signal y(n). The quantized output signal is fed back to the prediction filter 672 and synthesis shaping filter 670.
s short , ana ⁡ ( n ) = ∑ i = 1 16 ⁢ x HP ⁡ ( n - i ) ⁢ a shape , ana ⁡ ( i ) .
s long , ana ⁡ ( n ) = ∑ i = - 2 2 ⁢ f ana ⁡ ( n - lag - i ) ⁢ b shape , ana ⁡ ( i ) .
The short-term and long-term analysis shaping signals are added together at the third addition stage 674 to create the analysis shaping filter output signal.
s short , syn ⁡ ( n ) = ∑ i = 1 16 ⁢ y ⁡ ( n - i ) ⁢ a shape , syn ⁡ ( i ) .
s long , syn ⁡ ( n ) = ∑ i = - 2 2 ⁢ f syn ⁡ ( n - lag - i ) ⁢ b shape , syn ⁡ ( i ) .
The short-term and long-term synthesis shaping signals are added together at the fourth addition stage 682 to create the synthesis shaping filter output signal.
p short ⁡ ( n ) = ∑ i = 1 16 ⁢ y ⁡ ( n - i ) ⁢ a Q ⁡ ( i ) .
e LPC ⁡ ( n ) = y ⁡ ( n ) - p short ⁡ ( n ) = y ⁡ ( n ) - ∑ i = 1 16 ⁢ y ⁡ ( n - i ) ⁢ a Q ⁡ ( i ) .
p long ⁡ ( n ) = ∑ i = - 2 2 ⁢ e LPC ⁡ ( n - lag - i ) ⁢ b Q ⁡ ( i ) .
The short-term and long-term prediction signals are added together at the fifth addition stage 690 to create the prediction filter output signal.
The LSF indices, LTP indices, quantization gains indices, pitch lags, and excitation quantization indices are each arithmetically encoded and multiplexed by the arithmetic encoder 518 to create the payload bitstream. The arithmetic encoder 518 uses a look-up table with probability values for each index. The look-up tables are created by running a database of speech training signals and measuring frequencies of each of the index values. The frequencies are translated into probabilities through a normalization step.
A predictive speech decoder 700 for use in decoding such a signal is now discussed in relation to FIGS. 7 a and 7 b.
The decoder 700 comprises an arithmetic decoding and dequantizing block 702, an excitation generation block 704, an LTP synthesis filter 706, and an LPC synthesis filter 708. The arithmetic decoding and dequantizing block has an input arranged to receive an encoded bitstream from an input device such as a wired modem or wireless transceiver, and has outputs coupled to inputs of each of the excitation generation block 704, LTP synthesis filter 706 and LPC synthesis filter 708. The excitation generation block 704 has an output coupled to an input of the LTP synthesis filter 706, and the LTP synthesis filter 706 has an output connected to an input of the LPC synthesis filter 708. The LPC synthesis filter has an output arranged to provide a decoded output for supply to an output device such as a speaker or headphones.
At the arithmetic decoding and dequantizing block 702, the arithmetically encoded bitstream is demultiplexed and decoded to create LSF indices, LTP indices, quantization gains indices, pitch lags and a signal of excitation quantization indices. The LSF indices are converted to quantized LSFs by adding the codebook vectors of the ten stages of the MSVQ. The quantized LSFs are transformed to quantized LPC coefficients. The LTP indices are converted to quantized LTP coefficients. The gains indices are converted to quantization gains, through look ups in the gain quantization codebook.
The quantization indices are input to the excitation generator 704 which generates an excitation signal. The excitation quantization indices are multiplied with the quantized quantization gain to produce the excitation signal e(n).
using the pitch lag and quantized LTP coefficients bQ.
using the quantized LPC coefficients aQ.
The encoder 500 and decoder 700 are, in one or more embodiments, implemented in software, such that each of the components 502 to 518, 652 to 696, and 702 to 712 comprise modules of software stored on one or more memory devices and executed on a processor. An example application of the described embodiments is to encode speech for transmission over a packet-based network such as the Internet, using a peer-to-peer (P2P) system implemented over the Internet, for example as part of a live call such as a Voice over IP (VoIP) call. In this case, the encoder 500 and decoder 700 are, in one or more embodiments, implemented in client application software executed on end-user terminals of two users communicating over the P2P system.
It will be appreciated that the above embodiments are described only by way of example. For instance, some or all of the modules of the encoder and/or decoder could be implemented in dedicated hardware units. Further, the various embodiments are not limited to use in a client application, but could be used for any other speech-related purpose such as cellular mobile telephony. Further, instead of a user input device like a microphone, the input speech signal could be received by the encoder from some other source such as a storage device and potentially be transcoded from some other form by the encoder; and/or instead of a user output device such as a speaker or headphones, the output signal from the decoder could be sent to another source such as a storage device and potentially be transcoded into some other form by the decoder. Other applications and configurations may be apparent to the person skilled in the art given the disclosure herein.
transmit the quantized output signal in an encoded signal, the quantized output signal based, at least in part, on the first filtered signal and the second filtered signal.
2. The one or more computer-readable storage memory devices of claim 1, the processor-executable instructions further configured to enable the device to update at least one of the first and second filter coefficients based on a property of the input signal.
3. The one or more computer-readable storage memory devices of claim 2, wherein said property comprises at least one of a signal spectrum and a noise spectrum of the input signal.
4. The one or more computer-readable storage memory devices of claim 2, wherein the processor-executable instructions to update the at least one of the first and second filter coefficients are further configure to update the at least one of the first and second filter coefficients at regular time intervals.
5. The one or more computer-readable storage memory devices of claim 1, the processor-executable instructions further configured to enable the device to multiply the input signal by an adjustment gain prior to said quantization, in order to compensate for a difference between said input signal and a signal decoded from said quantized signal that would otherwise be caused by the difference between the first and second noise shaping filters.
6. The one or more computer-readable storage memory devices of claim 1, wherein the processor-executable instructions to perform said noise shaping operation are further configured to, prior to said quantization, subtract the first filtered signal from the input signal and add the second filtered signal to the input signal.
7. The one or more computer-readable storage memory devices of claim 1, wherein the first noise shaping filter comprises an analysis filter and the second noise shaping filter comprises a synthesis filter.
8. The one or more computer-readable storage memory devices of claim 1, wherein the processor-executable instructions to perform said noise shaping operation are further configured to generate a plurality of possible quantized output signals and select an output signal of the plurality of possible quantized output signals having least energy in a weighted error relative to the input signal.
9. The one or more computer-readable storage memory devices of claim 8, wherein said noise shaping filters comprise one or more weighting filters of an analysis-by-synthesis quantizer.
10. The one or more computer-readable storage memory devices of claim 1, wherein the processor-executable instructions are further configured to enable the device to subtract the output of a prediction filter from the input signal prior to said quantization, and add the output of a prediction filter to the quantized output signal following said quantization.
wherein the third filtered signal comprises the output signal filtered with a second instance of the prediction filter.
12. The one or more computer-readable storage memory devices of claim 11, wherein the first noise shaping filter and the second noise shaping filter are configured to enable independent manipulation of a signal spectrum and a coding noise spectrum associated with the input signal.
13. The one or more computer-readable storage memory devices of claim 11, the processor-executable instructions further configured to enable the device to update at least one of the first and second filter coefficients based on a property of the input signal.
14. The one or more computer-readable storage memory devices of claim 13, wherein the processor-executable instructions to update the at least one of the first and second filter coefficients are further configure to update the at least one of the first and second filter coefficients at regular time intervals.
transmit said encoded output signal.
the second filtered signal comprises the output signal filtered with a second weighted filter having a third set of filter coefficients.
the addition stage is configured to add each one of the plurality of possible versions of the intermediate output signal with the third filtered signal.
select a signal from the plurality of signals based, at least in part, on the associated energy value of the signal resulting in a least energy value from the plurality of energy values.
19. The one or more computer-readable storage memory devices of claim 16, wherein the first weighted filter and the second weighted filter are configured as a noise shaping filter.
20. The one or more computer-readable storage memory devices of claim 16, wherein the second set of filter coefficients associated with the prediction filter are based, at least in part, on one or more speech properties associated with the input signal.
ES2145737T5 (en) 1989-09-01 2007-03-01 Motorola, Inc. digital vocoder with long-term predictor improved by resolution of subsamplings.
"Coding of Speech at 8 kbit/s Using Conjugate-Structure Algebraic-Code-Excited Linear-Prediction (CS-ACELP)", International Telecommunication Union, ITUT, (1996), 39 pages.
"Examination Report under Section 18(3)", Great Britain Application No. 0900143.9, (May 21, 2012), 2 pages.
"Examination Report", GB Application No. 0900139.7, (Aug. 28, 2012),1 page.
"Examination Report", GB Application No. 0900140.5, (Aug. 29, 2012), 3 pages.
"Examination Report", GB Application No. 0900141.3, (Oct. 8, 2012), 2 pages.
"Final Office Action", U.S. Appl. No. 12/455,100, (Oct. 4, 2012), 5 pages.
"Final Office Action", U.S. Appl. No. 12/455,478, (Jun. 28, 2012), 8 pages.
"Final Office Action", U.S. Appl. No. 12/455,632, (Jan. 18, 2013), 15 pages.
"Final Office Action", U.S. Appl. No. 12/455,752, (Nov. 23, 2012), 8 pages.
"Final Office Action", U.S. Appl. No. 12/583,998, (May 20, 2013), 19 pages.
"Foreign Office Action", Chinese Application No. 201080010209, (Jan. 30, 2013), 12 pages.
"Foreign Office Action", CN Application No. 201080010208.1, (Dec. 28, 2012), 12 pages.
"Foreign Office Action", Great Britain Application No. 0900145.4, (May 28, 2012), 2 pages.
"International Search Report and Written Opinion", Application No. PCT/EP2010/050051, (Mar. 15, 2010), 13 pages.
"International Search Report and Written Opinion", Application No. PCT/EP2010/050052, (Jun. 21, 2010), 13 pages.
"International Search Report and Written Opinion", Application No. PCT/EP2010/050053, (May 17, 2010), 17 pages.
"International Search Report and Written Opinion", Application No. PCT/EP2010/050056, (Mar. 29, 2010), 8 pages.
"International Search Report and Written Opinion", Application No. PCT/EP2010/050057, (Jun. 24, 2010), 11 pages.
"International Search Report and Written Opinion", Application No. PCT/EP2010/050060, (Apr. 14, 2010), 14 pages.
"International Search Report and Written Opinion", Application No. PCT/EP2010/050061, (Apr. 12, 2010), 13 pages.
"Non-Final Office Action", U.S. Appl. No. 12/455,100, (Jun. 8, 2012), 8 pages.
"Non-Final Office Action", U.S. Appl. No. 12/455,157, (Aug. 6, 2012), 15 pages.
"Non-Final Office Action", U.S. Appl. No. 12/455,632, (Aug. 22, 2012), 14 pages.
"Non-Final Office Action", U.S. Appl. No. 12/455,632, (Feb. 6, 2012), 18 pages.
"Non-Final Office Action", U.S. Appl. No. 12/455,632, (Jun. 4, 2013), 13 pages.
"Non-Final Office Action", U.S. Appl. No. 12/455,632, (Oct. 18, 2011), 14 pages.
"Non-Final Office Action", U.S. Appl. No. 12/455,712, (Jun. 20, 2012), 8 pages.
"Non-Final Office Action", U.S. Appl. No. 12/455,752, (Jun. 15, 212), 8 pages.
"Non-Final Office Action", U.S. Appl. No. 12/583,998, (Oct. 18, 2012), 16 pages.
"Non-Final Office Action", U.S. Appl. No. 12/586,915, (May 8, 2012), 10 pages.
"Non-Final Office Action", U.S. Appl. No. 12/586,915, (Sep. 25, 2012), 10 pages.
"Notice of Allowance", U.S. Appl. No. 12/455,100, (Feb. 5, 2013), 4 Pages.
"Notice of Allowance", U.S. Appl. No. 12/455,157, (Nov. 29, 2012), 9 pages.
"Notice of Allowance", U.S. Appl. No. 12/455,478, (Dec. 7, 2012), 7 pages.
"Notice of Allowance", U.S. Appl. No. 12/455,632, (May 15, 2012), 7 pages.
"Notice of Allowance", U.S. Appl. No. 12/455,632, (Oct. 9, 2013), 8 pages.
"Notice of Allowance", U.S. Appl. No. 12/455,712, (Oct. 23, 2012), 7 pages.
"Notice of Allowance", U.S. Appl. No. 12/455,752, (Oct. 4, 2013), 6 pages.
"Notice of Allowance", U.S. Appl. No. 12/586,915, (Jan. 22, 2013), 8 pages.
"Search Report", Application No. GB 0900139.7, (Apr. 17, 2009), 3 pages.
"Search Report", Application No. GB 0900141.3, (Apr. 30, 2009), 3 pages.
"Search Report", Application No. GB 0900142.1, (Apr. 21, 2009), 2 pages.
"Search Report", Application No. GB 0900144.7, (Apr. 24, 2009), 2 pages.
"Search Report", Application No. GB0900143.9, (Apr. 28, 2009), 1 page.
"Search Report", Application No. GB0900145.4, (Apr. 27, 2009), 1 page.
"Search Report", GB Application No. 0900140.5, (May 5, 2009), 3 pages.
"Supplemental Notice of Allowance", U.S. Appl. No. 12/455,100, (Apr. 4, 2013), 2 pages.
"Supplemental Notice of Allowance", U.S. Appl. No. 12/455,100, (May 16, 2013), 2 pages.
"Supplemental Notice of Allowance", U.S. Appl. No. 12/455,157, (Feb. 8, 2013), 2 pages.
"Supplemental Notice of Allowance", U.S. Appl. No. 12/455,157, (Jan. 22, 2013), 2 pages.
"Supplemental Notice of Allowance", U.S. Appl. No. 12/455,478, (Jan. 11, 2013), 2 pages.
"Supplemental Notice of Allowance", U.S. Appl. No. 12/455,478, (Mar. 28, 2013), 3 pages.
"Supplemental Notice of Allowance", U.S. Appl. No. 12/455,712, (Dec. 19, 2012), 2 pages.
"Supplemental Notice of Allowance", U.S. Appl. No. 12/455,712, (Feb. 5, 2013), 2 pages.
"Supplemental Notice of Allowance", U.S. Appl. No. 12/455,712, (Jan. 14, 2013), 2 pages.
"Supplemental Notice of Allowance", U.S. Appl. No. 12/455,752, (Dec. 16, 2013), 2 pages.
"Wideband Coding of Speech at Around 1 kbit/sUsing Adaptive Multi-rate Wideband (AMR-WB)", International Telecommunication Union G.722.2, (2002), pp. 1-65.
Atal, Bishnu S., et al., "Predictive Coding of Speech Signals and Error Criteria", IEEE, Transactions on Acoustics, Speech and Signal Processing, ASSP 27(3), (1979), pp. 247-254.
Chen, Juin-Hwey "Novel Codec Structures for Noise Feedback Coding of Speech", IEEE, (2006), pp. 681-684.
Chen, L "Subframe Interpolation Optimized Coding of LSF Parameters", IEEE, (Jul. 2007), pp. 725-728.
Denckla, Ben "Subtractive Dither for Internet Audio", Journal of the Audio Engineering Society, vol. 46, Issue 7/8, (Jul. 1998), pp. 654-656.
Ferreira, C R., et al., "Modified Interpolation of LSFs Based on Optimization of Distortion Measures", IEEE, (Sep. 2006), pp. 777-782.
Gerzon, et al., "A High-Rate Buried-Data Channel for Audio CD", Journal of Audio Engineering Society, vol. 43, No. 1/2,(Jan. 1995), 22 pages.
Haagen, J et al., "Improvements in 2.4 KBPS High-Quality Speech Coding", IEEE, (Mar. 1992), pp. 145-148.
Islam, T et al., "Partial-Energy Weighted Interpolation of Linear Prediction Coefficients", IEEE, (Sep. 2000), pp. 105-107.
Jayant, N S., et al., "The Application of Dither to the Quantization of Speech Signals", Program of the 84th Meeting of the Acoustical Society of America. (Abstract Only), (Nov-.Dec. 1972), pp. 1293-1304.
Lupini, Peter et al., "A Multi-Mode Variable Rate Celp Coder Based on Frame Classification", Proceedings of the International Conference on Communications (ICC), IEEE 1, (1993), pp. 406-409.
Mahe, G et al., "Quantization Noise Spectral Shaping in Instantaneous Coding of Spectrally Unbalanced Speech Signals", IEEE, Speech Coding Workshop, (2002), pp. 56-58.
Makhoul, John et al., "Adaptive Noise Spectral Shaping and Entropy Coding of Speech", (Feb. 1979), pp. 63-73.
Martins Da Silva, L et al., "Interpolation-Based Differential Vector Coding of Speech LSF Parameters", IEEE, (Nov. 1996), pp. 2049-2052.
Rao, A V., et al., "Pitch Adaptive Windows for Improved Excitation Coding in Low-Rate CELP Coders", IEEE Transactions on Speech and Audio Processing, (Nov. 2003), pp. 648-659.
Salami, R "Design and Description of CS-ACELP: A Toll Quality 8 kb/s Speech Coder", IEEE, 6(2), (Mar. 1998), pp. 116-130.

References: Application No. 0900143
 Application No. 0900143
 Application No. 0900139
 Application No. 0900140
 Application No. 0900141
 Application No. 201080010209
 Application No. 201080010208
 Application No. 0900145
 Application No. 0900140