An apparatus for processing adaptive codebook pitch lag from one CELP based standard to another CELP based standard. The apparatus has various modules that perform at least the functionality described herein. The apparatus includes a time-base subframe checker inspection module, which is adapted to associate...http://www.google.fr/patents/US7996217?utm_source=gb-gplus-shareBrevet US7996217 - Method for adaptive codebook pitch-lag computation in audio transcoders

An apparatus for processing adaptive codebook pitch lag from one CELP based standard to another CELP based standard. The apparatus has various modules that perform at least the functionality described herein. The apparatus includes a time-base subframe checker inspection module, which is adapted to associate one or more incoming subframes with an outgoing subframes of a destination codec. The apparatus also has a decision module coupled to the time-base subframe inspection module. The decision module is adapted to determine a desired pitch lag parameter from a plurality of pitch lag parameters among respective two or more incoming subframes. The apparatus has a pitch lag selection module coupled to the decision module. The pitch lag selection module is adapted to select the desired pitch lag parameter.

Images(6)

Revendications(23)

1. A method for processing a pitch lag from a source audio codec to a destination audio codec, the method comprising:

receiving a first source subframe having a first pitch lag and a second source subframe having a second pitch lag, wherein a subframe length of the source audio codec is unequal to a subframe length of the destination audio codec;

determining whether a destination subframe is wholly covered by the first source subframe; and

outputting a pitch lag for the destination subframe generated from a first function if the destination subframe is wholly covered by the first source subframe, wherein the first function utilizes the first pitch lag as an input, or

outputting a pitch lag for the destination subframe generated from a second function if the destination subframe is covered by the first source subframe and the second source subframe, wherein the second function utilizes the first pitch lag and the second pitch lag as inputs.

2. The method of claim 1 wherein the first function is a same function as the second function.

3. The method of claim 1 wherein the first function outputs the first pitch lag.

4. The method of claim 1 wherein the destination subframe is wholly covered by the first source subframe and the first function outputs a generated pitch lag that is different from the first pitch lag if the first pitch lag is not within an allowed range for pitch lags of the destination audio codec.

5. The method of claim 1 wherein the first function outputs a generated pitch lag that is twice the first pitch lag or is substantially equal to half the first pitch lag.

6. The method of claim 1 wherein the destination subframe is covered by the first source subframe and the second source subframe and the second function outputs the first pitch lag or the second pitch lag or twice the first pitch lag or twice the second pitch lag or outputs a generated pitch lag that is substantially equal to half the first pitch lag or half the second pitch lag.

7. The method of claim 1 wherein source audio codec or the destination audio codec is one of G.723.1, GSM-AMR or EVRC.

8. The method of claim 1 wherein the source audio codec has a different sampling rate as the destination audio codec.

9. The method of claim 1 wherein the method is performed free from an open-book search and a closed-book search or is performed without reconstructing an audio signal.

10. The method of claim 1 wherein the source audio codec has a different subframe size than the destination audio codec.

11. The method of claim 1 wherein a pitch lag is characterized by a period of time.

12. The method of claim 1 wherein the source audio codec and the destination audio codec are both speech codecs or are both CELP based voice codecs.

13. A non-transitory computer-readable medium storing a plurality of instructions for controlling a data processor to process a pitch lag from a source audio codec to a destination audio codec, the plurality of instructions comprising:

instructions that cause the data processor to receive a first source subframe having a first pitch lag and a second source subframe having a second pitch lag, wherein a subframe length of the source audio codec is unequal to a subframe length of the destination audio codec; and

instructions that cause the data processor to determine whether a destination subframe is wholly covered by the first source subframe; and

instructions that cause the data processor to output a pitch lag for the destination subframe generated from a first function if the destination subframe is wholly covered by the first source subframe, wherein the first function utilizes the first pitch lag as an input, or

instructions that cause the data processor to output a pitch lag for the destination subframe generated from a second function if the destination subframe is covered by the first source subframe and the second source subframe, wherein the second function utilizes the first pitch lag and the second pitch lag as inputs.

14. The non-transitory computer-readable medium of claim 13 wherein the first function is a same function as the second function.

15. The non-transitory computer-readable medium of claim 13 wherein the first function outputs the first pitch lag.

