(19)
(11)EP 3 550 564 B1

(12)EUROPEAN PATENT SPECIFICATION

(45)Mention of the grant of the patent:
22.07.2020 Bulletin 2020/30

(21)Application number: 19175094.2

(22)Date of filing:  25.08.2008
(51)International Patent Classification (IPC): 
G10L 19/022(2013.01)

(54)

LOW-COMPLEXITY SPECTRAL ANALYSIS/SYNTHESIS USING SELECTABLE TIME RESOLUTION

SPEKTRALANALYSE/SYNTHESE MIT GERINGER KOMPLEXITÄT UNTER VERWENDUNG VON AUSWÄHLBARER ZEITAUFLÖSUNG

ANALYSE/SYNTHÈSE SPECTRALE DE FAIBLE COMPLEXITÉ À L'AIDE DE RÉSOLUTION TEMPORELLE SÉLECTIONNABLE


(84)Designated Contracting States:
AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MT NL NO PL PT RO SE SI SK TR

(30)Priority: 27.08.2007 US 968125 P

(43)Date of publication of application:
09.10.2019 Bulletin 2019/41

(62)Application number of the earlier application in accordance with Art. 76 EPC:
17194762.5 / 3288028
08828335.3 / 2186088

(73)Proprietor: Telefonaktiebolaget LM Ericsson (publ)
164 83 Stockholm (SE)

(72)Inventor:
  • TALEB, Anisse
    16433 Kista (SE)

(74)Representative: Ericsson 
Patent Development Torshamnsgatan 21-23
164 80 Stockholm
164 80 Stockholm (SE)


(56)References cited: : 
US-A1- 2005 114 126
  
  • WANG Y ET AL: "MODIFIED DISCRETE COSINE TRANSFORM-ITS IMPLICATIONS FOR AUDIO CODING AND ERROR CONCEALMENT", JOURNAL OF THE AUDIO ENGINEERING SOCIETY, AUDIO ENGINEERING SOCIETY, NEW YORK, NY, US, vol. 51, no. 1/02, 1 January 2003 (2003-01-01), pages 52-61, XP001178776, ISSN: 1549-4950
  
Note: Within nine months from the publication of the mention of the grant of the European patent, any person may give notice to the European Patent Office of opposition to the European patent granted. Notice of opposition shall be filed in a written reasoned statement. It shall not be deemed to have been filed until the opposition fee has been paid. (Art. 99(1) European Patent Convention).


Description

TECHNICAL FIELD



[0001] The present invention generally relates to signal processing such as signal compression and audio coding, and more particularly to audio encoding and audio decoding and corresponding devices.

BACKGROUND



[0002] An encoder is a device, circuitry or computer program that is capable of analyzing a signal such as an audio signal and outputting a signal in an encoded form. The resulting signal is often used for transmission, storage and/or encryption purposes. On the other hand a decoder is a device, circuitry or computer program that is capable of inverting the encoder operation, in that it receives the encoded signal and outputs a decoded signal.

[0003] In most state-of the art encoders such as audio encoders, each frame of the input signal is analyzed in the frequency domain. The result of this analysis is quantized and encoded and then transmitted or stored depending on the application. At the receiving side (or when using the stored encoded signal) a corresponding decoding procedure followed by a synthesis procedure makes it possible to restore the signal in the time domain.

[0004] Codecs are often employed for compression/decompression of information such as audio and video data for efficient transmission over bandwidth-limited communication channels.

[0005] In particular, there is a high market need to transmit and store audio signals at low bit rates while maintaining high audio quality. For example, in cases where transmission resources or storage is limited low bit rate operation is an essential cost factor. This is typically the case, for example, in streaming and messaging applications in mobile communication systems.

[0006] A general example of an audio transmission system using audio encoding and decoding is schematically illustrated in Fig. 1. The overall system basically comprises an audio encoder 10 and a transmission module (TX) 20 on the transmitting side, and a receiving module (RX) 30 and an audio decoder 40 on the receiving side.

[0007] It is commonly acknowledged that special care has to be taken in order to deal with non-stationary signals in particular for audio coding application and in general for signal compression. In audio coding, an artifact known as pre-echo distortion can arise in so-called transform coders.

[0008] Transform coders or more generally transform codecs (coder-decoder) are normally based around a time-to-frequency domain transform such as a DCT (Discrete Cosine Transform), a Modified Discrete Cosine Transform (MDCT) or another lapped transform. A common characteristic of transform codecs is that they operate on overlapped blocks of samples: overlapped frames. The coding coefficients resulting from a transform analysis or an equivalent sub-band analysis of each frame are normally quantized and stored or transmitted to the receiving side as a bit-stream. The decoder, upon reception of the bit-stream, performs dequantization and inverse transformation in order to reconstruct the signal frames.

[0009] Pre-echoes generally occur when a signal with a sharp attack begins near the end of a transform block immediately following a region of low energy.

[0010] This situation occur for instance when encoding the sound of percussion instruments, e.g. castanets, glockenspiel. In a block-based algorithm when quantizing the transform coefficients, the inverse transform at the decoder side will spread the quantization noise distortion evenly in time. This results in unmasked distortion on the low energy region proceeding in time the signal attack as illustrated in Figs. 2A and B, where Fig. 2A illustrates the original percussion sound, and Fig. 2B illustrates the transform-coded signal showing the time spreading of coding noise leading to pre-echo distortion.

[0011] Temporal pre-masking is a psycho-acoustical property of the human hearing which has the potential to mask this distortion; however this is only possible when the transform block size is sufficiently small such that pre-masking occurs.

Pre-echo Artifact Mitigation (Prior Art)



[0012] In order to avoid this undesirable artifact, several methodologies have been proposed and successfully applied. Some of theses technologies have been standardized and are wide-spread in commercial applications.

Bit reservoir techniques



