The present invention relates to audio processing and, in particular, to the processing of a decoded audio signal for the purpose of quality enhancement.
Recently, further developments regarding switched audio codecs have been achieved. A high quality and low bit rate switched audio codec is the unified speech and audio coding concept (USAC concept). There is a common pre/post-processing consisting of an MPEG surround (MPEGs) functional unit to handle a stereo or multichannel processing and an enhanced SBR (eSBR) unit which handles the parametric representation of the higher audio frequencies in the input signal. Subsequently there are two branches, one consisting of an advanced audio coding (AAC) tool path and the other consisting of a linear prediction coding (LP or LPC domain) based path which, in turn, features either a frequency domain representation or a time domain representation of the LPC residual. All transmitted spectra for both AAC and LPC are represented in the MDCT domain following quantization and arithmetic coding. The time domain representation uses an ACELP excitation coding scheme. Block diagrams of the encoder and the decoder are given in FIG. 1.1 and FIG. 1.2 of ISO/IEC CD 23003-3.
An additional example for a switched audio codec is the extended adaptive multi-rate-wide band (AMR-WB+) codec as described in 3GPP TS 26.290 V10.0.0 (2011-3). The AMR-WB+ audio codec processes input frames equal to 2048 samples at an internal sampling frequency Fs. The internal sampling frequencies are limited to the range 12800 to 38400 Hz. The 2048-sample frames are split into two critically sampled equal frequency bands. This results in two super frames of 1024 samples corresponding to the low frequency (LF) and high frequency (HF) band. Each super frame is divided into four 256-sample frames. Sampling at the internal sampling rate is obtained by using a variable sampling conversion scheme which re-samples the input signal. The LF and HF signals are then encoded using two different approaches: the LF is encoded and decoded using a “core” encoder/decoder, based on switched ACELP and transform coded excitation (TCX). In the ACELP mode, the standard AMR-WB codec is used. The HF signal is encoded with relatively few bits (16 bits per frame) using a bandwidth extension (BWE) method. The AMR-WB coder includes a pre-processing functionality, an LPC analysis, an open loop search functionality, an adaptive codebook search functionality, an innovative codebook search functionality and memories update. The ACELP decoder comprises several functionalities such as decoding the adaptive codebook, decoding gains, decoding the innovative codebook, decode ISP, a long term prediction filter (LTP filter), the construct excitation functionality, an interpolation of ISP for four sub-frames, a post-processing, a synthesis filter, a de-emphasis and an up-sampling block in order to finally obtain the lower band portion of the speech output. The higher band portion of the speech output is generated by gains scaling using an HB gain index, a VAD flag, and a 16 kHz random excitation. Furthermore, an HB synthesis filter is used followed by a band pass filter. More details are in FIG. 3 of G.722.2.
This scheme has been enhanced in the AMR-WB+ by performing a post-processing of the mono low-band signal. Reference is made to
In the low-frequency pitch enhancement, two-band decomposition is used and adaptive filtering is applied only to the lower band. This results in a total post-processing that is mostly targeted at frequencies near the first harmonics of the synthesize speech signal.
Another configuration equivalent to the illustration in
It has been found that, particularly for low delay applications, the filter delay of 12 samples introduced by the linear phase FIR low pass filter contributes to the overall delay of the encoding/decoding scheme. There are other sources of systematic delays at other places in the encoding/decoding chain, and the FIR filter delay accumulates with the other sources.
According to an embodiment, an apparatus for processing a decoded audio signal may have: a filter for filtering the decoded audio signal to obtain a filtered audio signal; a time-spectral converter stage for converting the decoded audio signal and the filtered audio signal into corresponding spectral representations, each spectral representation having a plurality of subband signals; a weighter for performing a frequency selective weighting of the spectral representation of the filtered audio signal by multiplying subband signals by respective weighting coefficients to obtain a weighted filtered audio signal; a subtractor for performing a subband-wise subtraction between the weighted filtered audio signal and the spectral representation of the audio signal to obtain a result audio signal; and a spectral-time converter for converting the result audio signal or a signal derived from the result audio signal into a time domain representation to obtain a processed decoded audio signal.
According to an embodiment, a method of processing a decoded audio signal may have the steps of: filtering the decoded audio signal to obtain a filtered audio signal; converting the decoded audio signal and the filtered audio signal into corresponding spectral representations, each spectral representation having a plurality of subband signals; performing a frequency selective weighting of the filtered audio signal by multiplying subband signals by respective weighting coefficients to obtain a weighted filtered audio signal; performing a subband-wise subtraction between the weighted filtered audio signal and the spectral representation of the audio signal to obtain a result audio signal; and converting the result audio signal or a signal derived from the result audio signal into a time domain representation to obtain a processed decoded audio signal.
Another embodiment may have a computer program having a program code for performing, when running on a computer, the inventive method of processing a decoded audio signal.
The present invention is based on the finding that the contribution of the low pass filter in the bass post filtering of the decoded signal to the overall delay is problematic and has to be reduced. To this end, the filtered audio signal is not low pass filtered in the time domain but is low pass filtered in the spectral domain such as a QMF domain or any other spectral domain, for example, an MDCT domain, an FFT domain, etc. It has been found that the transform from the spectral domain into the frequency domain and, for example, into a low resolution frequency domain such as a QMF domain can be performed with low delay and the frequency-selectivity of the filter to be implemented in the spectral domain can be implemented by just weighting individual subband signals from the frequency domain representation of the filtered audio signal. This “impression” of the frequency-selected characteristic is, therefore, performed without any systematic delay since a multiplying or weighting operation with a subband signal does not incur any delay. The subtraction of the filtered audio signal and the original audio signal is performed in the spectral domain as well. Furthermore, it is preferred to perform additional operations which are, for example, necessary anyway, such as a spectral band replication decoding or a stereo or a multichannel decoding are additionally performed in one and the same QMF domain. A frequency-time conversion is performed only at the end of the decoding chain in order to bring the finally produced audio signal back into the time domain. Hence, depending on the application, the result audio signal generated by the subtractor can be converted back into the time domain as it is when no additional processing operations in the QMF domain are required anymore. However, when the decoding algorithm has additional processing operations in the QMF domain, then the frequency-time converter is not connected to the subtractor output but is connected to the output of the last frequency domain processing device.
Preferably, the filter for filtering the decoded audio signal is a long term prediction filter. Furthermore, it is preferred that the spectral representation is a QMF representation and it is additionally preferred that the frequency-selectivity is a low pass characteristic.
However, any other filters different from a long term prediction filter, any other spectral representations different from a QMF representation or any other frequency-selectivity different from a low pass characteristic can be used in order to obtain a low-delay post-processing of a decoded audio signal.
Embodiments of the present invention will be detailed subsequently referring to the appended drawings, in which:
a is a block diagram of an apparatus for processing a decoded audio signal in accordance with an embodiment;
b is a block diagram of a preferred embodiment for the apparatus for processing a decoded audio signal;
a illustrates a frequency-selective characteristic exemplarily as a low pass characteristic;
b illustrates weighting coefficients and associated subbands;
c illustrates a cascade of the time/spectral converter and a subsequently connected weighter for applying weighting coefficients to each individual subband signal;
a illustrates an apparatus for processing a decoded audio signal on line 100. The decoded audio signal on line 100 is input into the filter 102 for filtering the decoded audio signal to obtain a filtered audio signal on line 104. The filter 102 is connected to a time-spectral converter stage 106 illustrated as two individual time-spectral converters 106a for the filtered audio signal and 106b for the decoded audio signal on line 100. The time-spectral converter stage is configured for converting the audio signal and the filtered audio signal into a corresponding spectral representation each having a plurality of subband signals. This is indicated by double lines in
The apparatus for processing additionally comprises a weighter 108 for performing a frequency-selective weighting of the filtered audio signal output by block 106a by multiplying individual subband signals by respective weighting coefficients to obtain a weighted filtered audio signal on line 110.
Furthermore, a subtractor 112 is provided. The subtractor is configured for performing a subband-wise subtraction between the weighted filtered audio signal and the spectral representation of the audio signal generated by block 106b.
Furthermore, a spectral-time converter 114 is provided. The spectral-time conversion performed by block 114 is so that the result audio signal generated by the subtractor 112 or a signal derived from the result audio signal is converted into a time domain representation to obtain the processed decoded audio signal on line 116.
Although
b illustrates a preferred embodiment of the present invention in the context of the USAC decoder or the AMR-WB+ decoder. The apparatus illustrated in
In the second branch, the decoded audio signal is converted into the spectral domain by the QMF analysis filterbank 106b.
Although the individual QMF blocks 106a, 106b are illustrated as two separate elements, it is noted that, for analyzing the filtered audio signal and the audio signal, it is not necessarily required to have two individual QMF analysis filterbanks. Instead, a single QMF analysis filterbank and a memory may be sufficient, when the signals are transformed one after the other. However, for very low delay implementations, it is preferred to use individual QMF analysis filterbanks for each signal so that the single QMF block does not form the bottleneck of the algorithm.
Preferably, the conversion into the spectral domain and back into the time domain is performed by an algorithm, having a delay for the forward and backward transform being smaller than the delay of the filtering in the time domain with the frequency selective characteristic. Hence, the transforms should have an overall delay being smaller than the delay of the filter in question. Particularly useful are low resolution transforms such as QMF-based transforms, since the low frequency resolution results in the need for a small transform window, i.e., in a reduced systematic delay. Preferred applications only require a low resolution transform decomposing the signal in less than 40 subbands, such as 32 or only 16 subbands. However, even in applications where the time-spectral conversion and weighting introduce a higher delay than the low pass filter, an advantage is obtained due to the fact that a cumulating of delays for the low pass filter and the time-spectral conversion necessary anyway for other procedures is avoided.
For applications, however, which anyway require a time frequency conversion due to other processing operations, such as resampling, SBR or MPS, a delay reduction is obtained irrespective of the delay incurred by the time-frequency or frequency-time conversion, since the “inclusion” of the filter implementation into the spectral domain, the time domain filter delay is completely saved due to the fact that the subband-wise weighting is performed without any systematic delay.
The adaptive amplifier 129 is controlled by a controller 130. The controller 130 is configured for setting the gain α of amplifier 129 to zero, when the input signal is a TCX-decoded signal. Typically, in switched audio codecs such as USAC or AMR-WB+, the decoded signal at connection point 124 is typically either from the TCX-decoder 122 or from the ACELP-decoder 120. Hence, there is a time-multiplex of decoded output signals of the two decoders 120, 122. The controller 130 is configured for determining for a current time instant, whether the output signal is from a TCX-decoded signal or an ACELP-decoded signal. When it is determined that there is a TCX signal, then the adaptive gain α is set to zero so that the first branch consisting of elements 102, 129, 106a, 108 does not have any significance. This is due to the fact that the specific kind of post filtering used in AMR-WB+ or USAC is only required for the ACELP-coded signal. However, when other post filtering implementations apart from harmonic filtering or pitch enhancing is performed, then a variable gain α can be set differently depending on the needs.
When, however, the controller 130 determines that the currently available signal is an ACELP-decoded signal, then the value of amplifier 129 is set to the right value for α which typically is between 0 and 0.5. In this case, the first branch is significant and the output signal of the subtractor 112 is substantially different from the originally decoded audio signal at connection point 124.
The pitch information (pitch lag and gain alpha) used in filter 120 and amplifier 128 can come from the decoder and/or a dedicated pitch tracker. Preferably, the information are coming from the decoder and then re-processed (refined) through a dedicated pitch tracker/long term prediction analysis of the decoded signal.
The result audio signal generated by subtractor 112 performing the per band or per subband subjection is not immediately performed back into the time domain. Instead, the signal is forwarded to an SBR decoder module 128. Module 128 is connected to a mono-stereo or mono-multichannel decoder such as an MPS decoder 131, where MPS stands for MPEG surround.
Typically, the number of bands is enhanced by the spectral bandwidth replication decoder which is indicated by the three additional lines 132 at the output of block 128.
Furthermore, the number of outputs is additionally enhanced by block 131. Block 131 generates, from the mono-signal at the output of block 129 a, for example, 5-channel signal or any other signal having two or more channels. Exemplarily, a 5-channel scenario have a left channel L, a right channel R, a center channel C, a left surround channel Ls and a right surround channel Rs is illustrated. The spectral-time converter 114 exists, therefore, for each of the individual channels, i.e., exists five times in
The present invention is advantageous in that the delay introduced by the bass post filter and, specifically, by the implementation of the low pass filter FIR filter is reduced. Hence, any kind of frequency-selective filtering does not introduce an additional delay with respect to the delay required for the QMF or, stated generally, the time/frequency transform.
The present invention is particularly advantageous, when a QMF or, generally, a time-frequency transform is required anyway as, for example, in the case of
Furthermore, a constant framing between ACELP and TCX is maintained due to the fact that both signals, i.e., TCX and ACELP now have the same delay.
The functionality of a bandwidth extension decoder 129 is described in detail in section 6.5 of ISO/IEC CD 23003-3. The functionality of the multichannel decoder 131 is described in detail, for example, in section 6.11 of ISO/IEC CD 23003-3. The functionalities behind the TCX decoder and ACELP decoder are described in detail in blocks 6.12 to 6.17 of ISO/IEC CD 23003-3.
Subsequently,
b illustrates the weighting indices for the subband numbers or subbands indicated in
A corresponding implementation of a cascade of a time-spectral converter such as 106a and the subsequently connector weighter 108 is illustrated in
a[13]=[0.088250, 0.086410, 0.081074, 0.072768, 0.062294, 0.050623, 0.038774, 0.027692, 0.018130, 0.010578, 0.005221, 0.001946, 0.000385];
hLP(n)=a(13-n) for n from 1 to 12
hLP(n)=a(n-12) for n from 13 to 25
The impulse response and the frequency response illustrated in
The filter illustrated in
The amplitude frequency response with a resolution of 400 Hz forms the weights used when applying the low pass filter in the QMF domain. The weights for the weighter 108 are, for the above exemplary parameters as outlined in
These weights can be calculated as follows:
W=abs(DFT(hLP(n), 64)), where DFT(x,N) stands for the Discrete Fourier Transform of length N of the signal x. If x is shorter than N, the signal is padded with N-size of x zeros. The length N of the DFT corresponds to two times the number of QMF sub-bands. Since hLP(n) is a signal of real coefficients, W shows a Hermitian symmetry and N/2 frequency coefficients between the frequency 0 and the Nyquist frequency.
By analysing the frequency response of the filter coefficients, it corresponds about to a cut-off frequency of 2*pi*10/256. This is used for designing the filter. The coefficients were then quantized for writing them on 14 bits for saving some ROM consumption and in view of a fixed point implementation.
The filtering in QMF domain is then performed as follows:
Y=post-processed signal in QMF domain
X=decoded signal in QMF signal from core-coder
E=inter-harmonic noise generated in TD to remove from X
Y(k)=X(k)−W(k).E(k) for k from 1 to 32
The frequency response of the filter in the 16 bands QMF is plotted as illustrated in
Particularly, for a low delay implementation, the term ŝ(n+T) in the third to last line of
Although some aspects have been described in the context of an apparatus, it is clear that these aspects also represent a description of the corresponding method, where a block or device corresponds to a method step or a feature of a method step. Analogously, aspects described in the context of a method step also represent a description of a corresponding block or item or feature of a corresponding apparatus.
Depending on certain implementation requirements, embodiments of the invention can be implemented in hardware or in software. The implementation can be performed using a digital storage medium, for example a floppy disk a DVD, a CD, a ROM, a PROM, an EPROM, an EEPROM or a FLASH memory, having electronically readable control signals stored thereon, which cooperate (or are capable of cooperating) with a programmable computer system such that the respective method is performed.
Some embodiments according to the invention comprise a non-transitory data carrier having electronically readable control signals, which are capable of cooperating with a programmable computer system, such that one of the methods described herein is performed.
Generally, embodiments of the present invention can be implemented as a computer program product with a program code, the program code being operative for performing one of the methods when the computer program product runs on a computer. The program code may for example be stored on a machine readable carrier.
Other embodiments comprise the computer program for performing one of the methods described herein, stored on a machine readable carrier.
In other words, an embodiment of the inventive method is, therefore, a computer program having a program code for performing one of the methods described herein, when the computer program runs on a computer.
A further embodiment of the inventive methods is, therefore, a data carrier (or a digital storage medium, or a computer-readable medium) comprising, recorded thereon, the computer program for performing one of the methods described herein.
A further embodiment of the inventive method is, therefore, a data stream or a sequence of signals representing the computer program for performing one of the methods described herein. The data stream or the sequence of signals may for example be configured to be transferred via a data communication connection, for example via the Internet.
A further embodiment comprises a processing means, for example a computer, or a programmable logic device, configured to or adapted to perform one of the methods described herein.
A further embodiment comprises a computer having installed thereon the computer program for performing one of the methods described herein.
In some embodiments, a programmable logic device (for example a field programmable gate array) may be used to perform some or all of the functionalities of the methods described herein. In some embodiments, a field programmable gate array may cooperate with a microprocessor in order to perform one of the methods described herein. Generally, the methods are preferably performed by any hardware apparatus.
While this invention has been described in terms of several advantageous embodiments, there are alterations, permutations, and equivalents which fall within the scope of this invention. It should also be noted that there are many alternative ways of implementing the methods and compositions of the present invention. It is therefore intended that the following appended claims be interpreted as including all such alterations, permutations, and equivalents as fall within the true spirit and scope of the present invention.
This application is a continuation of copending International Application No. PCT/EP2012/052292, filed Feb. 10, 2012, which is incorporated herein by reference in its entirety, and additionally claims priority from U.S. Application No. 61/442,632, filed Feb. 14, 2011, which is also incorporated herein by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
61442632 | Feb 2011 | US |
Number | Date | Country | |
---|---|---|---|
Parent | PCT/EP2012/052292 | Feb 2012 | US |
Child | 13966570 | US |