16. The non-transitory computer-readable medium of claim 13 wherein the first function outputs a generated pitch lag that is different from the first pitch lag if the first pitch lag is not within an allowed range for pitch lags of the destination audio codec.

17. The non-transitory computer-readable medium of claim 16 wherein the first function outputs a generated pitch lag that is twice the first pitch lag or outputs a generated pitch lag that is substantially equal to half the first pitch lag.

18. The non-transitory computer-readable medium of claim 13 wherein the destination subframe is covered by the first source subframe and the second source subframe and the second function outputs the first pitch lag or the second pitch lag or twice the first pitch lag or twice the second pitch lag or the second function outputs a generated pitch lag that is substantially equal to half the first pitch lag or half the second pitch lag.

19. The non-transitory computer-readable medium of claim 13 wherein the source audio codec has a different sampling rate as the destination audio codec.

20. The non-transitory computer-readable medium of claim 13 wherein processing the pitch lag from the source audio codec to the destination audio codec is performed free from an open-loop search and a closed-loop search or is performed without reconstructing an audio signal.

21. The non-transitory computer-readable medium of claim 13 wherein the source audio codec has a different subframe size than the destination audio codec.

22. The non-transitory computer-readable medium of claim 13 wherein a pitch lag is characterized by a period of time.

23. The non-transitory computer-readable medium of claim 13 wherein the source audio codec and the destination audio codec are both speech codecs or are both CELP based voice codecs.

Description

CROSS-REFERENCES TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No. 10/350,349, filed Mar. 12, 2003, which claims priority to U.S. Provisional Patent Application No. 60/364,403, filed on Mar. 12, 2002, the disclosures of which are incorporated herein by reference in their entirety for all purposes.

BACKGROUND OF THE INVENTION

The present invention relates generally to processing telecommunication signals. More particularly, the invention provides a method and apparatus for translating digital speech packets from one code-excited linear prediction (CELP) format to another CELP format. More specifically, it relates to a method and to an apparatus for interpolating an adaptive codebook pitch lag obtained by a first CELP coder as input into another adaptive codebook pitch lag of a second CELP coder. Merely by way of example, the invention has been applied to voice transcoding, but it would be recognized that the invention may also include other applications.

Telecommunication techniques have developed over the years. As merely an example, coding techniques package signals for transmission over telecommunication media. Coding often includes a process of converting a raw signal (voice, image, video, etc) into a format amenable for transmission or storage. The coding usually results in a large amount of compression, but generally involves significant signal processing to achieve. The outcome of the coding is a bitstream (sequence of frames) of encoded parameters according to a given compression format. The compression is achieved by removing statistically and perceptually redundant information using various techniques for modeling the signal. Hence the encoded format is referred to as a “compression format” or “parameter space”. The decoder takes the compressed bitstream and regenerates the original signal. In the case of speech coding, compression typically leads to information loss.

Coding can be performed using a codec device. As an example, a CELP-(code excited linear prediction) based codec can be thought of as an algorithm that maps between sampled speech and some parameter space using a model of speech production, i.e. it encodes and decodes the digital speech. Generally all CELP-based algorithms operate on frames of speech which are further divided into several subframes. The frame parameters used in CELP-based models has linear-predictive coefficients (LPC) used for short-term prediction of the speech signal (and physically relating to the vocal tract, mouth and nasal cavity, and lips), as well as an excitation signal composed from adaptive and fixed codebooks. The adaptive codebook is used to model long-term pitch information in the speech. Most of the computational effort in analyzing the speech frame is in determining the LPC coefficients and finding the pitch lag (or equivalently adaptive codeword index).

There exists a large number of diverse networks connected to multiple diverse terminals that each support one (or more) of the many CELP based voice coding standards. A lack of inherent interoperability between voice compression standards often means that there may be a need for translation when an end-to-end call traverses network boundaries. Interconnecting these diverse networks and terminals generally requires voice transcoding from one voice standard into another. A need for such transcoding is typically addressed in mobile switching centers, media gateways, multimedia messaging systems, and on the edge of networks.