[0013] The idea behind bit reservoir technique is to save some bits from frames that are "easy" to encode in the frequency domain. The saved bits are thereafter used in order to accommodate the high demanding frames, like transient frames. This result in a variable instantaneous bit-rate, with some tuning it can be made such that the average bit-rate is constant. The major drawback however is that very large reservoirs are in fact needed in order to deal with certain transients and this leads to very large delay making this technology with little interest for conversational application. In addition, this methodology only slightly mitigates the pre-echo artifact.

Gain modification and Temporal Noise Shaping



[0014] The gain modification approach applies a smoothing of transient peaks in the time-domain prior to spectral analysis and coding. The gain modification envelope is sent as side information and inverse applied on the inverse transform signal thus shaping the temporal coding noise. A major drawback of the gain modification technique is in its modification of the filter bank (e.g. MDCT) analysis window, thus introducing a broadening of the frequency response of the filter bank. This may lead to problems at low frequencies especially if the bandwidth exceeds that of the critical band.

[0015] Temporal Noise Shaping (TNS) is inspired by the gain modification technique. The gain modification is applied in the frequency domain and operates on the spectral coefficients. TNS is applied only during input attacks susceptible to pre-echoes. The idea is to apply linear prediction (LP) across frequency rather than time. This is motivated by the fact that during transients and in general impulsive signals, frequency-domain coding gain is maximized by the use of LP techniques. TNS was standardized in AAC and is proven to provide a good mitigation of pre-echo artifacts. However, the use of TNS involves LP analysis and filtering which significantly increases the complexity of the encoder and decoder. Additionally, the LP coefficients have to be quantized and sent as side information which involves further complexity and bit-rate overhead.

Window Switching



[0016] Fig. 3 illustrates window switching (MPEG-1, layer III "mp3"), where transition windows "start" and "stop" are required between the long and short windows to preserve the PR (Perfect Reconstruction) properties. This technique was first introduced by Edler [1] and is popular for pre-echo suppression particularly in the case of MDCT-based transform coding algorithms. Window switching is based on the idea of changing the time resolution of the transform upon detection of a transient. Typically this involves changing the analysis block length from a long duration during stationary signals to a short duration when transients are detected. The idea is based on two considerations:
  • A short window applied to the short frame containing the transient will minimize the temporal spread of coding noise and allow temporal pre-masking to take effect and render the distortion inaudible.
  • Allocate higher bitrates to the short temporal regions containing the transient.


[0017] Although window switching has been very successful, it presents significant drawbacks. For instance, the perceptual model and lossless coding modules of the codec have to support different time resolutions which translate usually into increased complexity. In addition, when using lapped transforms such as the MDCT, and in order to satisfy the perfect reconstruction constraints, window switching needs to insert transition windows between short and long blocks, as illustrated in Fig. 3. The need for transition windows generates further drawbacks, namely an increased delay due to the fact that switching windows cannot be done instantaneously, and also the poor frequency localization properties of transition windows leading to a dramatic reduction in coding gain.

[0018] "Modified Discrete Cosine Transform - its Implications for Audio Coding and Error Concealment" by Wang Y. et al., was published in the Journal of the Audio Engineering Society, Vol. 51, No. 1/2, January/February 2003 (XP001178776), and describes a study of the modified discrete cosine transform (MDCT) and its implications for audio coding and error concealment from the perspective of Fourier frequency analysis. A relationship between MDCT and discrete Fourier transform via a shifted discrete Fourier transform is described, which provides a possible fast implementation of MDCT employing a fast Fourier transform (FFT) routine. The concept of time-domain aliasing cancellation, as well as the symmetric and non-orthogonal properties of MDCT, are analysed and illustrated with examples.

SUMMARY



[0019] The present invention overcomes these and other drawbacks of the prior art arrangements.

[0020] There is thus a general need for improved signal processing techniques and devices, and more particularly a special need for a new audio codec strategy for handling pre-echo distortion.

[0021] It is a general object of the present invention to provide an improved method for signal processing operating on overlapped frames of a time-domain input signal.

[0022] In particular it is desirable to provide an improved audio encoding method.

[0023] These and other objects are met by the invention as defined by the accompanying patent claims.

[0024] A first aspect of the invention relates to an audio coding method operating on overlapped frames of an input signal.

[0025] The invention is based on the concept of using a time-domain aliased frame as a basis for time segmentation and spectral analysis, performing segmentation in time based on the time-domain aliased frame and performing spectral analysis based on the resulting time segments.

[0026] The time resolution of the overall "segmented" time-to-frequency transform can thus be changed by simply adapting the time segmentation to obtain a suitable number of time segments based on which spectral analysis is applied.

[0027] More specifically, a basic idea is to perform time-domain aliasing (TDA) based on an overlapped frame to generate a corresponding time-domain aliased frame, and perform segmentation in time based on the time-domain aliased frame to generate at least two segments, also referred to as sub-frames. Based on these segments, spectral analysis is then performed to obtain, for each segment, coefficients representative of the frequency content of the segment.

[0028] The overall set of coefficients, also referred to as spectral coefficients, for all the segments provides a selectable time-frequency tiling of the original signal frame.

[0029] The instantaneous decomposition into segments can for example be used to mitigate the pre-echo effect, for instance in the case of transients, or generally to provide an efficient signal representation that allows bit-rate efficient encoding of the frame in question.

[0030] The first aspect of the invention is particularly related to an audio encoding method in accordance with the above basic principles, as set out in claim 1.

[0031] Further advantages offered by the invention will be appreciated when reading the below description of embodiments of the invention.

BRIEF DESCRIPTION OF THE DRAWINGS



[0032] The invention, together with further objects and advantages thereof, will be best understood by reference to the following description taken together with the accompanying drawings, in which:

Fig. 1 is a schematic block diagram illustrating a general example of an audio transmission system using audio encoding and decoding.

Fig. 2A illustrates an original percussion sound, and Fig. 2B illustrates a transform-coded signal showing the time spreading of coding noise leading to pre-echo distortion.

Fig. 3 illustrates the conventional window switching technique for transform-based coding.

Fig. 4A schematically illustrates the general forward MDCT (Modified Discrete Cosine Transform) transform.

