NOT APPLICABLE
The present invention relates generally to telecommunication techniques. More particularly, the invention provides a method and apparatus for fast mapping of Code Excited Linear Prediction (CELP) model parameters. Merely by way of example, the invention has been applied to voice transcoding from one CELP coder/decoder (codec) to another CELP codec, but it would be recognized that the invention has a much broader range of applicability.
Code Excited Linear Prediction (CELP) speech coding techniques are widely used for speech codecs. Such codecs model voice signals as a source filter model. The source/excitation signal is generated via adaptive and fixed codebooks, and the filter is modeled by a short-term linear predictive coder (LPC). The encoded speech is then represented by a set of parameters which specify the filter coefficients and the type of excitation. Parameters of a CELP codec include the line spectral pair (LSP) parameters, adaptive codebook parameters, and fixed codebook parameters.
Industry standards codecs using CELP techniques include Global System for Mobile (GSM) Communications Enhanced Full Rate (EFR) codec, Adaptive Multi-Rate Narrowband (AMR-NB) codec, Adaptive Multi-Rate Wideband (AMR-WB), G.723.1, G.729, Enhanced Variable Rate Codec (EVRC), Selectable Mode Vocoder (SMV), QCELP, and MPEG-4. A transcoding process can convert CELP parameters from one voice compression format to another voice compression format. Some transcoding techniques fully decode the compressed signal back to a Pulse-Code Modulation (PCM) representation and then re-encode the signal. These techniques usually use a large amount of processing and incur significant delays. Other transcoding techniques convert CELP parameters from one compression format to the other while remaining in the parameter space. These techniques usually use complex computation that is prone to overflow errors.
Hence it is desirable to improve CELP transcoding techniques.
The present invention relates generally to telecommunication techniques. More particularly, the invention provides a method and apparatus for fast mapping of Code Excited Linear Prediction (CELP) model parameters. Merely by way of example, the invention has been applied to voice transcoding from one CELP coder/decoder (codec) to another CELP codec, but it would be recognized that the invention has a much broader range of applicability.
According to an embodiment of the present invention, an apparatus for mapping CELP parameters in voice transcoders receives as input source codec CELP parameters and intermediate signals that have been interpolated to match the frame size, subframe size or other characteristic of the destination codec. The apparatus includes a LSP mapping module that maps interpolated LSP parameters to quantized LSP parameters, an adaptive codebook mapping module that maps the interpolated adaptive codebook parameters in a fast manner to produce quantized adaptive codebook parameters, and a fixed codebook mapping module that maps the interpolated fixed codebook parameters in a fast manner to produce quantized fixed codebook parameters. The LSP mapping module checks the interpolated LSP parameters for potential signal overflow when the transcoded signal is to be decoded by a device or system, adjusts the LSP parameters if signal overflow is predicted, and quantizes the LSP parameters. The adaptive codebook mapping module generates an adaptive codebook target signal, generates adaptive codebook candidate vector signals from the adaptive codebook for one or more candidate pitch lag values, computes a reduced set of auto-correlation and cross-correlation dot product terms of the adaptive codebook target signal and the candidate signals, and searches one or more entries of a simplified gain vector-quantized codebook for the entry that provides the maximum dot product with the vector of auto-correlation and cross-correlation dot product terms. The fixed-codebook mapping module generates a fixed codebook target signal, processes the fixed codebook target signal to create a modified target signal, performs a very fast pulse search to find initial pulse positions and signs which are used to estimate the fixed codebook gain, searches the algebraic codebook again using a fast pulse position searching technique, constructs the fixed codevector and outputs the fixed codebook indices.
According to another embodiment of the present invention, the method for mapping CELP parameters in voice transcoders includes mapping the interpolated LSP parameters into quantized LSP parameters of the destination codec, mapping the interpolated adaptive codebook parameters into quantized adaptive codebook parameters, and mapping the interpolated fixed codebook parameters into quantized fixed codebook parameters.
According to yet another embodiment of the present invention, the method for constructing a simplified pitch gain codebook for the adaptive codebook mapping. The method includes grouping gain product terms and reducing the size of the pitch gain codebook.
According to yet another embodiment of the present invention, a method for fast pulse position searching of the fixed algebraic codebook includes selecting the next track to search, locating positions for one or more pulses, subtracting the contribution of pulses in the current track from the target, and processing the target signal for the search for the remaining pulses.
According to yet another embodiment of the present invention, an apparatus for mapping CELP parameters between a source codec and a destination codec includes an LSP mapping module, an adaptive codebook mapping module coupled to the LSP mapping module, and a fixed codebook mapping module coupled to the LSP mapping module and the adaptive codebook mapping module. The LSP mapping module includes an LP overflow module configured to process information associated with a plurality of interpolated LSP parameters and generate an overflow signal based on at least information associated with the plurality of interpolated LSP parameters. Additionally, the LSP mapping module includes an LSP parameter modification module configured to modify at least one frequency of at least one of the plurality of interpolated LSP parameters in response to the overflow signal. The adaptive codebook mapping module includes a first pitch gain codebook. The first pitch gain codebook includes a first plurality of entries. Each of the first plurality of entries includes a plurality of terms and a plurality of sums associated with the plurality of terms. The fixed codebook mapping module includes a first target processing module configured to process a first target signal and generate a first modified target signal. Additionally, the fixed codebook mapping module includes a pulse search module configured to locate a first plurality of pulse positions and signs for a plurality of pulses in a subframe based on at least information associated with the first modified target signal. Moreover, the fixed codebook mapping module includes a fixed codebook gain estimation module configured to estimate a fixed codebook gain for the subframe based on at least information associated with the first plurality of pulse positions and signs. Also the fixed codebook mapping module includes a pulse position searching module configured to receive the first modified target signal, an impulse response signal and the estimated fixed codebook gain and to output a second plurality of pulse positions and signs for the plurality of pulses.
According to yet another embodiment of the present invention, an apparatus for mapping LSP parameters between a source codec and a destination codec includes an LP overflow module configured to process information associated with a plurality of interpolated LSP parameters and generate an overflow signal based on at least information associated with the plurality of interpolated LSP parameters. Additionally, the apparatus includes an LSP parameter modification module configured to modify at least one frequency of at least one of the plurality of interpolated LSP parameters in response to the overflow signal. Moreover, the apparatus includes a LSP quantization module configured to quantize the plurality of interpolated LSP parameters based on at least information associated with a plurality of quantization tables related to a destination codec. Also the apparatus includes an LSP decoder and stability check module configured to decode the quantized plurality of interpolated LSP parameters.
According to yet another embodiment of the present invention, an apparatus for mapping adaptive codebooks between a source codec and a destination codec includes an adaptive codebook target generation module configured to generate a target signal, and a pitch gain codebook. The pitch gain codebook includes a plurality of entries. Each of the plurality of entries includes a plurality of terms and a plurality of sums associated with the plurality of terms. Moreover, the apparatus includes a candidate lag selection module configured to receive an open-loop pitch lag and generate a candidate pitch lag value. Also the apparatus includes a candidate vector signal generation module configured to generate a plurality of candidate signals based on at least information associated with the adaptive codebook and the candidate pitch lag value. Additionally, the apparatus includes an auto-correlation and cross-correlation module configured to calculate a set of dot products of the target signal and delayed versions of the plurality of candidate signals or of the delayed versions of the plurality of candidate signals, and to output a vector signal associated with at least the set of dot products. Moreover, the apparatus includes a gain codevector selection module configured to receive the vector signal, to compute a dot product of an entry associated with the pitch gain codebook and the received vector signal, processing at least information associated with the dot product and a predetermined value, and output an index of a selected codevector and an adaptive codebook pitch lag associated with the selected codevector. Also the apparatus includes a buffer module to store the index of the selected codevector and the adaptive codebook pitch lag.
According to yet another embodiment of the present invention, an apparatus for mapping fixed codebooks between a source codec and a destination codec includes a fixed codebook target generation module configured to generate a target signal, and a target processing module configured to process the target signal and generate a first modified target signal. Additionally, the apparatus includes a pulse search module configured to locate a first plurality of pulse positions and signs for a plurality of pulses in a subframe based on at least information associated with the first modified target signal. Moreover, the apparatus includes a fixed codebook gain estimation module configured to estimate a fixed codebook gain for the subframe based on at least information associated with the first plurality of pulse positions and signs. Also the apparatus includes a pulse position searching module configured to receive the first modified target signal, an impulse response signal and the estimated fixed codebook gain and to output a second plurality of pulse positions and signs for the plurality of pulses. Additionally, the apparatus includes a codevector construction module configured to receive the second plurality of pulse positions and signs, to generate a fixed codebook vector, and to determine the fixed codebook indices for the subframe.
According to yet another embodiment of the present invention, a method for mapping CELP parameters between a source codec and a destination codec includes receiving a plurality of interpolated LSP parameters, a plurality of interpolated adaptive codebook parameters, and a plurality of interpolated fixed codebook parameters. Additionally, the method includes generating a plurality of quantized LSP parameters based on at least information associated with the plurality of interpolated LSP parameters, generating a plurality of quantized adaptive codebook parameters based on at least information associated with the plurality of interpolated adaptive codebook parameters, and generating a plurality of quantized fixed codebook parameters based on at least information associated with the plurality of interpolated fixed codebook parameters. The generating a plurality of quantized LSP parameters includes generating an overflow signal based on at least information associated with the plurality of interpolated LSP parameters. The generating a plurality of quantized adaptive codebook parameters includes estimating a dot product of an entry associated with a pitch gain codebook and a vector signal. The pitch gain codebook includes a plurality of entries. Each of the plurality of entries includes a plurality of terms and a plurality of sums associated with the plurality of terms. The generating a plurality of quantized fixed codebook parameters includes generating a first modified target signal based on at least information associated with a first target signal, locating a first plurality of pulse positions and signs for a plurality of pulses in a subframe based on at least information associated with the first modified target signal, estimating a fixed codebook gain for the subframe based on at least information associated with the first plurality of pulse positions and signs, and generating a second plurality of pulse positions and signs for the plurality of pulses based on at least information associated with the first modified target signal, an impulse response signal and the estimated fixed codebook gain.
Numerous benefits are achieved using the present invention over other techniques. Certain embodiments of the present invention provides an apparatus and method for fast LSP mapping, fast adaptive codebook mapping, and fast fixed codebook mapping. The apparatus and method can adjust mapped linear prediction parameters to prevent signal overflow in the decoder of a destination codec. Some embodiments of the present invention can reduce the amount of computation and the complexity of computational complexity. For example, computations for testing candidate codevectors is reduced, or computations for generating entries for the pitch gain codebook is reduced. In certain embodiments of the present invention, the amount of memory needed is also reduced. For example, the simplified pitch gain codebook contains fewer elements in each codevector entry. In some embodiments of the present invention, the auto-correlation and cross-correlation computation unit outputs a reduced length vector of dot-product elements in a format that matches the terms in the entries of the simplified pitch gain codebook. In certain embodiments, the complexity of the adaptive codebook search of the present invention is lower than the complexity of other adaptive codebook searches due to the simplification of the pitch gain codebook, the reduction in the number of computed correlation dot products, the reduction in the number of computed residual signals and the reduction in the number of computed delayed weighted synthesis signals.
Depending upon the embodiment under consideration, one or more of these benefits may be achieved. These benefits and various additional objects, features and advantages of the present invention can be fully appreciated with reference to the detailed description and accompanying drawings that follow.
The present invention relates generally to telecommunication techniques. More particularly, the invention provides a method and apparatus for fast mapping of Code Excited Linear Prediction (CELP) model parameters. Merely by way of example, the invention has been applied to voice transcoding from one CELP coder/decoder (codec) to another CELP codec, but it would be recognized that the invention has a much broader range of applicability.
In one example, fast mapping techniques are applied to each of these modules in order to decrease the computational requirements for mapping, without degrading the signal quality. These techniques include fast processes for the adaptive codebook mapping and fixed codebook mapping. Additionally, these techniques include a method to prevent signal overflow due to fast mapping of the LSP parameters from source-to-destination codec. These techniques can be used together, or in conjunction with other parameter mapping techniques. For example, the CELP parameter mapping modules 200 are used as the CELP parameter mapping modules 130.
In efficient transcoding from one linear prediction-based speech codec to another linear prediction-based speech codec, interpolation of the line spectral pair (LSP) parameters from source-to-destination codec is often used. This removes the need to recalculate the linear prediction (LP) parameters. Since different codecs may use a different frame length, subframe length, look-ahead delay, prediction order, bandwidth extension or type of LP analysis window, the LSP parameters from one codec may not be suited to another codec. In some cases, decoded LSP parameters from one codec that are interpolated and used to reconstruct speech in a second codec may cause quality degradation or even signal overflow due to unmatched LP analysis.
The LP coefficients are converted to LSP coefficients by searching along the unit circle and interpolating for zero crossings. LSPs can be converted to line spectral frequencies (LSFs) in Hz in the range [0, fs/2] by the following relation:
where fs is the sampling frequency and N is the prediction order. LSFs that are close to each other in frequency cause a sharp resonance in the LP filter which can lead to signal overflow. In many CELP-based speech codecs, a check is performed to test the LP filter stability. This makes sure that the LSFs are properly ordered and that there is a minimum distance, Δmin, between adjacent LSFs. A typical filter stability criterion is:
LSFj+1−LSFj≧Δmin, 1≦j≦N−1, (Equation 2)
However, in transcoding from one codec to another, signal overflow can occur even if the stability criteria of both codecs are satisfied. This is apparent when fixed-point implementations of the speech decoders are applied.
For example, in a GSM-AMR to G.723.1 transcoder, the LSFs are linearly interpolated to compensate for the 20 ms frame size of GSM-AMR and 30 ms frame size of G.723.1. The interpolated LSFs are then quantized by G.723.1 and output to the bitstream. However, when the LSFs are decoded by a G.723.1 standard fixed-point implementation decoder, the unmatched LP analysis can cause the intermediate variables of the LSP-to-linear prediction coefficient (LPC) conversion in the G.723.1 decoder to overflow, even though the stability criteria of both GSM-AMR and G.723.1 are satisfied. Preventative measures need to be taken during transcoding to avoid signal overflow in the decoder.
The fast LSP mapping module 300 performs the conversion from source-to-destination codec interpolated LSP parameters to destination codec quantized LSP parameters. Additionally, the module 300 can detect potential decoder overflow situations and make LSF adjustment to avoid such signal overflow due to interpolated LSFs.
As shown in
At the processes 430 and 440, E1 is compared with Thr1 and E2 is compared with Thr2 respectively. If E1>Thr1 or E2>Thr2, where Thr1 and Thr2 are predefined thresholds, signal overflow is predicted to occur in the decoder and the LSPs are then modified at the process 450 in the LSP parameter modification module 320. If E1>Thr1, at least one frequency of at least one of the interpolated LSPs is increased. If E2>Thr2, at least one frequency of at least one of the interpolated LSPs is decreased.
At the process 460, the LSP parameters are then quantized using the quantization tables and method of the destination codec by the LPS quantization module 330. At the processes 470 and 480, the quantized LSP parameters are decoded and a stability check is performed by the LSP decoder and stability check module 340. The stability check can usually ensure the correct ordering and minimum frequency spacing between adjacent LSPs. The decoded destination codec LSP parameters are used in further processing within a transcoder. For example, the fast LSP mapping module 300 is used as the fast LSP mapping module 210.
A 10th order linear prediction filter is commonly used in speech codecs with a sampling frequency of 8 kHz.
Certain embodiments of the present invention also provide a method and apparatus for performing a fast adaptive codebook mapping technique in voice transcoding. Multi-tap pitch prediction filters are used in some CELP-based speech coders such as ITU-T Recommendation G.723.1. The multi-tap pitch predictor achieves higher prediction gain than a single-tap predictor as its frequency response can interpolate between integer lags.
where βj are the pitch predictor coefficients, N is the number of filter taps and L is the pitch lag. In CELP coding, a target signal, s(n), is generated, which may be in the speech domain, the excitation domain, or in the filtered excitation domain. In the excitation domain, the short-term linear-prediction contribution is removed. The error signal between the target signal, s(n), and the pitch prediction contribution for a subframe of length lsf is given by
where s′(n) may be a delayed version of the target signal, or obtained by filtering the adaptive codebook signal or past excitation signal by the weighted impulse response. The mean squared error, ε, can be written as
To further expand the above equation, we can obtain:
where RSS(x, y), RSS′(x, y), RS′S′(x, y) are the auto-correlation and cross-correlation dot product terms as follows:
As shown in
In certain embodiments of the present invention, the complexity required to minimize the prediction error during encoding of the pitch parameters is reduced. The method is applied to speech coders that use a multi-tap pitch filter and a codebook of gain coefficients and pre-computed gain product terms. The method includes grouping similar RS′S(i, j) terms together. In a specific embodiment, auto-correlation dot product terms for common lag differences are grouped together. For example, if the pitch predictor has 5 taps, the RS′S(i, j) terms can be grouped as follows:
This arrangement groups autocorrelation dot-products of components with similar lag differences. In a further specific embodiment, the RS′S(i, j) terms within the same group can be assumed to be approximately equal. Therefore, instead of calculating 15 RS′S(i, j) terms, only 5 terms are required. Therefore, the RSS vector would contain only 10 terms.
As discussed above, the number of elements in each codevector of the simplified gain codebook 1010, CL′ as shown in
The adaptive codebook 1094 stores a plurality of excitation signals. The candidate lag selection module 1093 receives an open-loop pitch lag and generates a candidate pitch lag value. Based on at least information associated with the adaptive codebook 1094 and the candidate pitch lag value, the candidate vector signal generation module 1095 outputs a plurality of candidate signals. For example, the plurality of candidate signals are associated with a residual domain target signal and free from a synthesis. The adaptive codebook target generation module 1099 generates an adaptive codebook target signal. For example, the adaptive codebook target signal in a speech domain, a weighted speech domain, an excitation domain, or a filtered excitation domain. The auto-correlation and cross-correlation module 1096 performs a reduced set of dot products and produces a RSS vector 1097. In one example, the RSS vector 1097 is the same as the RSS vector 1070. The RSS vector 1097 is passed to the gain codevector selection module 1092, which searches at least one index of the gain codebook 1091 to find the index of the best gain codevector, kbest. The candidate pitch lag value that produced this RSS value is lagbest. kbest and lagbest are associated with an entry in the gain codebook 1091 and the candidate lag derived by the candidate lag selection 1093 that provides the maximum dot product with the vector of auto-correlation and cross-correlation dot product terms.
The storage requirements for the pitch gain codebook and the number of multiplications required to test each candidate codebook vector are reduced by
and the number of dot product terms and synthesized residual signals that need to be calculated are reduced by
In one example, the method 1100 to determine the pitch parameters is implemented by the fast adaptive codebook mapping module 1000.
According an embodiment of the present invention, the pitch gain codebook 1210 is reconstructed so that each entry has only 10 elements, as depicted for an 85-entry pitch gain codebook 1220 in
For each entry of the pitch gain codebook 1210, the last 5 elements are calculated by summing the appropriate terms of the pitch gain codebook 1210. The resulting simplified pitch gain codebook 1220 has the following format:
This approximation and simplification halves the memory storage requirements for the pitch gain codebook, halves the number of multiplications and additions required to test each codebook candidate and reduces the number of RS′S(i, j) dot-product terms and synthesized residual signals that need to be calculated by a factor of 3.
The following equation is maximized during the fast adaptive codebook search
where Ci are the ith elements of an entry in the simplified gain codebook. The RS′S(i, j) terms are chosen to be representative of their respective group, and may be substituted with another auto-correlation dot product term of the same group.
Certain embodiments of the present invention also provide a method and apparatus for a fast fixed codebook mapping technique in voice transcoders. Some CELP speech coding algorithms use algebraic-structured fixed codebooks to reduce the amount of storage memory required. Algebraic codevectors are sparse and have pulses with amplitudes of ±1 at certain positions. The number of pulses and candidate pulse locations for the codevector varies between coding algorithms.
For example, potential pulse positions for each pulse in the subframe are shown in Tables 1 and 2 for GSM-AMR 12.2 kbps and 10.2 kbps modes respectively.
In these cases, the tracks are interleaved, and do not share common pulse positions. As shown in Table 1, for the 12.2 kbps mode, there are 5 tracks within the 40 sample subframe, with 8 possible pulse positions in each track. The codevector has 10 pulses, with 2 pulses located in each track. As shown in Table 2, for the 10.2 kbps mode, there are 4 tracks within the 40 sample subframe, with 2 pulses allowed per track.
where d=Htx2 is the correlation between the target signal and the impulse response of the weighted synthesis filter, h(n), H=hTh is the lower triangular Toeplitz matrix with diagonal h(0) and lower diagonals h(1), . . . , h(39), ck is the codevector with index k, and Φ=HTH is the autocorrelation matrix of h(n). The computational load is often measured by the number of Tk computations, or candidates tested. The full ACELP search is highly computationally demanding and the complexity of the search can be reduced by testing a smaller number of codebook candidates. The different algebraic structures and number of pulses per codevector differs between standards, as well as the search method applied in each standard to reduce the complexity. For example, G.729 uses a focused search and 1440 candidates are tested out of a possible 8192 candidates. GSM-AMR uses a depth-first tree search after fixing the first pulse at the local maximum, and the number of candidates tested for the highest mode is 1024. Even with these fast approaches, the computational complexity is still large and up to 40% of the total computational complexity of the transcoder.
In one example, the module 1400 performs fast fixed codebook mapping on each subframe of the target signal. In another example, the fast fixed codebook mapping module 1400 is used as the fast fixed codebook mapping module 230. For example, the fixed codebook mapping module 1400 is associated with a fixed codebook, the fixed codebook being an algebraic fixed codebook or a multi-pulse fixed codebook. In another example, the fixed codebook mapping module 1400 is associated with a destination codec including a sparse fixed codebook.
A fixed codebook target signal 1460, x2(n), may be generated by a fixed codebook target generation module. For example, the target signal 1460 is in a speech domain, a weighted speech domain, an excitation domain, or a filtered excitation domain. The signal 1460 is correlated with an impulse response signal 1462, h(n), of the LP filter to form a modified target signal 1464, A(n), in the target processing module 1410 as follows:
A(n)=Σx2(j)·h(j+n), n=0, . . . , lsf (Equation 14)
The fast pulse search module 1420 then takes the modified target signal 1464, A(n), and sets the locations for all Np pulses required in the codevector at the Pt highest positions of the relevant codebook track, where Pt is the number of non-zero pulses allowed in track t. The signs of the pulses are set to the sign of A(n) at the pulse location. These initial values 1466 for pulse locations and signs are then used to form an estimate of the fixed codebook gain, gest, by the FCB gain estimation module 1430. The fixed codebook gain estimate 1468, the modified target signal 1464, and an impulse response signal 1470 are then used in the fast pulse position searching module 1440, which determines the final pulse locations and signs 1472. The impulse signal 1470 may be the same as or different from the impulse signal 1462. Finally, a signal 1474 for fixed codeword vector and indices of the fixed codebook is constructed by the codevector construction module 1450. The signal 1474 is output to the bitstream.
The track selection module 1510 is optional, and can be tuned so that pulses or tracks are searched in a particular order. For example, it may be desirable to set pulses in tracks with the highest amplitude sample or highest energy first. The single track pulse search module 1520 takes as input a modified target signal 1550, A(n) and the track number, t, which defines the candidate pulse positions in the subframe and locates the position of the Pt largest samples. The target update module 1530 determines the speech domain contribution of the Pt pulses of the current track by convolving them with an impulse response signal 1560, h(n), and adjusting the gain using gest. Since in ACELP, the pulses are simple impulses of amplitude +1 or −1, their speech domain contribution is simply the sum of the Pt impulses, located at the chosen positions and gain-adjusted. This contribution is subtracted from the fixed codebook target signal 1460, x2(n). The target processing module 1540 generates another modified target signal 1570 by correlating the result with the impulse response signal 1560. The modified target signal 1570 may be used as an input to the track selection module 1510 and the signal track pulse search module 1520 as the modified target signal 1550 for further processing. The buffer module stores the positions and signs of the tracks which have been searched, and outputs the positions and signs of all pulses in the subframe once all tracks have been searched.
Depending on the voice coding standard, the effect of forward and or backward pulse enhancements may be included.
Since the search algorithm of an embodiment of the present invention searches Pt pulses at once in a single track, a modified constraint for multiple pulses in the same location may be applied if the codec standard permits. The algorithm may also be modified to only select one pulse position in each iteration, rather than all pulses in the track.
As an example, the fast pulse position search method 1600 is applied to the 12.2 kbps mode of GSM-AMR in a G.723.1 to GSM-AMR transcoder. Using the search procedure according to one embodiment of the present invention, only five correlations and four convolutions are required per subframe to determine the pulse positions and signs for the 10-pulse codevector. The five correlations correspond to one correlation per track, and the four convolutions correspond to one convolution per track except for the last track. The convolution is simplified as one signal in the convolution has only two non-zero samples. The signal is a vector containing only the pulses in the current track, ctemp(n). However, the correlation is between two non-sparse vectors of subframe length lsf=40. This usually requires considerable multiplication/addition operations. By taking advantage of previously calculated values and the ability to change the order of operations, the algorithm implementation can be simplified. Instead of performing the calculations in Equations 14 through 16, the following shortcut can be used. The difference b(n) between A(n) and the updated A(n) is the correlation of the filtered, gain adjusted ctemp(n) with h(n).
First, b(n)=gest·Σctemp′filt(j)·h(j+n), n=0, . . . , lsf, (Equation 17)
where ctemp′filt(n)=Σctemp(j)·h(n−j), n=0, . . . , lsf, (Equation 18)
Hence, computations can be reduced by subtracting b(n) from A(n) as follows:
A(n)←A(n)−b(n), n=0, . . . , lsf, (Equation 19)
To further reduce computational complexity, Equation 17 can be rearranged to
b(n)=gest·Σctemp(j)·autocorrh(n−j), n=0, . . . , lsf, (Equation 20)
where autocorrh(n)=Σh(j)·h(j+n), n=0, . . . , lsf, (Equation 21)
The autocorrelation of h(n), autocorrh(n), can be pre-computed at the beginning of every subframe. Thus, b(n) can be efficiently calculated requiring only a convolution between a pre-computed vector and ctemp(n), which has only 2 non-zero pulses. This reduces the computations to only one autocorrelation, one cross-correlation, and four “convolutions” with a sparse vector, ctemp(n) per subframe.
In a specific embodiment, the two pulses in the track can be located in the same position if certain criteria are met. The criteria may take a number of forms, for example, if the amplitude of the highest pulse in the track is more than 0.9 times the maximum target amplitude considering all tracks in the subframe and more than 10 times the amplitude of the other pulse.
The fast fixed codebook search method according to certain embodiments of the present invention may be applied to CELP coders with algebraic codebooks, or those with sparse multi-pulse coders that can be adapted to have an algebraic-like structure. The method can achieve reduced complexity compared to other search methods, without requiring numerous combinations of pulse positions to be tested.
The CELP parameter mapping according to certain embodiments of the present invention may be applied to at least CELP-based voice codecs, and voice transcoders between the existing codecs G.723.1, GSM-AMR, EVRC, G.728, G.729, G.729A, QCELP, MPEG-4 CELP, SMV, AMR-WB, and VMR. In some embodiments of the present invention, the fast fixed codebook mapping module can be adapted to suit an algebraic or multi-pulse fixed codebook with any track orientation, number of pulses, and subframe size. In certain embodiments of the present invention, the fast fixed codebook mapping module is applicable in any transcoder framework where the destination codec uses a sparse fixed codebook. In some embodiments of the present invention, the fast adaptive codebook mapping module is applicable in any transcoder framework where the destination codec uses a multi-tap pitch filter. In certain embodiments of the present invention, the LSP parameter mapping module, the fast fixed codebook mapping module, and the fast adaptive codebook mapping module operate independently of each other.
Numerous benefits are achieved using the present invention over other techniques. Certain embodiments of the present invention provides an apparatus and method for fast LSP mapping, fast adaptive codebook mapping, and fast fixed codebook mapping. The apparatus and method can adjust mapped linear prediction parameters to prevent signal overflow in the decoder of a destination codec. Some embodiments of the present invention can reduce the amount of computation and the complexity of computational complexity. For example, computations for testing candidate codevectors is reduced, or computations for generating entries for the pitch gain codebook is reduced. In certain embodiments of the present invention, the amount of memory needed is also reduced. For example, the simplified pitch gain codebook contains fewer elements in each codevector entry. In some embodiments of the present invention, the auto-correlation and cross-correlation computation unit outputs a reduced length vector of dot-product elements in a format that matches the terms in the entries of the simplified pitch gain codebook. In certain embodiments, the complexity of the adaptive codebook search of the present invention is lower than the complexity of other adaptive codebook searches due to the simplification of the pitch gain codebook, the reduction in the number of computed correlation dot products, the reduction in the number of computed residual signals and the reduction in the number of computed delayed weighted synthesis signals.
Although specific embodiments of the present invention have been described, it will be understood by those of skill in the art that there are other embodiments that are equivalent to the described embodiments. Accordingly, it is to be understood that the invention is not to be limited by the specific illustrated embodiments, but only by the scope of the appended claims.
This application claims priority to U.S. Provisional Nos. 60/421,446 filed Oct. 25, 2002, 60/421,449 filed Oct. 25, 2002, and 60/421,270 filed Oct. 25, 2002, which are incorporated by reference herein.
Number | Name | Date | Kind |
---|---|---|---|
5457685 | Champion | Oct 1995 | A |
5802487 | Tanaka | Sep 1998 | A |
5995923 | Mermelstein et al. | Nov 1999 | A |
6157907 | Taori et al. | Dec 2000 | A |
20030028386 | Zinser et al. | Feb 2003 | A1 |
20030065508 | Tsuchinaga et al. | Apr 2003 | A1 |
20040158647 | Omura | Aug 2004 | A1 |
Number | Date | Country |
---|---|---|
WO 9966494 | Dec 1999 | WO |
WO 02080147 | Oct 2002 | WO |
Number | Date | Country | |
---|---|---|---|
20040172402 A1 | Sep 2004 | US |
Number | Date | Country | |
---|---|---|---|
60421446 | Oct 2002 | US | |
60421449 | Oct 2002 | US | |
60421270 | Oct 2002 | US |