As merely an example, voice coding in the context of heterogeneous wireless, mobile and wireline networks illustrate networks that run on different standards. There are a wide variety of voice compression and coding standards used for terminals in different networks—G.729 and G.723.1 for Voice over IP (VoIP), GSM, GSM-AMR, EVRC and a range of other standards used (or emerging) on different wireless networks. FIGS. 1A, 1B and 1C illustrate this diversity of CELP based voice compression standards in a simplified manner. In this case voice transcoding occurs at the edge of every network and between any two networks.

The computation of adaptive codebook pitch-lag plays an important role in searching the adaptive codebook in voice transcoding. As frame size or sub-frame size may be different when transcoding between most popular CELP based standards, re-computing the codebook pitch-lag computation for different subframe size standards becomes challenging. For example, the sub-frame size in G.723.1 is 7.5 ms (FIG. 1B), but it is 5 ms in GSM-AMR (FIG. 1A) and it is either 6.625 ms or 6.75 ms in EVRC (FIG. 1C).

Conventional methods of transcoding including tandem transcoding (a brute-force approach) and some “smart” transcoding methods still reconstruct the speech signal and perform extensive computations to extract the pitch-lag through open-loop or closed-loop searching. That is, these methods still operate in the speech signal space, rather than the parameter space. Accordingly, conventional methods are computationally intensive.

In an attempt to eliminate the pitch-lag interpolation in speech signal space, there is a “smart” transcoding that appears in U.S. No. 2002/0077812 A1. Although this method performs transcoding between the CELP parameters, it is only available for a special case that generally requires very restricted conditions between source and destination CELP codecs. For example, it generally requires that the Algebraic CELP (ACELP) algorithm be used and that both source and destination codecs have the same subframe size, which has many limitations and cannot be applied broadly.

Thus, there exists a need for an improved voice transcoder to be capable of efficiently computing adaptive codebook pitch-lag.

SUMMARY OF THE INVENTION

According to the present invention, techniques for processing telecommunication signals are provided. More particularly, the invention provides a method and apparatus for translating digital speech packets from one code-excited linear prediction (CELP) format to another CELP format. More specifically, it relates to a method and to an apparatus for interpolating an adaptive codebook pitch lag obtained by a first CELP coder as input into another adaptive codebook pitch lag of a second CELP coder. Merely by way of example, the invention has been applied to voice transcoding, but it would be recognized that the invention may also include other applications.

The present invention is a method and apparatus for adaptive codebook pitch-lag computation. The apparatus includes (a) a time-base subframe inspection module that stores the adaptive codebook parameters of each subframe from source codec which waits for interpolation or mapping and computes the proportion of subframe overlapping between source codec and destination codec; (b) a decision module that computes the energy of the adaptive codebook among all source subframes which overlap with the destination subframe and searches the maximum energy value as the criterion for the selection of pitch lag; and (c) a selection module that selects the pitch lag of a subframe as an output from all overlapping source subframes based on an output of the decision module. The time-base subframe inspection module includes a buffer that stores the pitch lag, pitch gain and number of samples of source subframes which wait for mapping into the destination subframe and a discriminator that determines whether destination subframe is covered by multiple source subframes.

The method includes the steps of computing the pitch-lag of the destination subframe from source CELP codec parameter space. The step of computing the pitch-lags includes the steps of storing the adaptive codebook parameters of each source subframe which overlaps with a destination subframe, deciding whether the destination subframe is wholly covered by one source subframe or multiple source subframes, either outputting the pitch lag of the source subframe if the destination subframe is wholly covered by only one source subframe or outputting the pitch lag of the subframe which has the maximum value of the criterion used by a decision module if the destination subframe is covered by multiple source subframes. The step of outputting the pitch lag of a subframe which has the maximum value of the criterion used by a decision module includes steps of searching for the maximum value of the criterion by a decision making module, selecting the pitch lag of a subframe which has the maximum value among all overlapping source subframes, and outputting the pitch lag of that selected subframe. The step of searching the maximum value of the criterion by a decision module includes steps of combining the adaptive codebook parameters of overlapped source subframes, computing the proportion of overlap of each source subframe, computing the energy contribution which is used as the criterion value in each overlapped subframe, and indexing the subframe which has the maximum value of the criterion.