Fig. 4B schematically illustrates the general inverse MDCT (Modified Discrete Cosine Transform) transform.

Fig. 5 is a schematic diagram illustrating the decomposition of the MDCT (Modified Discrete Cosine Transform) transform into two cascaded stages.

Fig. 6 is a schematic flow diagram illustrating an example of a method for signal processing according to a preferred exemplary embodiment of the invention.

Fig. 7 is a schematic block diagram of a general signal processing device.

Fig. 8 is a schematic block diagram of an exemplary device.

Fig. 9 is a schematic block diagram of another exemplary device.

Fig. 10 is a schematic diagram of an example of time-domain aliasing re-ordering according to an exemplary embodiment of the invention.

Fig. 11 is a schematic diagram illustrating an example of segmentation into two time segments, including zero padding, according to an exemplary embodiment of the invention.

Fig. 12 shows diagrams of the two basis functions for the segmentation of Fig. 11 which relate to a normalized frequency of 0.25 together with corresponding frequency response diagrams.

Fig. 13 shows diagrams of the original MDCT basis functions related to the normalized frequency of 0.25 together with corresponding frequency response diagrams.

Fig. 14 is a schematic diagram illustrating an example of segmentation into four time segments, including zero padding, according to an exemplary embodiment of the invention.

Fig. 15 is a schematic diagram illustrating an example of segmentation into eight time segments, including zero padding, according to an exemplary embodiment of the invention.

Fig. 16 shows a realization of a resulting overall transform for the case of four segments, according to an exemplary embodiment of the invention.

Fig. 17 illustrates an exemplary way of obtaining a non-uniform segmentation by means of a hierarchical approach.

Fig. 18 illustrates an example of instant switching to a finer time resolution upon detection of a transient.

Fig. 19 is a block diagram illustrating a basic example of a signal processing device for operating based on spectral coefficients representative of a time-domain signal.

Fig. 20 is a block diagram of an exemplary encoder suitable for fullband extension.

Fig. 21 is a block diagram of an exemplary decoder suitable for fullband extension.

Fig. 22 is a schematic block diagram of a particular example of an inverse transformer and associated implementation for inverse time segmentation and optional re-ordering.


DETAILED DESCRIPTION



[0033] Throughout the drawings, the same reference characters will be used for corresponding or similar elements.

[0034] For a better understanding of the invention, it may be useful to begin with a brief introduction to transform coding, and especially transform coding based on so-called lapped transforms.

[0035] As previously mentioned, transform codecs are normally based around a time-to-frequency domain transform such as a DCT (Discrete Cosine Transform), a lapped transform such as a Modified Discrete Cosine Transform (MDCT) or a Modulated Lapped Transform (MLT).

[0036] For example, the modified discrete cosine transform (MDCT) is a Fourier-related transform based on the type-IV discrete cosine transform (DCT-IV), with the additional property of being lapped: it is designed to be performed on consecutive blocks of a larger data set, where subsequent blocks are overlapped, so-called overlapped frames, so that the last half of one block coincides with the first half of the next block, as schematically illustrated in Fig. 4A. This overlapping, in addition to the energy-compaction qualities of the DCT, makes the MDCT especially attractive for signal compression applications, since it helps to avoid artifacts stemming from the block boundaries. Thus, an MDCT is employed in MP3, AC-3, Ogg Vorbis, and AAC for audio compression, for example.

[0037] As a lapped transform, the MDCT is somewhat different when compared to other Fourier-related transforms. In fact, the MDCT has half as many outputs as inputs. Formally, the MDCT is a linear mapping from,

into

(where

denotes the set of real numbers).

[0038] Mathematically, the real numbers x0, x1,..., x2N are transformed into the real numbers X0, X1,..., XN according to the formula:



[0039] This above formula, depending on the convention, may contain an additional normalization coefficient.

[0040] The inverse MDCT is known as the IMDCT. Because, the dimensions of the output and input are different, at first glance it might seem that the MDCT should not be invertible. However, perfect invertibility is achieved by adding the overlapped IMDCT's of subsequent overlapping blocks, i.e. overlapped frames, causing the errors to cancel and the original data to be retrieved; this technique is known as time-domain aliasing cancellation (TDAC), and is schematically illustrated in Fig. 4B.

[0041] In summary, for the forward transform, 2N samples (of one of the overlapped frames) are mapped to N spectral coefficients, and for the inverse transform, N spectral coefficients are mapped to 2N time domain samples (of one of the reconstructed overlapped frames) which are overlap-added to form an output time domain signal.

[0042] The IMDCT transforms N real numbers Y0, Y1, ..., YN into real numbers y0, y1,..., y2N according to the formula:



[0043] In a typical signal-compression application, the transform properties are further enhanced using a window function wn that is multiplied with the input signal to the direct transform xn and the output signal of the inverse transform yn. In principle, xn and yn could use different windows, but for simplicity only the case of identical windows is considered.

[0044] Several general purpose orthogonal and bi-orthogonal windows exist. In the orthogonal case, the generalized Perfect Reconstruction (PR) conditions can be reduced to linear phase and Nyquist constraints on the window, i.e.:







[0045] Any window which satisfies the Perfect Reconstruction (PR) conditions can be used to generate the filter bank. However, to obtain a high coding gain, the resulting frequency response of filter-bank should be as selective as possible.

[0046] Reference [2] denotes by MLT (Modulated Lapped Transform) the MDCT filter bank that makes use of the sine window, defined as:



[0047] This particular window, the so-called sine window, is the most popular in audio coding. It appears for example in the MPEG-1 Layer III (MP3) hybrid filter bank, as well as the MPEG-2/4 AAC.

[0048] One of the attractive properties that has contributed to the widespread use of the MDCT for audio coding is the availability of FFT-based fast algorithms. This makes the MDCT a viable filter bank for real time implementations.

[0049] It is well known that the MDCT with a window length of 2N can be decomposed into two cascaded stages. The first stage consists of a time domain aliasing operation (TDA) followed by a second stage based on the type IV DCT, as illustrated in Fig. 5.

