Voice coder and method

Abstract: This invention relates to a method for a voice coder and a voice coder using the method. The method comprises the steps of: calculating a target signal for a window; and searching candidate optimal codebooks and candidate optimal codebook gains from the target signal for the window, all codebook indices and all codebook optimal gains. This method further has the steps of: calculating target signals for a second subframe from the target signal for the window and candidate optimal codebooks and candidate optimal codebook gains for a first subframe; searching candidate optimal codebooks and candidate optimal codebook gains for the second subframe from the target signal for the second subframe and candidate optimal codebooks and candidate optimal codebook gains for the first subframe; selecting optimal codebook and optimal codebook gain for two subframes respectively from the target signal for the window, candidate optimal gains and all possible quantized gains for the first subframe and candidate optimal codebooks and candidate optimal codebook gains for the second subframe.

Description: The present invention relates to a voice coder and more particularly, to a new codebook search method and system for improving performance of a Code Excited Linear Predictive (CELP) voice coder. A voice coder reduces the amount of data required to support a communication by transmitting a residual signal instead of a complete input voice signals, where the residual signal corresponds to a difference value between a predicted signal derived from previous information and an original input signal. It is possible to predict an input voice signal sample, s(n), during a time interval n of between 30ms and 40ms, using previous voice input signals samples including s(n-1), s(n-2),.... The predicted voice signals derived using previous voice signal samples are expressed according to Equation 1; s' ( n ) = a 1 s ( n -1) + a 2 s ( n - 2) + a 3 s ( n - 3) +... + a 10 s ( n - 10) As a result, s'(n) can be reconstructed just by transmission of the above coefficients instead of requiring transmission of a complete voice signals. A Linear Prediction Coefficient (LPC) filter is used for determining the above coefficients. The LPC filter, also called spectrum filter, uses an auto-correlation technique to determine LPC coefficients up to an order of ten for a time variable n. However, the s'(n) predicted through the above-stated process is not completely identical to the original signal and the pitch of voice is unpredictable. Pitch analysis is performed to obtain information about the pitch period corresponding to a long-term correlation of voice signal. Since pitch periods of voice are variable and are modelled using a codebook, the corresponding pitch period can be found from the codebook by transmission of index for the code book. A pitch filter removes correlation based on pitch period of voiced sound from the residual signal filtered by the LPC filter. The original voice can be reconstructed using the final residual signal, the LPC coefficients and the pitch filter parameters. The LPC coefficients and the pitch filter parameters are determined to minimize the error signal using the input voice signal. The determined LPC coefficients, pitch parameters and residual signals must be quantized for digital transmission. Voice coders are differentiated based on the quantisation of the residual signals. A CELP voice coder uses a codebook to quantize a residual signal. In other words, the CELP voice coder selects the signal closest to the residual signal from among prepared codebook sequences and transmits the codebook index of the selected codebook sequence to a receiver. When the receiver uses the same codebook, the receiver obtains the residual signal using the transmitted index. The CELP voice coder is arranged to produce a signal to optimise given fidelity requirement from among signals by passing excited input signals stored in a codebook through two time-varying linear recursive filters such as a pitch filter and a LPC filter. To determine the fidelity of two signals, mean square errors of the two signals are compared. The CELP voice coder achieves high quality voice by using analysis-by-synthesis, where an input voice signal is analyzed and is compared with synthesized signals using determined parameters. The analysis-by-synthesis comprises calculating a synthesized voice signal over each of all possible codebook excitation sequences and finally selecting the synthesized voice signal closest to the original voice signal. Generally, an input voice signal is divided into subframes, each of which consists of 20 samples (one sample being produces every 0.125ms). One optimal codebook excitation sequence is selected per subframe. Along with a codeword excitation sequence required to synthesize a signal, a quantised codebook gain required to reconstruct a signal is also selected from the codebook. A pitch signal is formed by multiplying codeword selected by using an index with quantised codebook gain also selected by using an index. The transfer function of each filter and the search strategy for codebook excitation sequences and codebook gains are important in a voice coder for coding a voice signal as described above. A codebook gain search, which must be performed for each voice signal sample requires a large amount of computation. Figure 1 is a diagram illustrating a codebook search method and system according to the prior art. It is assumed that the transfer or characteristic functions of an LPC filter, pitch filter and weighting filter are determined as 1/A(z), 1/P(z) and 1/W(z) respectively prior to selecting a codebook. As described in Figure 1, the codebook search system which includes the means for outputting a Zero-Input Response from a pitch filter (S110); receiving the output from the pitch filter and predicting (S120) a voice signal sample using an LPC filter; receiving a value at weighting filter (130) which is produced by subtracting voice signal predictied by an LPC filter (120) from the input voice signal; receiving at an LPC filter (150) the product of all codebook sequences, determined from all codebook indices, and all quantised gains; selecting an optimal codebook sequence and quantised gain using a signal produced by subtracting the output of the LPC filter from an output target signal (1) output from the weighting filter (130) using a minimum mean signal error selector. Firstly, as can be seen from figure 2, the pitch filter at step S110 produces a zero-input response, which is used as an input to an LPC filter (120). After subtracting an output signal of the LPC filter (120) from input voice signal, a weighting filter produces (S130) a target signal (1) using the result of the subtraction. An LPC filter then produces (S150) an output signal (2) by filtering all possible codebook sequences and all quantized gains which have been selected using corresponding codebook indices. A codebook sequence and quantized gain are selected to minimize a mean square error between the target signal (1) and output signal (2). Such procedure is performed for each of the subframes and optimization of codebook sequence and codebook gain is performed based on the difference between the target signal (1) for a subframe and an output signal (2). Thus, the procedure of determining one optimal codebook sequence and quantized gain must be performed for each subframe. As described above, a codebook sequence is determined independently for each subframe by means of optimisation within each subframe. Then, an input voice signal for a current subframe is provided and all previous information is provided as initial values of each filter without or prior to effecting a codebook search. However, a codebook search is performed without any information on the next input voice signal sample. In a voice-varying region, that is, a period over which a voice signal varies significantly (by a predeterminable margin), and particularly in a transient region, for example, a period over which a voice signal varies suddenly, optimization within a short-term subframe doesn't guarantee selection of an optimal codebook sequence. Also, a problem of independent optimization for each subframe is that characteristics of signal at the boundary between subframes are less accurately replicated or modelled. The shorter the subframe, the greater the boundary problem between subframes. EP-A-0573398 (Hughes Aircraft CO), 8 December 1993, and Mano K et al: '4.8 kbit/s delayed decision CELP coder using tree coding, 'ICASSP'90, vol. 1, 3-6 April, 1990, pages 21-24, XP002164738, disclose delayed decision-based CELP coders where a number of candidate excitations for a subframe are computed for every candidate of the preceding subframe. The possible combinations of candidate excitations across subframes are then proved to select a reduced subset of combinations according to a global (frame-based) criterion. A CELP standard voice coder according to the prior art used in a communication system provides poor quality synthesized voice for the above reasons and accordingly provides a poor quality service for the communication system. However, a great deal of money and time are required to set a new standard voice coder, because a large number of mobile stations and base station systems already use the prior art voice coder for providing cellular communication service. It is an object of the present invention to at least mitigate the problem of the prior art. Accordingly, a first aspect of the present invention provides a method for voice coding comprising the steps of: calculating a target signal for a window; the window comprising a first subframe and a second subframe; determining K optimal candidate codebook sequences and K optimal candidate codebook gains for the first subframe from the target signal, all codebook indexes and all optimal codebook gains; calculating K target signals for the second subframe from the target signal and the optimal candidate codebook sequence and optimal candidate codebook gains for the first subframe; determining L optimal candidate codebook sequences and L optimal candidate codebook gains for the second subframe from each of the K target signals for the second subframe thereby producing K x L codebook sequence-codebook gain pairs; selecting an optimal codebook sequence and an optimal codebook gain for the two subframes respectively from said target signal for the window; selecting optimal candidate gains and all possible quantized gains for the first subframe; and selecting an optimal codebook and optimal candidate codebook gains for said second subframe. A second aspect of the present invention provides a vocoder comprising means for calculating a target signal for a window; the window comprising a first subframe and a second subframe; means for determining K optimal candidate codebook sequences and K optimal candidate codebook gains for the first subframe from the target signal, all codebook indexes and all optimal codebook gains; means for calculating K target signals for the second subframe from the target signal and the optimal candidate codebook sequence and optimal candidate codebook gains for the first subframe; means for determining L optimal candidates codebook sequences and L optimal candidate codebook gains for the second subframe from each of the K target signals for the second subframe thereby producing K x L codebook sequence-codebook gain pairs; means for selecting an optimal codebook sequence and an optimal codebook gain for the two subframes respectively from said target signal for the window; means for selecting optimal candidate gains and all possible quantized gains for the first subframe; and means for selecting an optimal codebook and optimal candidate codebook gains for said second subframe. An embodiment of the present invention provides a method for improving performance of voice coder comprises the steps of: calculating a target signal for a window; determining K candidate optimal codebooks and candidate optimal codebook gains for a first subframe from said target signal for a window, all codebook indices and all codebook optimal gains; calculating K target signals for a second subframe from said target signal for a window and said candidate optimal codebooks and candidate optimal codebook gains for a first subframe; determining L candidate optimal codebooks and candidate optimal codebook gains for a second subframe from said target signal for a second subframe and said candidate optimal codebooks and candidate optimal codebook gains for a first subframe; and selecting an optimal codebook and optimal codebook gain for said two subframes respectively from said target signal for a window, said candidate optimal gains and all possible quantized gains for said first subframe and said optimal codebook and candidate optimal codebook gains for said second subframe. Advantageously, the present invention provides a method for performing optimization within two successive subframes preferably simultaneously. More particularly, the method searches codebooks by utilizing information on a next input voice signal sample. A CELP voice coder according to a preferred embodiment of the present invention is compatible with a conventional CELP voice coder and improves voice quality by changing the software of the conventional CELP voice coder. Embodiments of the present invention will now be described, by way of example only, with reference to the accompanying drawings in which: figures 1 and 2 illustrate a prior art codebook search method; figures 3 and 4 illustrate a codebook search method according to a preferred embodiment of the present invention; figures 5 and 6 illustrate an optimal codebook search method over a first subframe; figures 7 and 8 illustrate a method for calculating a target signal for a second subframe; figure 9 and 10 illustrate an optimal codebook search method over a second subframe; and figures 11 and 12 illustrate an optimal codebook and a quantized gain search method according to a preferred embodiment of the present invention. A method of the present invention improves voice quality using a codebook search which uses information on the next input and a simultaneous optimization within two successive subframes. Such improvement of the synthesized voice quality is achieved by codebook search over wider band of voice. Additionally, the present invention provides two methods for a simultaneous optimisation of two successive subframes: one is to reduce the computational burden and the other is to adjust variably the computational burden. Two successive subframes across which a codebook search is performed, is defined as a window. Lc is a time interval of one subframe, and an index of a time axis which runs from 0 to 2Lc-1. A first subframe corresponds to 0, 1, ..., Lc-1 and a second subframe corresponds to Lc, Lc+1, ..., 2Lc-1. K candidate optimal codebook sequences for a first subframe are selected within each window, and L candidate optimal codebook sequences for a second subframe are selected for each of K determined candidate codebook sequences. As a result, K ×L combinations are chosen. A search for all possible quantised codebook gains corresponding to the chosen K×L combination is performed for the window, and optimal codebook sequences combinations and the corresponding quantised gain are determined accordingly. Figures 3 and 4 illustrate a codebook search method according a preferred embodiment of the present invention. As described, the method comprises the steps of: calculating a target signal (11) for a window, the window comprising a first and second subframes at step S210; determining, at step S220, K candidate optimal codebooks sequences (21) and candidate optimal codebook gains (22) for the first subframe from the target signal (11) for the window from all codebook indices and all codebook optimal gains (220); calculating, at step S230, K target signals (31) for a second subframe based upon the target signal (11) of the window and the candidate codebook sequences (21) and candidate codebook gains (22) for the first subframe; determining, at step S240, L candidate codebook sequences (41) and candidate codebook gains (42) for the second subframe from each of the K target signals (31) for the second subframe and the candidate optimal codebooks (21) and candidate optimal codebook gains (22) for the first subframe to produce K x L codebook sequence-codebook gains pairs; and selecting, at step S250, an optimal codebook (51)(52) and optimal codebook gain (53)(54) for the two subframes respectively from the K x L codebook sequence-codebook gain pairs according to predetermined critaria. Preferably, the predetermined criteria include the minimisation of equation 2 described below. It can be seen that L pairs of codebook sequences and gains are calculated for each of the K target signals 31 for a second subframe, ie for each of the K codebook sequence-codebook gain pairs for the first subframe. A codebook search technique will be presently explained with reference to the drawings. A pitch filter produces a zero-input response, which is used as an input to a LPC filter and the LPC filter produces a LPC filtered output signal in the same manner as in the prior art system depicted in figure 1. A subtracter subtracts the output of LPC filter from a voice signal corresponding to two subframes, and the subtracted output is used by a weighting filter, to provide a target signal for a window. The target signal for a window is used for optimal codebooks search for a first subframe. Figures 5 and 6 illustrate a codebook search method for a first subframe according to a preferred embodiment of the present invention. As shown in figures 5 and 6, an LPC filter receives, at step S140, all possible codebooks and codebook gains and produces, at step S150, corresponding filtered output signals. A subtractor calculates, at step S152, a difference value between a target signal (11) for a window and the corresponding filtered output signals and mean a square error selector selects, at steps S160, S222 and S224, a candidate codebook sequence (21) and a codebook gain (22) to minimize the mean square error. This completes the optimization process for the first subframe. The above process determines K candidate optimal codebook sequences and K candidate optimal codebook gains for the first subframe. For selected K pairs of candidate codebook sequences and candidate codebook gains, a target signal corresponding to each second subframe is calculated. Figures 7 and 8 illustrate a calculation method for a second subframe. As illustrated, the method comprises the step of producing, for each candidate codebook sequence, a signal comprising the candidate codebook sequence and a plurality of zeros such that the zeros are located at discrete time locations Lc, Lc+1,..., 2 Lc -1 corresponding to a second subframe, at step S232, for each of the candidate codebooks sequences for a first subframe selected in step 220 and an output signal is produced by passing, at step S236, the above signals through a pitch filter and an LPC filter at step S236. At this time, all the initial values of the pitch filter and LPC filter are set to "0", and filtered. A multiplier multiplies, at step S238, the output signal by an candidate optimal codebook gain for the first subframe. A subtractor subtracts, at step S239, the above result from the target signal and produces a target signal for a second subframe. Figures 9 and 10 illustrate an optimal codebook search method for a second subframe. An LPC filter receives, at step S150, all possible codebook sequences and codebook gains and produces corresponding filtered output signals. A subtractor calculates, at step S152, difference values between the corresponding filtered output signals and each of the K target signals for the second subframe and a minimum mean square error selector selects, at step S160, the subtracted signal having the minimum mean square error. A candidate codebook sequence (41) and a candidate codebook gain (42) are selected at steps S222 and S224 for the second subframe according to the selected subtracted signal having a minimum mean square error. Then, a time axis from 0 to Lc-1 corresponding to a first subframe at each of the candidate codebooks (41) is set to "0". Finally, a search for optimal codebook sequence (51) (52) and optimal codebook gains (53)(54) for the two subframes is performed by utilizing candidate codebook (41) for the second subframe, candidate codebook gains (42) and other information. Figures 11 and 12 illustrate an optimal codebook sequence and optimal codebook gain search method according to a preferred embodiment of the present invention. Candidate codebook sequences (41) for a second subframe are filtered, at step S234, through a pitch filter and, at step S236, an LPC filter. A multiplier multiplies, at step S237, the filtered output signal (55) by all codebook gains Gq2 b for the second subframe and produces an output signal (56). A multiplier multiplies, at step S239, the output signal (32) of step S230 by all possible quantized gains Gq1 a for the first subframe. The result is added, at step S241, to the signal (56) to produce an output signal (57) . A subtractor calculates, at step S243, a difference value between a target signal for the window (11) and the output signal (57) and a mean square error selector selects, at steps S160 and S252, sequence codebooks (51) (52) and gains (53) (54) to minimize mean square error between the target signal and the output signal. The values of k, j, a, and b are determined to minimize the value equation 2, where Equation 2 is where n denotes discrete time samples running from 0 to 2 L c -1; x ( n ) denotes a target signal for a window; U k ( n ) denotes k th candidate optimal codebook sequence for the first subframe; Z j ( n ) denotes j th candidate optimal codebook sequence for the second subframe; Gq 1 a denotes a th quantized candidate codebook gains for a first subframe; and Gq 2 b denotes b th quantized candidate codebook gains for a second subframe. In a preferred embodiment, the present invention simultaneously quantizes two gains per window consisting of two subframes, while a prior art quantization is performed per subframe basis. Consequently, in the procedure to minimize equation 2, all possible quantized gains are not searched, i.e., all values of a and b of k and j respectively are not searched, but only quantized gains having the same positive or negative sign as candidate optimal gains of each codebook (22) and (42) are searched. For example, when an optimal gain for a codebook of first subframe is positive, a search is performed in relation to only positive gains all Gq 2 a values. This method reduces search time to 1/4 of that of the prior art method which searches for all optimal gains. The method according to a preferred embodiment of the present invention firstly determines K and L codebooks respectively for a first subframe and second subframe within a window and later selects one optimal combination from K × L combinations. Since search time depends on K and L accordingly, the present invention adjusts search time per frame by varying K and L. CELP voice coder of the present invention is compatible with a previous standard coder and improves a voice quality without algorithmic delay. While the invention is susceptible to various modification and alternative forms, specific embodiments thereof have been shown by way of example in the drawings and detected description. It should be understood, however, that the present invention is not limited to the particular forms disclosed, but on the contrary, the intention is to cover all modifications, equivalents, and alternative falling within the spirit and scope of the invention as defined by the appended claims.