In a specific embodiment, the invention provides an apparatus for processing adaptive codebook pitch lag from one CELP based standard to another CELP based standard. The apparatus has various modules that perform at least functionality described herein. The apparatus includes a time-base subframe inspection module, which is adapted to associate one or more incoming subframes with an outgoing subframes of a destination codec. The apparatus also has a decision module coupled to the time-base subframe inspection module. The decision module is adapted to determine a pitch lag parameter of a desired subframe from a plurality of pitch lag parameters among respective two or more incoming subframes. The apparatus has a pitch lag selection module coupled to the decision module. The pitch lag selection module is adapted to select the desired pitch lag parameter.

In an alternative specific embodiment, the invention provides a method for processing an adaptive codebook parameter pitch-lag from a source CELP based codec to a destination CELP standard codec. The method comprises storing in a memory the more than one adaptive codebook parameters of one or more respective each subframes from a source codec which waits for mapping. The method also decides whether the a destination subframe is wholly covered by one source subframe while the one or more subframes wait for mapping. The method outputs the a pitch lag of the a source subframe if the destination subframe is wholly covered by a single one source subframe; or output the a desired value of a pitch lag of a source subframe which has maximum value of the based upon a criterion by a decision module if the destination subframe is covered by two or more multiple source subframes. Depending upon the embodiment, there can also be other elements.

In a further embodiment, the invention provides a computer based system for processing adaptive codebook pitch lag from one CELP based standard to another CELP based standard. The system includes computer memory, which may be one or more memories. Various codes are provided on the one or more memories. The system includes one or more codes directed to a time-base subframe inspection module, which is adapted to associate one or more incoming subframes with an outgoing subframes of a destination codec. The system also includes one or more codes directed to a decision module coupled to the time-base inspection module, which is adapted to determine a desired pitch lag parameter from a plurality of pitch lag parameters among respective the two or more incoming subframes. One or more codes are directed to a pitch lag selection module coupled to the decision module. The decision module is adapted to select the desired pitch lag parameter. Depending upon the embodiment, computer code or codes can be used in the form of software or firm ware to carryout the functionality described herein.

According to a specific embodiment, there can be many benefits and/or advantages. An advantage of the present invention is that it provides a fast pitch-lag parameter computation from one codec into another in transcoding without compromising audio quality according to a specific embodiment. A fast and correct computation algorithm can improve the audio transcoding, not only in terms of computational performance, but more importantly in terms of maintaining audio quality. Depending upon the embodiment, one or more of these advantages may be achieved.

The objects, features, and advantages of the present invention, which to the best of our knowledge are novel, are set forth with particularity in the appended claims. The present invention, both as to its organization and manner of operation, together with further objects and advantages, may best be understood by reference to the following description, taken in connection with the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIGS. 1A, 1B and 1C are diagrams useful in illustrating the different subframe sizes used in different CELP codecs;

FIG. 2 is a simplified function block diagram for performing adaptive codebook pitch lag interpolation according to an embodiment of the present invention;

FIG. 3 is a simplified diagram showing a comparison of different subframe size between source and destination codecs and overlapping according to an embodiment of the present invention;

FIG. 4 is a simplified flow diagram illustrating a routine for interpolating pitch lag for different subframe sizes according to an embodiment of the present invention; and

FIG. 5 is a simplified block diagram showing the subframe computation in the particular example of transcoding from G.723.1 to GSM-AMR according to an embodiment of the present invention.

DETAILED DESCRIPTION OF SPECIFIC EMBODIMENTS

According to the present invention, techniques for processing telecommunication signals are provided. More particularly, the invention provides a method and apparatus for translating digital speech packets from one code-excited linear prediction (CELP) format to another CELP format. More specifically, it relates to a method and to an apparatus for interpolating an adaptive codebook pitch lag obtained by a first CELP coder as input into another adaptive codebook pitch lag of a second CELP coder. Merely by way of example, the invention has been applied to voice transcoding, but it would be recognized that the invention may also include other applications.

By careful investigation of adaptive codebooks in existing audio codec standards, we find that it is possible to interpolate the codebook pitch-lag parameter from one codec into another in transcoding without compromising audio quality. A fast and correct computation algorithm can improve the audio transcoding, not only in terms of computational performance, but more importantly in terms of maintaining audio quality.