[0050] The TDA operation is explicitly given by the following matrix operation:

where xw denotes the windowed time domain input frame:

the matrices IN and JN denote the identity and the time reversal matrices of order N:



[0051] A first aspect of the invention relates to signal processing operating on overlapped frames of an input signal. A key concept is to use a time-domain aliased frame as a basis for time segmentation and spectral analysis, and perform segmentation in time based on the time-domain aliased frame and spectral analysis based on the resulting time segments. The time segments, or segments in short, are also referred to as sub-frames. This is only natural since a segment of a frame may be referred to as a sub-frame. The expressions "segment" and "sub-frame" will in general be used interchangeably throughout the disclosure.

[0052] Fig. 6 is a schematic flow diagram illustrating an example of a method for signal processing according to a preferred exemplary embodiment of the invention. As indicated in step S1, the procedure may involve an optional pre-processing step, as will be explained and exemplified later on. In step S2, a time-domain aliasing (TDA) operation is performed based on a selected one of the overlapped frames to generate a corresponding so-called TDA frame which may optionally be processed in one or more stages, as indicated in step S3, before time segmentation is performed. In any case, time segmentation is performed based on the time-domain aliased frame (which may have been processed) to generate at least two segments in time, as indicated in step S4. In step S5, so-called segmented spectral analysis is executed based on the segments to obtain, for each segment, coefficients representative of the frequency content of the segment. Preferably, the spectral analysis is based on applying a transform on each of the segments to produce, for each segment, a corresponding set of spectral coefficients. It is also possible to apply an optional post-processing step (not shown).

[0053] The spectral analysis may be based on any of a number of different transforms, preferably lapped transforms. Examples of different types of transforms include a Lapped Transform (LT), a Discrete Cosine Transform (DCT), a Modified Discrete Cosine Transform (MDCT), and a Modulated Lapped Transform (MLT).

[0054] The time resolution of the overall segmented time-to-frequency transform can thus be changed by simply adapting the time segmentation to obtain a suitable number of time segments based on which spectral analysis is applied. The segmentation procedure may be adapted to produce non-overlapped segments, overlapped segments, non-uniform length segments, and/or uniform length segments. In this way, any arbitrary time-frequency tiling of the original signal frame can be obtained.

[0055] The overall signal processing procedure typically operates on overlapped frames of a time-domain input signal on a frame-by-frame-basis, and the above steps of time-aliasing, segmentation, spectral analysis and optional pre-, mid- and post-processing are preferably repeated for each of a number of overlapped frames.

[0056] Preferably, the signal processing proposed by the present invention includes signal analysis, signal compression and/or audio coding. In an audio encoder, for example, the spectral coefficients will normally be quantized into a bit-stream for storage and/or transmission.
Fig. 7 is a schematic block diagram of a general signal processing device according to a preferred exemplary embodiment of the invention. The device basically comprises a time-domain aliasing (TDA) unit 12, a time segmentation unit 14 and a spectral analyzer 16. In the basic example of Fig. 7, a considered frame of a number of overlapped frames is time-domain aliased in the TDA unit 12 to generate a time-domain aliased frame, and the time segmentation unit 14 operates on the time-domain aliased frame to generate a number of time segments, also referred to as sub-frames. The spectral analyzer 16 is configured for segmented spectral analysis based on these segments to generate, for each segment, a set of spectral coefficients. The collective spectral coefficients of all segments represent a time-frequency tiling of the processed time-domain frame with a higher than normal time-resolution.

[0057] Since the invention utilizes a time-domain aliased frame as a basis for the spectral analysis, there is a possibility for instant switching between non-segmented spectral analysis based on the time-domain aliased frame, so-called full-frequency resolution processing and segmented spectral analysis based on relatively shorter segments, so-called increased time-resolution processing.

[0058] Preferably, such instant switching is performed by a switching functionality 17 in dependence on detection of a signal transient in the input signal. The transient may be detected in the time-domain, time-aliased domain or even in the frequency domain. Typically, a transient frame is processed with a higher time resolution than a stationary frame, which may then be processed using normal full-frequency processing.

[0059] There is also a possibility to switch time resolution instantly by using a higher or lower number of time segments for the spectral analysis.

[0060] Preferably, the time-domain aliasing, time segmentation and spectral analysis are repeated for each of a number of consecutive overlapped frames.
In a preferred embodiment of the invention, the signal processing device of Fig. 7 is part of an audio coder such as the audio encoder 10 of Fig. 1 or Fig. 20 using transform coding for the spectral analysis.

[0061] Based on the above "forward" procedure, the chain of inverse operations for mapping a set of spectral coefficients to a time-domain frame is easily and naturally apparent to the skilled person.

[0062] Briefly, in a second aspect of the invention, inverse spectral analysis is performed based on different sub-sets of spectral coefficients in order to generate, for each sub-set of spectral coefficients, an inverse-transformed sub-frame, also referred to as a segment. Inverse time-segmentation is then performed based on overlapped inverse-transformed sub-frames to combine these sub-frames into a time-domain aliased frame, and inverse time-domain aliasing is performed based on the time-domain aliased frame to enable reconstruction of the time-domain signal.

[0063] The inverse time-domain aliasing is typically performed to reconstruct a first time-domain frame, and the overall procedure may then synthesize the time-domain signal based on overlap-adding the first time-domain frame with a subsequent second reconstructed time-domain frame. Reference can for example be made to the general overlap-add operations of Fig 4B.

[0064] Preferably, the inverse signal processing includes at least one of signal synthesis and audio decoding. The inverse spectral analysis may be based on any of a number of different inverse transforms, preferably lapped transforms. For example, in audio decoding applications, it is beneficial to use the inverse MDCT transform.

[0065] A more detailed overview and explanation of the inverse chain of operations as well as preferred implementations will be discussed later on.
Fig. 8 is a schematic block diagram of a device according to another preferred exemplary embodiment of the invention. In addition to the basic blocks of Fig. 7, the device of Fig. 8 further includes one or more optional processing units such as the windowing unit 11 and the re-ordering unit 13.