Claims: A method for voice coding comprising the steps of: calculating a target signal (11) for a window; the window comprising a first subframe and a second subframe; determining K optimal candidate codebook sequences (21)and K optimal candidate codebook gains (22) for the first subframe from the target signal, all codebook indexes and all optimal codebook gains; calculating K target signals (31) for the second subframe from the target signal (11) and the first optimal candidate codebook sequence (21) and optimal candidate codebook gains (22) for the first subframe; determining L optimal candidate codebook sequences (41)and L optimal candidate codebook gains (42) for the second subframe from each of the K target signals (31) for the second subframe thereby producing K x L codebook sequence-codebook gain pairs; selecting an optimal codebook sequence (51)(52) and an optimal codebook gain (53)(54) for the two subframes respectively from said target signal for the window; selecting optimal candidate gains and all possible quantized gains for the first subframe; and selecting an optimal codebook and optimal candidate codebook gains for said second subframe. A method as claimed in claim 1, wherein K and L are variable. A method as claimed in either of claims 1 or 2, wherein the step of determining K candidate codebook sequence (21) and candidate codebook gains (22) for the first subframe, includes the steps of: passing all possible codebook sequences and codebook gains through a Linear Prediction Coefficients (LPC) filter to produce a filtered output signal; calculating, for each codebook sequence-codebook gain pair, a difference value between the filtered output signal and the target signal (11) and selecting K pairs of candidate codebook sequences (21) and candidate codebook gains (22) so as to minimize a mean square error of the difference values. A method as claimed in claim 3, wherein the step of selecting K pairs of candidate codebooks and quantized candidate gains, for said first subframe, is performed within the first subframe. A method as claimed in any preceding claim, wherein the step of calculatng K target signals for the second subframe includes the steps of: producing a zero padded signal by zero padding with zero values at locations corresponding to Lc, Lc+1,..., 2Lc-1, of the second subframe, for each candidate codebook sequence for the first subframe selected in step of determining K candidate codebook sequences and candidate codebook gains; producing an output signal (32) by passing the zero-padded signal through a pitch filter (232) and an LPC filter (234); and determining each of the K target signals for the second subframe by subtracting the output signal multiplied by the candidate gain for the first subframe from the target signals (11). A method as claimed in claim 5, wherein the step of selecting K pairs of candidate codebook sequences and candidate codebook gain, comprises the step of initialising the values of both the pitch filter (232) and the LPC filter (234) to "0". A method as claimed in any preceding claim, wherein the step of determining L candidate codebook sequences and candidate codebook gains for the second subframe includes the step of: passing all possible codebook sequences and codebook gains through an LPC filter to produce filtered output signals; calculating, for each of the K target signals, difference values between the filtered output signals and the target signal for the second subframe and selecting L pairs of candidate codebook sequences (41) and candidate codebook gains (42) so as to minimize a mean square error of the difference values. A method as claimed in any preceding claim, further comprising the step of setting to zero all values of locations 0 to Lc-1, which corresponds to the first subframe selected in the step of determining the K candidate codebook sequence and candidate codebook gains. A method as claimed in any preceding claim wherein the step of selecting a codebook sequence and codebook gain for the two subframes includes the steps of: multiplying each possible codebook gain Gq2 b by pitch filtered and LPC filtered candidate codebook sequences (41) for the second subframe; multiplying all possible codebook gains Gq1 a by each of the K output signals (32) of the step of calculating K target signals for the second subframe and adding the output signal of the multiplying step to the result; and calculating a difference value between the target signal (11) for the window and the output signal (57) of the adding step and selecting a codebook sequence (51)(53) and a codebook gain (52)(54) so as to minimise a mean square error of the difference values. A method as claimed in any preceding claim, wherein the step of selecting a codebook sequence and codebook gain so as to minimise the error comprises the step of calculating values of j, k, a and b are determined so as to minimise where n denotes discrete time samples running from 0 to 2L c - 1; x(n) denotes a target signal for a window; U k (n) denotes k th candidate optimal codebook for a first subframe; Z j (n) denotes j th candidate optimal codebook for a second subframe; Gq1 a denotes a th quantized candidate codebook gains for a first subframe; and Gq2 b denotes b th quantized candidate codebook gains for a second subframe. A method as claimed in claim 10, wherein all Gq1 a and Gq2 b for each of k and j are not searched, but only candidate gains of the same sign as the candidate gains for each subframe are searched. A vocoder comprising means for calculating a target signal (11) for a window; the window comprising a first subframe and a second subframe; means for determining K optimal candidate codebook sequences (21) and K optimal candidate codebook gains (22) for the first subframe from the target signal, all codebook indexes and all optimal codebook gains; means for calculating K target signals (31) for the second subframe from the target signal (11) and the optimal candidate codebook sequence (21) and optimal candidate codebook gains (22) for the first subframe; means for determining L optimal candidates codebook sequences (41) and L optimal candidate codebook gains (42) for the second subframe from each of the K target signals (31) for the second subframe thereby producing K x L codebook sequence-codebook gain pairs; means for selecting an optimal codebook sequence (51)(52) and an optimal codebook gain (53)(54) for the two subframes respectively from said target signal for the window; means for selecting optimal candidate gains and all possible quantized gains for the first subframe; and means for selecting an optimal codebook and optimal candidate codebook gains for said second subframe. A vocoder as claimed in claim 12, wherein K and L are variable. A vocoder as claimed in either of claims 12 or 13, wherein the means for determining K candidate codebook sequence (21) and candidate codebook gains (22) for the first subframe, comprises means for passing all possible codebook sequences and codebook gains through a Linear Prediction Coefficients (LPC) filter to produce a filtered output signal; means for calculating, for each codebook sequence-codebook gain pair, a difference value between the filtered output signal and the target signal (11) and selecting K pairs of candidate codebook sequences (21) and candidate codebook gains (22) so as to minimise a mean square error of the difference values. A vocoder as claimed in claim 14, wherein the means for selecting K pairs of candidate codebooks and quantized candidate gains, for said first subframe, is performed within the first subframe. A vocoder as claimed in any of claims 12 to 15, wherein the means for calculating K target signals for the second subframe comprises means for producing a zero padded signal by zero padding with zero values at locations corresponding to Lc, Lc+1,..., 2Lc-1, of the second subframe, for each candidate codebook sequence for the first subframe selected in step of determining K candidate codebook sequences and candidate codebook gains; means for producing an output signal (32) by passing the zero-padded signal through a pitch filter (232) and an LPC filter (234); means for determining each of the K target signals for the second subframe by subtracting the output signal multiplied by the candidate gain for the first subframe from the target signals (11). A vocoder as claimed in claim 16, wherein the means for selecting K pairs of candidate codebook sequences and candidate codebook gains comprises means for initialising the values of both the pitch filter (232) and the LPC filter (234) to "0". A vocoder as claimed in any of claims 12 to 17, wherein the means for determining L candidate codebook sequences and candidate codebook gains for the second subframe comprises means for passing all possible codebook sequences and codebook gains through an LPC filter to produce filtered output signals; means for calculating, for each of the K target signals, difference values between the filtered output signals and the target signal for the second subframe and selecting L pairs of candidate codebook sequences (41) and candidate codebook gains (42) so as to minimize a mean square error of the difference values. A vocoder as claimed in any of claims 12 to 18, further comprising means for setting to zero all values of locations 0 to Lc-1, which corresponds to the first subframe selected in the step of determining the K candidate codebook sequence and candidate codebook gains. A vocoder as claimed in any of claims 12 to 19, wherein the means for selecting a codebook sequence and codebook gain for the two subframes comprises means for multiplying each possible codebook gain Gq2 b by pitch filtered and LPC filtered candidate codebook sequences (41) for the second subframe; means for multiplying all possible codebook gains Gq1 a by each of the K output signals (32) of the step of calculating K target signals for the second subframe and adding the output signal of the multiplying step to the result; and means for calculating a difference value between the target signal (11) for the window and the output signal (57) of the adding step and selecting a codebook sequence (51)(54) and a codebook gain (52)(54) so as to minimize a mean square error of the difference values. A vocoder as claimed in any of claims 12 to 20, wherein the means for selecting a codebook sequence and codebook gain so as to minimize the error comprises means for calculating values of j, k, a and b are determined so as to minimize where n denotes discrete time samples running from 0 to 2Lc-1; x(n) denotes a target signal for a window; U k (n) denotes k th candidate optimal codebook for a first subframe; Z j (n) denotes j th candidate optimal codebook for a second subframe; Gq1 a denotes a th quantized candidate codebook gains for a first subframe; and Gq2 b denotes b th quantized candidate codebook gains for a second subframe. A vocoder as claimed in claim 21, wherein all Gq1 a and Gq2 b for each of k and j are not searched, but only candidate gains of the same sign as the candidate gains for each subframe are searched.

Inventors: PARK HO-CHONG, PARK, HO-CHONG
Applicants: SAMSUNG ELECTRONICS CO LTD, SAMSUNG ELECTRONICS CO., LTD.
Application year: 1998
Main classification: G10L19
IPC codes: G10L19, H03M7, H03M13