In a specific embodiment, speech signals can be categorized as either voiced or unvoiced signals. The adaptive codebook pitch-lag parameter is quite stable during voiced excitation sequences, but it is not stable during unvoiced sounds or at the onset of voiced sounds. Unvoiced sounds are generally weak, random signals, and in such cases the adaptive codebook gain is very small and the selection of adaptive codebook pitch-lag is not as important as for voiced signals. Voiced signals, on the other hand are generally strong and stable, and the selection of adaptive codebook pitch-lag directly determines the quality of the speech compression.

Although the optimized adaptive codebook pitch-lags in different audio codecs are very close, a smart adaptive codebook pitch-lag computation is necessary in audio transcoding. This is because the subframe size between source and destination codecs can be different (FIG. 3). As shown, the subframe in the source codec includes a size of NS for the first subframe. The destination codec (see reference numeral 1) has a first subframe of ND, which is smaller in size than the first codec subframe. As further shown, an edge of the first source codec and first destination codec align. Since the first source subframe is large in size and also has a spatial alignment that extends beyond the first destination subframe, the first destination subframe is covered (i.e., wholly covered) by the first source subframe. As also shown is a second destination subframe (see reference numeral 2), which has a portion α1 and a portion α2, which overlaps the first subframe of the source codec and the second subframe of the source codec. The second destination subframe is not covered by a single source subframe. Further details of the invention as applied to processing different sized subframes are provided throughout the present specification and more particularly below.

According to a specific embodiment, we provided at least a method to interpolate adaptive codebook pitch-lag in audio transcoding for different sized subframes as well as other variations, modifications, and alternatives.

FIG. 2 illustrates a hierarchy of the building blocks used in the pitch lag interpolation according to the present invention. This diagram is merely an example, which should not unduly limit the scope of the claims herein. One of ordinary skill in the art would recognize many variations, modifications, and alternatives. According to a specific embodiment, a Time-Base Subframe Inspection Module handles the subframe interpolation between the source codec and the destination codec due to the dissimilar subframe sizes of the source and destination codecs; the module handles all cases of source and destination subframe length (i.e. the source subframe length is shorter than the destination subframe, the source subframe length is longer than the destination subframe length and the source subframe length is equal to the destination subframe length). The Quick Decision Module computes the criteria of selection function of desired pitch lag for the destination codec. The Selection Module handles the computation of the final pitch lag based on the criteria output computed by the Quick Decision Module. Note that the Time-Base Subframe Inspection Module can directly connect to the output (i.e. can bypass the Quick Decision Module and the Selection Module). This is so because the Time-Base Subframe Inspection Module has the ability to map it directly to the output. This is determined by the Time-base Inspection Module based on the position of the destination subframe with relation to the source subframe in time.

Referring to FIG. 3 again, suppose that the adaptive codebook gain, adaptive codebook pitch-lag and the sub-frame size in the source codec are gpS, LS, NS, respectively, and the subframe size in the destination codec is ND. The subframe size of the source codec can be different to that of the destination. Furthermore, the source and destination frames may not be aligned and they can be overlapped. Depending upon the particular embodiment, we have described various embodiments list under different case headings, which are merely provided to be illustrating. These embodiments are not intended to be limiting the scope of the claims herein. One of ordinary skill in the art would recognize many variations, alternatives, and modifications.

Case 1: If the destination subframe is fully covered by one subframe from the source codec, the adaptive codebook pitch-lag for the destination is:
LD=LS (Eq. 1)

Case 2: If the destination subframe is covered by multiple subframes from the source, the adaptive codebook pitch-lag is the pitch-lag of the source subframe for which a function of adaptive codebook gain and overlapping size is the maximum. It can be expressed as:

LD=LnS❘En=Emax,(Eq.2)
where En is a function of adaptive gain gpS and the portion of overlapping α in source sub-frame:
En=αn●gps, (Eq. 3)
and Emax is the maximum E amongst all subframes which are overlapped with the destination subframe m
Emax=max(E1,E2, . . . ,En). (Eq. 4)

Thus, the selected adaptive codebook pitch-lag can be used as adaptive codebook pitch-lag for the destination subframe, or as open-loop adaptive codebook pitch-lag if further tuning is required.