[0066] In the example of Fig. 8, the optional windowing unit 11 performs windowing based on one of the overlapped frames to generate a windowed frame, which is forwarded to the TDA unit 12 for time-domain aliasing. Basically, windowing may be performed to enhance the transform's frequency selectivity properties. The window shape can be optimized to fulfill certain frequency selectivity criteria, several optimization techniques can be used and are well known for those skilled in the art.

[0067] In order to maintain full temporal coherence of the input signal, it is beneficial to apply time-domain aliasing re-ordering. For this reason, an optional re-ordering unit 13 may be provided for re-ordering the time-domain aliased frame to generate a re-ordered time-domain aliased frame, which is forwarded to the segmentation unit 14. In this way, segmentation is performed based on the re-ordered time-domain aliased frame. The spectral analyzer 16 preferably operates on the generated segments from the time-segmentation unit 14 to obtain a segmented spectral analysis with a higher than normal time resolution.

[0068] Fig. 9 is a schematic block diagram of a device according to yet another exemplary embodiment of the invention. The example of Fig. 9 is similar to that of Fig. 8, except that in Fig. 9 it is explicitly indicated that the time segmentation is based on a set of suitable window functions, and that the spectral analysis is based on applying transforms on segments of the (re-ordered) time-domain aliased frame.

[0069] In a particular example, the segmentation involves adding zero padding to the (re-ordered) time-domain aliased frame and dividing the resulting signal into relatively shorter and preferably overlapped segments.
Preferably, the spectral analysis is based on applying a lapped transform such as MDCT or MLT on each of said overlapped segments.

[0070] In the following, the invention will be described with reference to further exemplary and non-limiting embodiments.

[0071] As mentioned, the invention is based on the concept of using the time-aliased signal (output of the time domain aliasing operation) as a new signal frame on which spectral analysis is applied. By changing the temporal resolution of the transform which is applied after time aliasing in order to obtain the (e.g. MDCT) coefficient, e.g. the DCTIV, the invention allows to obtain a spectral analysis on arbitrary time segments with very little overhead in complexity as well as instantaneously, i.e. without additional delay.

[0072] In order to obtain a signal analysis with a predetermined time resolution it is sufficient to directly apply the appropriate lengths orthogonal transforms on preferably overlapped segments of the time-aliased windowed input signal.

[0073] The output of each of these shorter length transforms will lead to a set of coefficients representative of the frequency content of each segment in question. The set of coefficients for all segments will instantaneously provide an arbitrary time- frequency tiling of the original signal frame.

[0074] This instantaneous decomposition can be used in order to mitigate the pre-echo effect, for instance in the case of transients, as well as provide an efficient representation of the signal which allows a bit-rate efficient encoding of the frame in question.

[0075] The overlapped segments of the time-aliased windowed signal need not to be of equal length. Because of the correspondence in time between segments in the time aliased domain and the normal time domain, the desired level of time resolution analysis will determine the number of segments as well as the length of each segments on which the frequency analysis is performed.

[0076] The invention is best applied together with a transient detector and/or in the context of coding by measuring the coding gain obtained for a given set of time segmentations, this include both open-loop and closed-loop coding gain estimations for each time segmentation trial.

[0077] The invention is for example useful together with the ITU-T G.722.1 standard, and especially for the "ITU-T G.722.1 fullband extension for 20 kHz full-band audio" standard, now renamed ITU-T G.719 standard, both for encoding and decoding, as will be exemplified later on.

[0078] The invention allows an instantaneous switching of the time resolution of the overall transform (e.g. based on MDCT). Thus, contrary to window switching, the invention does not require any delay.

[0079] The invention has very low complexity and no additional filter bank is needed. The invention preferably uses the same transform as the MDCT, namely the type IV DCT.

[0080] The invention efficiently handles pre-echo artifact suppression by instantaneously switching to higher time resolution.

[0081] The invention would also allow to build closed/open-loop coding schemes based on signal adaptive time segmentations.

[0082] For a better understanding of the invention, more detailed examples of individual (possibly optional) signal processing operations as well as further examples of overall implementations will now be described. The spectral analysis will mainly be described with reference to the MDCT transform in the following, but it should be understood that the invention is not limited thereto, although the use of a lapped transform is beneficial.

[0083] If there are strict requirements on temporal coherence, so-called re-ordering is recommended.

TDA reordering



[0084] In order to keep the temporal coherence of the input signal, the output of the time domain aliasing operation needs to be re-ordered before further processing. The ordering operation is necessary, without ordering the basis functions of the resulting filter-bank will have an incoherent time and frequency responses. An example of a reordering operation is illustrated in Fig. 10, and involves shuffling the upper and lower half of the TDA output signal (n). This reordering is only conceptual and in reality no computations are involved. The invention is not limited to the example shown in Fig. 10. Of course, other types of re-ordering can be implemented.

Simple Embodiment - Improving the time resolution



[0085] A first simple embodiment shows how to double the time resolution according to the present invention. Accordingly, a time-frequency analysis is applied to v(n), in order to double the time resolution, v(n) is split into two preferably overlapping segments. Because v(n) is a time limited signal, an amount of zero padding is added at the start and end of v(n). Preferably, the input signal is a reordered time aliased windowed signal, of length N. The length of zero padding is dependent on the length of the signal v(n) and the desired amount of segments, in this case since two overlapped segment are desired the length of zero padding is equal to a quarter of the length of v(n) and are appended at the start and end of v(n). Using such zero padding leads to two 50%-overlapped segments of the same length as the length of v(n).

[0086] Preferably the resulting overlapped segments are windowed, as exemplified in Fig 11. It should be noted that while the window shape can, to a certain extent, be optimized for the desired application, it has to obey the perfect reconstruction constraints. This can be seen in Fig 11, where the right half of the window of the 2nd segment has a value 1 for the part that applies to the signal v(n) and the value 0 for the appended zero padding.