In FIG. 4, a flowchart describing the operation flow of the present invention is illustrated. This diagram is. merely an example, which should not unduly limit the scope of the claims herein. One of ordinary skill in the art would recognize many variations, modifications, and alternatives. The adaptive codebook parameters reach the input of the interpolator module of the audio transcoder. A check for the current destination subframe alignment in relation to the source subframe is made. If the destination subframe is completely covered by one subframe of the source codec, the pitch lag at the destination subframe is equal to the corresponding pitch lag of the source subframe as specified in Eq. 1.

If the destination subframe is covered by two or more subframes from the source codec, the selection module within the audio transcoder searches through the overlapping source subframes for the maximum criteria as specified in equations 2 and 3.

The basis for the criteria in equations 2 and 3 is the strength of the pitch gain in the source codec subframes. During the silence periods in a normal conversation, the adaptive codebook gain is very small and that contrasts with voiced periods, where the pitch gain is strong. Therefore, depending on the portion of overlapping source subframe, as specified by the factor α from equation 3 and the magnitude of the pitch gain, the decision criteria as specified in equation 3 (En) are calculated.

The pitch lag is then outputted at the destination codec. Note the computed pitch lag should fit within the allowed index range of the pitch lag for the destination codec. In the case of the computed pitch lag not fitting in the allowed index range of the destination code, the pitch lag may be either doubled or halved depending on where it falls, whether at the minimum allowed pitch or at the maximum allowed pitch, respectively. Depending upon the embodiment, we have also provided specific examples for illustrative purposes only. These examples can be found throughout the present specification and more particularly below.

G.723.1

GSM-AMR Transcoding Example

As an illustrative example, we show how the adaptive codebook pitch-lag is interpolated in a G.723.1 to GSM-AMR transcoder (FIG. 5). Again, this diagram is merely an example, which should not unduly limit the scope of the claims herein. One of ordinary skill in the art would recognize many variations, modifications, and alternatives.

It can be seen from FIG. 5 that three GSM-AMR sub-frames are needed to describe the same duration of speech signal as two G.7231 sub-frames. Likewise three GSM-AMR sub-frames are needed for every two G.723.1 sub-frames. If the source codec is G.723.1 and the destination codec is GSM-AMR, the GSM-AMR adaptive codebook pitch-lag after computation is as follows:

(1) The mth subframe: GSM-AMR subframe is 5 ms and G.723.1 subframe is 7.5 ms. The GSM-AMR subframe {m} is fully covered by the G723.1 subframe {n}. According to the equation (1), its adaptive codebook pitch-lag is
LmGSM-AMR=LnG723.1 (Eq 5)

(2) The (m+1)th subframe: The {m+1}th subframe is covered by two source subframes {n} and {n+1}, The overlapping of GSM-AMR subframe {m} to G.723.1 sub-frame {n} is the same as that of {m} to {n+1}. Thus the computation is determined by the source adaptive codebook gain. According to the equation (2) and (3), and utilizing separate first and second pitch lags (LnG723.1 and Ln+1G723.1 respectively) as inputs, the {m+1}th subframe adaptive codebook pitch-lag can be obtained as:

Lm+1GSM-AMR={LnG723.1ifGpn>Gpn+1Ln+1G723.1otherwise(Eq.6)
where GP is the pitch gain.

(3) The (m+2)th subframe: The (m+2)th subframe is covered by the G723.1 subframe (n+1) only. It is therefore that the adaptive codebook pitch-lag is the same as G723.1.
Lm+2GSM-AMR=Ln+1G723.1 (Eq. 7)

(4) The adaptive codebook pitch-lag of subsequent subframes can be obtained as above.

Other CELP Transcoders

According to other specific embodiments, the invention of adaptive codebook computation described in this document is generic to all CELP based voice codecs, and applies to any voice transcoders between the existing codecs G.723.1, GSM-AMR, EVRC, G.728, G.729, G.729A, QCELP, MPEG-4 CELP, SMV and all other future CELP based voice codecs that make use of pitch lag information.

The previous description of the preferred embodiment is provided to enable any person skilled in the art to make or use the present invention. The various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without the use of the inventive faculty. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.