[0087] Each of the obtained segments has a length of exactly N. Applying the MDCT on each segment leads to N/2 coefficients; i.e. a total of N coefficients, hence the resulting filter bank is critically sampled, see Fig. 11. Because of the constraints on the window shapes, the operation is invertible and applying the inverse operations on the two sets of MDCT coefficients (MDCT coefficients of segment 1 and 2) will lead back to the signal v(n).

[0088] For this embodiment, the resulting filter-bank basis functions have improved time localization but loose in frequency localization, which is a well known effect from the time-frequency uncertainty principle.

[0089] Fig. 12 shows the two basis functions which relate to the normalized frequency 0.25. Clearly, the time spread is much limited, however, it is also seen that there is a spilling in time spread which is due to overlapping the two sections of the time-aliased signal. This spilling in the time domain is an effect of the time-domain aliasing cancellation and would always be present. However, it can be mitigated by a proper choice (numerical optimization) of the windowing functions. Fig. 12 also shows the frequency responses. As a comparison, the original MDCT basis functions are shown in Fig. 13, these correspond to a much narrower sampling of the frequency domain however, and their time span is much broader. Fig. 13 shows the original basis functions corresponding to the MLT filterbank (MDCT + sine window).

Higher time resolutions



[0090] Higher time resolution can be obtained by dividing the reordered time aliased signal into more segments. Figs. 14 and 15 show how this is achieved for four and eight segments, respectively. Fig. 14 illustrates a higher time resolution by division into four segments, and Fig. 15 illustrates a higher time resolution by division into eight segments. As should be understood, any suitable number of time segments can be used, depending on the desired time resolution.

[0091] In general, the time-segmentation unit is configured to generate a selectable number N of segments based on a time-domain aliased frame, where N is an integer equal to or greater than 2.

[0092] For the case of four segments, Fig. 16 shows a realization of the resulting overall transform. Windowing of an input frame is performed in a windowing unit 11, time-aliasing is performed in a time-domain aliasing unit 12, and optional re-ordering is performed in the re-ordering unit 13. Segmented spectral analysis is then performed by applying post-windowing on four segments using post-windowing units 14 and segmented transforms by transform units 16. Preferably, the overall segmented transform is based on segmented MDCT, using time-aliasing and DCTIV for each segment.

Non-uniform time domain tiling



[0093] With this invention it is also possible to obtain non-uniform time segmentations according to the same concept. There are at least two possible ways to perform such an operation. A first method is based on a non-uniform time segmentation of the reordered time aliased signal. Thus the windows used to segment the signal have different lengths.

[0094] A second method is based on a hierarchical approach. The idea is to first apply coarse time segmentation and then to further re-apply the invention of the resulting coarse segments until the desired tiling is obtained.

[0095] Fig. 17 shows an example of how this second method can be implemented. For this example, first the signal is split into two time segments according to the present invention; afterwards one of the segments is further split into two segments. An example of a suitable transform is the MDCT transform, using time-aliasing and DCTIV for each considered segment.

Operation with transient detection



[0096] The invention can be used in order to mitigate the pre-echo artifacts and is in this case best associated with a transient detector, as exemplified in Fig. 18. Upon detection of a transient, the transient detector would set a flag (IsTransient). The transient detector flag would then use the switch mechanism 17 to switch instantly from a normal full frequency resolution processing (non-segmented spectral analysis) to higher time resolution (segmented spectral analysis) as depicted in Fig. 18. With this embodiment it is possible then to analyze transient signals with a much finer time resolution thus eliminating the annoying pre-echo artifacts.

Close Loop/ Closed Loop Coding Operations



[0097] The invention can also be used as a mean to find the optimal time-frequency tiling for the analysis of a signal prior to coding. Two exemplary modes of operation can be used, closed loop and open loop. In open-loop operation an external device would decide of the best (in terms of coding efficiency) time-frequency tiling for a given signal frame and use the invention in order to analyze the signal according to the optimal tiling. In closed loop operation, a set of predefined tilings are used, for each of these tilings the signal is analyzed and encoded according to the tiling. For each tiling a measure of fidelity is computed. The tiling leading to the best fidelity is selected. The selected tiling together with the encoded coefficients corresponding to this tiling is transmitted to the decoder.

[0098] As mentioned, the above-described principles and concepts for the forward procedure allow a person skilled in the art to realize an inverse chain of operations in an inverse procedure.

[0099] Fig. 19 is a block diagram illustrating a basic example of a signal processing device for operating based on spectral coefficients representative of a time-domain signal. The device includes an inverse transformer 42, a unit 44 for inverse time segmentation, an inverse TDA unit 46, and an optional overlap-adder 48.

[0100] Basically, it is desirable to synthesize a time-domain signal from a quantized and coded bit-stream. Once, spectral coefficients have been retrieved, inverse spectral analysis is performed in the inverse transformer 42 based on different sub-sets of spectral coefficients in order to generate, for each sub-set of spectral coefficients, an inverse-transformed sub-frame, also referred to as a segment. The unit 44 for inverse time-segmentation operates based on overlapped inverse-transformed sub-frames to combine these sub-frames into a time-domain aliased frame. The inverse TDA unit 46 then performs inverse time-domain aliasing based on the time-domain aliased frame to enable reconstruction of the time-domain signal.

[0101] The inverse time-domain aliasing is typically performed to reconstruct a first time-domain frame, and the overall procedure may then synthesize the time-domain signal based on overlap-adding the first time-domain frame with a subsequent second reconstructed time-domain frame, by using the overlap-adder 48.

[0102] Optional pre-, mid- and post-processing stages may be included in the device of Fig. 19.
The inverse spectral analysis may be based on any of a number of different inverse transforms, preferably lapped transforms. For example, in audio decoding applications, it is beneficial to use the inverse MDCT transform (IMDCT).

[0103] Preferably, signal processing device is configured for signal synthesis and/or audio decoding to reconstruct a time-domain audio signal. In a preferred embodiment of the invention, the signal processing device of Fig. 19 is part of an audio decoder such as the audio decoder 40 of Fig. 1 or Fig. 21.

[0104] In the following, the invention will be described in relation to a specific exemplary and non-limiting codec realization suitable for the ITU-T G.722.1 fullband codec extension, namely the ITU-T G.719 codec. In this particular example, the codec is presented as a low-complexity transform-based audio codec, which preferably operates at a sampling rate of 48 kHz and offers full audio bandwidth ranging from 20 Hz up to 20 kHz. The encoder processes input 16-bits linear PCM signals in frames of 20ms and the codec has an overall delay of 40ms. The coding algorithm is preferably based on transform coding with adaptive time-resolution, adaptive bit-allocation and low-complexity lattice vector quantization. In addition, the decoder may replace non-coded spectrum components by either signal adaptive noise-fill or bandwidth extension.

[0105] Fig. 20 is a block diagram of an exemplary encoder suitable for fullband extension. The input signal sampled at 48 kHz is processed through a transient detector. Depending on the detection of a transient, a high frequency resolution or a low frequency resolution (high time resolution) transform is applied on the input signal frame. The adaptive transform is preferably based on a Modified Discrete Cosine Transform (MDCT) in case of stationary frames. For non-stationary frames a higher temporal resolution transform is used without a need for additional delay and with very little overhead in complexity. Non-stationary frames preferably have a temporal resolution equivalent to 5ms frames (although any arbitrary resolution can be selected).
It may be beneficial to group the obtained spectral coefficients into bands of unequal lengths. The norm of each band is estimated and the resulting spectral envelope consisting of the norms of all bands is quantized and encoded. The coefficients are then normalized by the quantized norms. The quantized norms are further adjusted based on adaptive spectral weighting and used as input for bit allocation. The normalized spectral coefficients are lattice vector quantized and encoded based on the allocated bits for each frequency band. The level of the non-coded spectral coefficients is estimated, coded and transmitted to the decoder. Huffman encoding is preferably applied to quantization indices for both the coded spectral coefficients as well as the encoded norms.

[0106] Fig. 21 is a block diagram of an exemplary decoder suitable for fullband extension. The transient flag is first decoded which indicates the frame configuration, i.e. stationary or transient. The spectral envelope is decoded and the same, bit-exact, norm adjustments and bit-allocation algorithms are used at the decoder to recompute the bit-allocation which is essential for decoding quantization indices of the normalized transform coefficients.

[0107] After de-quantization, low frequency non-coded spectral coefficients (allocated zero bits) are regenerated, preferably by using a spectral-fill codebook built from the received spectral coefficients (spectral coefficients with non-zero bit allocation).

[0108] Noise level adjustment index may be used to adjust the level of the regenerated coefficients. High frequency non-coded spectral coefficients are preferably regenerated using bandwidth extension.

[0109] The decoded spectral coefficients and regenerated spectral coefficients are mixed and lead to a normalized spectrum. The decoded spectral envelope is applied leading to the decoded full-band spectrum.
Finally, the inverse transform is applied to recover the time-domain decoded signal. This is preferably performed by applying either the inverse Modified Discrete Cosine Transform (IMDCT) for stationary modes, or the inverse of the higher temporal resolution transform for transient mode.

[0110] The algorithm adapted for fullband extension is based on adaptive transform-coding technology. It operates on 20ms frames of input and output audio. Because the transform window (basis function length) is of 40ms and a 50 per cent overlap is used between successive input and output frames, the effective look-ahead buffer size is 20ms. Hence, the overall algorithmic delay is of 40 ms which is the sum of the frame size plus the look-ahead size. All other additional delays experienced in use of a G.722.1 fullband codec are either due to computational and/or network transmission delays.

[0111] Fig. 22 is a schematic block diagram of a particular example of an inverse transformer and associated implementation for inverse time segmentation and optional re-ordering according to a preferred embodiment of the invention. The inverse transformer is based on DCTIV in cascade with inverse time aliasing. Four so-called sub-spectra

where l = 0, 1, 2, 3, are processed by the inverse transformer, and each sub-spectrum is first inverse-transformed by means of a respective DCTIV into the time domain aliased domain, and then inverse time aliased, i.e. inverse time domain aliased, to provide an overall inverse MDCT type transform for each sub-spectrum. The length of the resulting signal

for each sub-frame index l is equal to double the length of the input spectrum, i.e. L/2.

[0112] The resulting inverse time domain aliased signals for each sub-frame / are windowed using the same configuration of windows as those in the encoder. The resulting windowed signals are overlapped added. Note that the window for the first m = 0 and last m = 3 sub-frame is zero. This is due to the zero padding that is used in the encoder. These two frame edges do need to be computed and are effectively dropped. The resulting signal of the overlap-add operations of all sub-frames vq(n) is re-ordered using the inverse operation performed in the encoder, which leads to the signal q(n), n = 0,K,L - 1.

[0113] The output of the inverse transform, in stationary or transient mode is of length L. Prior to windowing (not shown in Fig. 22) the signal is first inverse time domain aliased (ITDA) leading to a signal of length 2L according to:



[0114] The resulting signal is windowed for each frame r according to:

where h(n) is a window function.

[0115] Finally the output fullband signal is constructed by overlap adding the signals (r)(n) for two successive frames:



[0116] The embodiments described above are merely given as examples, and it should be understood that the present invention is not limited thereto. Further modifications, changes and improvements are within the scope of the claimed invention.

REFERENCES



[0117] 
  1. [1] B. Edler, "Codierung von Audiosignalen mit überlappender Transformation und adaptiven Fensterfunktionen" Frequenz, pp. 252-256, 1989.
  2. [2] H. Malvar, "Lapped Transforms for efficient transform/subband coding". IEEE Trans. Acous., Speech, and Sig. Process., vol. 38, no. 6, pp. 969-978, June 1990.
  3. [3] J. Herre and J.D. Johnston, "Enhancing the performance of perceptual audio coders by using temporal noise shaping (TNS)", in Proc. 101st Conv. Aud. Eng. Soc., preprint #4384, Nov. 1996.



Claims

1. An audio encoding method operating on overlapped frames of an audio signal, the method comprising:

generating a time-domain aliased frame having a length N based on an overlapped frame having a length 2N;

generating, based on the time-domain aliased frame of length N, a selectable number of overlapped segments, where said selectable number is equal to or greater than 2;

producing a frame having a length larger than N based on the time-domain aliased frame;

dividing the resulting produced frame into overlapped segments each having a length equal to or smaller than N; and

performing segmented spectral analysis based on said overlapped segments by applying, on each of said overlapped segments, a Modified Discrete Cosine Transform, MDCT, adapted to obtain, for each segment, a corresponding set of spectral coefficients representative of the frequency content of the segment.


 
2. The method of claim 1, comprising switching, in dependence on detection of a signal transient in said audio signal, between non-segmented spectral analysis based on said time-domain aliased frame, and segmented spectral analysis based on said signal segments.
 
3. The method of claim 1, wherein said MDCT is formed by a time domain aliasing operation (TDA) stage followed by a second stage based on a type IV Discrete Cosine Transform (DCT), and each segment has a length smaller than N.
 
4. The method of claim 1, comprising performing windowing based on said overlapped frame to generate an overlapped windowed frame;

performing time-domain aliasing based on the overlapped windowed frame;

re-ordering the time-domain aliased frame to generate a re-ordered time-domain aliased frame.


 


Ansprüche

1. Audiocodierungsverfahren, das auf überlappten Frames eines Audiosignals betrieben wird, wobei das Verfahren umfasst:

Erzeugen eines Frames mit Zeitdomäne-Aliasing mit einer Länge N auf der Grundlage von einem überlappten Frame mit einer Länge 2N;

Erzeugen, auf der Grundlage von dem Frame mit Zeitdomäne-Aliasing der Länge N, einer auswählbaren Anzahl von überlappten Segmenten, wobei die auswählbare Anzahl gleich oder größer als 2 ist;

Herstellen eines Frames mit einer Länge größer als N, auf der Grundlage von dem Frame mit Zeitdomäne-Aliasing;

Teilen des daraus folgenden hergestellten Frames in überlappte Segmente, die jeweils eine Länge aufweisen, die gleich oder kleiner als N ist; und

Durchführen von segmentierter Spektralanalyse auf der Grundlage von den überlappten Segmenten durch Anwenden, auf jedem der überlappten Segmente, einer modifizierten diskreten Kosinustransformation, MDCT, die dazu angepasst ist, um, für jedes Segment, einen entsprechenden Satz von Koeffizienten, die für den Frequenzgehalt des Segments repräsentativ sind, zu erhalten.


 
2. Verfahren nach Anspruch 1, umfassend Umschalten, in Abhängigkeit von der Detektion einer Signaltransiente im Audiosignal, zwischen einer nicht segmentierten Spektralanalyse auf der Grundlage von dem Frame mit Zeitdomäne-Aliasing und einer segmentierten Spektralanalyse auf der Grundlage von den Signalsegmenten.
 
3. Verfahren nach Anspruch 1, wobei die MDCT von einer Betriebsstufe mit Zeitdomäne-Aliasing (TDA) gebildet wird, gefolgt von einer zweiten Stufe auf der Grundlage eines Typs IV der diskreten Kosinustransformation (DCT), und jedes Segment eine Länge kleiner als N aufweist.
 
4. Verfahren nach Anspruch 1, umfassend Durchführen einer Fensterung auf der Grundlage von dem überlappten Frame, um ein überlapptes gefenstertes Frame zu erzeugen;

Durchführen von Zeitdomäne-Aliasing auf der Grundlage des überlappten gefensterten Frames;

erneuten Abrufen des Frames mit Zeitdomäne-Aliasing, um ein erneut abgerufenes Frame mit Zeitdomäne-Aliasing zu erzeugen.


 


Revendications

1. Procédé de codage audio opérant sur des trames superposées d'un signal audio, le procédé comprenant :

la génération d'une trame de repliement de domaine temporel ayant une longueur N sur la base d'une trame superposée ayant une longueur 2N ;

la génération, sur la base de la trame de repliement de domaine temporel ayant une longueur N, d'un nombre sélectionnable de segments superposés, ledit nombre sélectionnable étant égal ou supérieur à 2;

la production d'une trame ayant une longueur supérieure à N sur la base de la trame de repliement de domaine temporel;

la division de la trame produite résultante en des segments superposés ayant chacun une longueur égale ou inférieure à N ; et

la réalisation une analyse spectrale segmentée sur la base desdits segments superposés par application, sur chacun desdits segments superposés, d'une transformée de cosinus discret modifiée (transformée MDCT) adaptée pour obtenir, pour chaque segment, un ensemble correspondant de coefficients spectraux représentant le contenu fréquentiel du segment.


 
2. Procédé selon la revendication 1, comprenant la commutation, en fonction d'une détection d'une transition de signal dans ledit signal audio, entre une analyse spectrale non segmentée sur la base de ladite trame de repliement de domaine temporel, et une analyse spectrale segmentée sur la base desdits segments de signal.
 
3. Procédé selon la revendication 1, dans lequel ladite MDCT est formée par une phase d'opération de repliement de domaine temporel (TDA) suivie d'une seconde phase sur la base d'une transformée de cosinus discret (transformée DCT) de type IV, et chaque segment a une longueur inférieure à N.
 
4. Procédé selon la revendication 1, comprenant la réalisation d'un fenêtrage sur la base de ladite trame superposée pour générer une trame fenêtrée superposée;

la réalisation d'un repliement de domaine temporel sur la base de la trame fenêtrée superposée;

le réarrangement de la trame de repliement de domaine temporel pour générer une trame de repliement de domaine temporel réarrangée.


 




Drawing







































































Cited references

REFERENCES CITED IN THE DESCRIPTION



This list of references cited by the applicant is for the reader's convenience only. It does not form part of the European patent document. Even though great care has been taken in compiling the references, errors or omissions cannot be excluded and the EPO disclaims all liability in this regard.

Non-patent literature cited in the description